MCPcopy Create free account
hub / github.com/ActiveState/code / __init__

Method __init__

recipes/Python/578138_gprof2dotpy/recipe-578138.py:2347–2355  ·  view source on GitHub ↗
(self, *filename)

Source from the content-addressed store, hash-verified

2345 """Parser python profiling statistics saved with te pstats module."""
2346
2347 def __init__(self, *filename):
2348 import pstats
2349 try:
2350 self.stats = pstats.Stats(*filename)
2351 except ValueError:
2352 import hotshot.stats
2353 self.stats = hotshot.stats.load(filename[0])
2354 self.profile = Profile()
2355 self.function_ids = {}
2356
2357 def get_function_name(self, xxx_todo_changeme):
2358 (filename, line, name) = xxx_todo_changeme

Callers

nothing calls this directly

Calls 2

ProfileClass · 0.70
loadMethod · 0.45

Tested by

no test coverage detected