115
107
def _thread_profile(self, f, *args, **kwds):
116
108
# we lose the first profile point for a new thread in order to
117
109
# trampoline a new Profile object into place
119
111
self._g_threadmap[thr] = p = Profiler()
120
112
# this overrides our sys.setprofile hook:
121
113
p.enable(subcalls=True, builtins=True)