Added script for plotting profiling data
This commit is contained in:
@@ -23,6 +23,7 @@ sample/**/*.json
|
||||
tests/temp
|
||||
.pytest_cache
|
||||
pytestdebug.log
|
||||
prof/
|
||||
|
||||
# Coverage
|
||||
.coverage
|
||||
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import pstats
|
||||
|
||||
from os import path
|
||||
|
||||
profDir = path.abspath(path.join(path.dirname(__file__),"..","prof"))
|
||||
|
||||
print("")
|
||||
print("Profiles directory: %s" % profDir)
|
||||
print("")
|
||||
|
||||
profMainWindows = pstats.Stats(path.join(profDir,"testMainWindows.prof"))
|
||||
profMainWindows.sort_stats("cumtime")
|
||||
profMainWindows.print_stats("nw",50)
|
||||
Reference in New Issue
Block a user