MCPcopy 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
43def 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
51def profile_off():

Callers 1

recipe-465831.pyFile · 0.85

Calls 1

timeFunction · 0.85

Tested by

no test coverage detected