Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ profile_on
Function
profile_on
recipes/Python/465831_profiling_threads/recipe-465831.py:43–48 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
41
42
43
def
profile_on():
44
global p_stats, p_start_time
45
p_stats = {}
46
p_start_time = time()
47
threading.setprofile(profiler)
48
sys.setprofile(profiler)
49
50
51
def
profile_off():
Callers
1
recipe-465831.py
File · 0.85
Calls
1
time
Function · 0.85
Tested by
no test coverage detected