Debian Codegraph @

rpython/rlib/rvmprof/dummy.py

raw symbols SCIP
1 from rpython.rlib.objectmodel import specialize
2
3 class DummyVMProf(object):
4 is_enabled = False
5
6 def __init__(self):
7 self._unique_id = 0
8
9 def register_code_object_class(self, CodeClass, full_name_func):
10 CodeClass._vmprof_unique_id = self._unique_id
11 self._unique_id += 1
12
13 @specialize.argtype(1)
14 def register_code(self, code, full_name_func):
15 pass
16
17 def enable(self, fileno, interval, memory=0, native=0, real_time=0):
18 pass
19
20 def disable(self):
21 pass
22
23 def start_sampling(self):
24 pass
25
26 def stop_sampling(self):
27 return -1