-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(profiling): Introduce continuous profiling mode (#2830)
This is a new profiling mode that is mutually exclusive from the existing profiling modes. In the current profiling modes, a profile is always directly attached to a transaction. This new mode will continuously emit chunks of profiling data that will be connected to the span data.
- Loading branch information
Showing
19 changed files
with
1,145 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
from sentry_sdk.profiler.continuous_profiler import start_profiler, stop_profiler | ||
from sentry_sdk.profiler.transaction_profiler import ( | ||
MAX_PROFILE_DURATION_NS, | ||
PROFILE_MINIMUM_SAMPLES, | ||
Profile, | ||
Scheduler, | ||
ThreadScheduler, | ||
GeventScheduler, | ||
has_profiling_enabled, | ||
setup_profiler, | ||
teardown_profiler, | ||
) | ||
from sentry_sdk.profiler.utils import ( | ||
DEFAULT_SAMPLING_FREQUENCY, | ||
MAX_STACK_DEPTH, | ||
get_frame_name, | ||
extract_frame, | ||
extract_stack, | ||
frame_id, | ||
) | ||
|
||
__all__ = [ | ||
"start_profiler", | ||
"stop_profiler", | ||
# Re-exported for backwards compatibility | ||
"MAX_PROFILE_DURATION_NS", | ||
"PROFILE_MINIMUM_SAMPLES", | ||
"Profile", | ||
"Scheduler", | ||
"ThreadScheduler", | ||
"GeventScheduler", | ||
"has_profiling_enabled", | ||
"setup_profiler", | ||
"teardown_profiler", | ||
"DEFAULT_SAMPLING_FREQUENCY", | ||
"MAX_STACK_DEPTH", | ||
"get_frame_name", | ||
"extract_frame", | ||
"extract_stack", | ||
"frame_id", | ||
] |
Oops, something went wrong.