(self, *filename)
| 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 |