PHP 8.2.30
Preview: __init__.py Size: 1.26 KB
//opt/hc_python/lib/python3.12/site-packages/sentry_sdk/profiler/__init__.py

from sentry_sdk.profiler.continuous_profiler import (
    start_profile_session,
    start_profiler,
    stop_profile_session,
    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_profile_session",  # TODO: Deprecate this in favor of `start_profiler`
    "start_profiler",
    "stop_profile_session",  # TODO: Deprecate this in favor of `stop_profiler`
    "stop_profiler",
    # DEPRECATED: The following was re-exported for backwards compatibility. It
    # will be removed from sentry_sdk.profiler in a future release.
    "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",
]

Directory Contents

Dirs: 1 × Files: 4

Name Size Perms Modified Actions
- drwxr-xr-x 2025-12-03 08:02:53
Edit Download
22.53 KB lrw-r--r-- 2025-12-03 08:02:53
Edit Download
27.31 KB lrw-r--r-- 2025-12-03 08:02:53
Edit Download
6.34 KB lrw-r--r-- 2025-12-03 08:02:53
Edit Download
1.26 KB lrw-r--r-- 2025-12-03 08:02:53
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).