Lines Matching refs:profiler
48 def __init__(self, profiler):
49 self.profiler = profiler
52 prof = self.profiler()
61 prof = self.profiler()
77 # The following are the static member functions for the profiler class
82 """Run statement under profiler optionally saving results in filename
95 """Run statement under profiler, supplying your own globals and locals,
109 avoid contaminating the program that we are profiling. (old profiler
179 self.simulate_call('profiler')
412 # a profiler to profile a statement, given as a string.
439 # The following calculates the overhead for using a profiler. The
440 # problem is that it takes a fair amount of time for the profiler
442 # Similarly, there is a delay from the time that the profiler
450 # profiler calibrated for the current platform. This *could* be
469 # time. It would not be hard to "get all this info" at profiler
474 # event/time ratio (i.e., the profiler would run slower, fur a very
517 # is profiling overhead, only some of which the profiler subtracts
527 # reported_time <- "CPU seconds" the profiler charged to f and f1.
537 print("'CPU seconds' profiler reported =", reported_time)
542 # reported_time - elapsed_noprofile = overhead the profiler wasn't
544 # are two profiler events per call in this test) to get the hidden
609 # When invoked as main program, invoke the profiler on a script