Skip to content

Commit 5ebc579

Browse files
committed
metrics: report also max,mean disc usage
1 parent fba4c22 commit 5ebc579

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

MC/utils/o2dpg_sim_metrics.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,10 +782,13 @@ def print_statistics(resource_object):
782782
.sort_values(ascending=False) # sort by memory usage
783783
.head(top_n)
784784
)
785-
786785
print(f"\nTop-{top_n} memory consumers (by peak PSS):")
787786
for comp, mem in top_mem.items():
788787
print(f" {comp:<20s} {mem:10.2f} MB")
788+
789+
#(d) max disc consumption
790+
print ("\nMax-DISC usage (MB): ", dframe['disc'].max())
791+
print ("Mean-DISC usage (MB): ", dframe['disc'].mean())
789792
print ("---> ")
790793

791794
def stat(args):

0 commit comments

Comments
 (0)