mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-08 03:07:48 +00:00
commented out cProfile code
This commit is contained in:
@@ -2636,17 +2636,17 @@ def FindAndLoadSurvex():
|
||||
print("\n - Loading All Survex Blocks (LinearLoad)", file=sys.stderr)
|
||||
svx_load = LoadingSurvex()
|
||||
|
||||
pr2 = cProfile.Profile()
|
||||
pr2.enable()
|
||||
# pr2 = cProfile.Profile()
|
||||
# pr2.enable()
|
||||
print(" ", file=sys.stderr, end="")
|
||||
# ----------------------------------------------------------------
|
||||
svx_load.LinearLoad(survexblockroot, survexfileroot.path, collatefilename)
|
||||
# ----------------------------------------------------------------
|
||||
pr2.disable()
|
||||
with open('LinearLoad.prof', 'w') as f:
|
||||
ps = pstats.Stats(pr2, stream=f)
|
||||
ps.sort_stats(SortKey.CUMULATIVE)
|
||||
ps.print_stats()
|
||||
# pr2.disable()
|
||||
# with open('LinearLoad.prof', 'w') as f:
|
||||
# ps = pstats.Stats(pr2, stream=f)
|
||||
# ps.sort_stats(SortKey.CUMULATIVE)
|
||||
# ps.print_stats()
|
||||
|
||||
mem1 = get_process_memory()
|
||||
print(f"\n - MEM:{mem1:7.2f} MB STOP", file=sys.stderr)
|
||||
|
||||
Reference in New Issue
Block a user