File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 55import threading
66import time
77import uuid
8+ import warnings
89from collections import deque
910from datetime import datetime , timezone
1011
@@ -154,7 +155,11 @@ def start_profiler():
154155def start_profile_session ():
155156 # type: () -> None
156157
157- # TODO: deprecate this as it'll be replaced by `start_profiler`
158+ warnings .warn (
159+ "The `start_profile_session` function is deprecated. Please use `start_profile` instead." ,
160+ DeprecationWarning ,
161+ stacklevel = 2 ,
162+ )
158163 start_profiler ()
159164
160165
@@ -169,7 +174,11 @@ def stop_profiler():
169174def stop_profile_session ():
170175 # type: () -> None
171176
172- # TODO: deprecate this as it'll be replaced by `stop_profiler`
177+ warnings .warn (
178+ "The `stop_profile_session` function is deprecated. Please use `stop_profile` instead." ,
179+ DeprecationWarning ,
180+ stacklevel = 2 ,
181+ )
173182 stop_profiler ()
174183
175184
You can’t perform that action at this time.
0 commit comments