-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
46 additions
and
152 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +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"] | ||
__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", | ||
] |
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