2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 07:19:52 +00:00

commented out cProfile code

This commit is contained in:
2026-01-28 18:35:20 +00:00
parent 76354a4c8d
commit 8f576c0a94

View File

@@ -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)