Remove start/stop_profile_session in favor of start/stop_profiler by sentrivana · Pull Request #4170 · getsentry/sentry-python · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions sentry_sdk/profiler/__init__.py
14 changes: 0 additions & 14 deletions sentry_sdk/profiler/continuous_profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,6 @@ def start_profiler():
_scheduler.manual_start()


def start_profile_session():
# type: () -> None

# TODO: deprecate this as it'll be replaced by `start_profiler`
start_profiler()


def stop_profiler():
# type: () -> None
if _scheduler is None:
Expand All @@ -166,13 +159,6 @@ def stop_profiler():
_scheduler.manual_stop()


def stop_profile_session():
# type: () -> None

# TODO: deprecate this as it'll be replaced by `stop_profiler`
stop_profiler()


def teardown_continuous_profiler():
# type: () -> None
stop_profiler()
Expand Down
86 changes: 8 additions & 78 deletions tests/profiler/test_continuous_profiler.py