MCPcopy Create free account
hub / github.com/PyTables/PyTables / profile

Function profile

bench/LRUcache-node-bench.py:60–71  ·  view source on GitHub ↗
(verbose=False)

Source from the content-addressed store, hash-verified

58
59
60def profile(verbose=False):
61 import pstats
62 import cProfile
63
64 cProfile.run("timeLRU()", "out.prof")
65 stats = pstats.Stats("out.prof")
66 stats.strip_dirs()
67 stats.sort_stats("time", "calls")
68 if verbose:
69 stats.print_stats()
70 else:
71 stats.print_stats(20)
72
73
74# profile()

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected