File tree 2 files changed +14
-14
lines changed
2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 25
25
)
26
26
27
27
__all__ = [
28
- "start_profile_session" ,
29
- "start_profiler" , # TODO: Deprecate this in favor of `start_profile_session`
30
- "stop_profile_session" ,
31
- "stop_profiler" , # TODO: Deprecate this in favor of `stop_profile_session`
28
+ "start_profile_session" , # TODO: Deprecate this in favor of `start_profiler`
29
+ "start_profiler" ,
30
+ "stop_profile_session" , # TODO: Deprecate this in favor of `stop_profiler`
31
+ "stop_profiler" ,
32
32
# DEPRECATED: The following was re-exported for backwards compatibility. It
33
33
# will be removed from sentry_sdk.profiler in a future release.
34
34
"MAX_PROFILE_DURATION_NS" ,
Original file line number Diff line number Diff line change @@ -145,32 +145,32 @@ def try_profile_lifecycle_trace_start():
145
145
146
146
def start_profiler ():
147
147
# type: () -> None
148
+ if _scheduler is None :
149
+ return
148
150
149
- # TODO: deprecate this as it'll be replaced by `start_profile_session`
150
- start_profile_session ()
151
+ _scheduler .manual_start ()
151
152
152
153
153
154
def start_profile_session ():
154
155
# type: () -> None
155
- if _scheduler is None :
156
- return
157
156
158
- _scheduler .manual_start ()
157
+ # TODO: deprecate this as it'll be replaced by `start_profiler`
158
+ start_profiler ()
159
159
160
160
161
161
def stop_profiler ():
162
162
# type: () -> None
163
+ if _scheduler is None :
164
+ return
163
165
164
- # TODO: deprecate this as it'll be replaced by `stop_profile_session`
165
- stop_profile_session ()
166
+ _scheduler .manual_stop ()
166
167
167
168
168
169
def stop_profile_session ():
169
170
# type: () -> None
170
- if _scheduler is None :
171
- return
172
171
173
- _scheduler .manual_stop ()
172
+ # TODO: deprecate this as it'll be replaced by `stop_profiler`
173
+ stop_profiler ()
174
174
175
175
176
176
def teardown_continuous_profiler ():
You can’t perform that action at this time.
0 commit comments