|
|
@@ -78,9 +78,12 @@ def main(): |
|
|
|
stats = yappi.get_func_stats() |
|
|
|
stats.sort("ttot") |
|
|
|
stats.print_all() |
|
|
|
from IPython import embed |
|
|
|
embed(header="Use the `yappi` or `stats` object to explore " |
|
|
|
try: |
|
|
|
from IPython import embed |
|
|
|
embed(header="Use the `yappi` or `stats` object to explore " |
|
|
|
"further, quit to exit") |
|
|
|
except ModuleNotFoundError: |
|
|
|
print("\nInstall ipython to explore further") |
|
|
|
else: |
|
|
|
server.start(blocking=True) |
|
|
|
except nilmdb.server.serverutil.CherryPyExit: |
|
|
|