@@ -88,7 +88,6 @@ def die(*args, **kwargs):
88
88
-z/-Z enable/disable size histograms (default: off)
89
89
-q/-Q enable/disable latency histograms by size (default: off)
90
90
-y/-Y enable/disable the summary output (default: on)
91
- -n/-N enable/disable normalizing summary by time (default: on)
92
91
-t/-T enable/disable emitting the summary total (default: on)
93
92
-d LEVEL set BCC debug level
94
93
-e emit the resulting eBPF script without executing it
@@ -147,7 +146,6 @@ class Args:
147
146
setattr (args , "size_hist" , False )
148
147
setattr (args , "latsize_hist" , False )
149
148
setattr (args , "summary" , True )
150
- setattr (args , "normalize" , True )
151
149
setattr (args , "total" , True )
152
150
153
151
#
@@ -185,7 +183,6 @@ class Args:
185
183
'-z' : "size_hist" ,
186
184
'-q' : "latsize_hist" ,
187
185
'-y' : "summary" ,
188
- '-n' : "normalize" ,
189
186
'-t' : "total" }
190
187
if opt in switches :
191
188
setattr (args , switches [opt ], True )
@@ -483,9 +480,10 @@ class Args:
483
480
ds__delta = ds__end - ds__start
484
481
if not accum :
485
482
ds__start = ds__end
486
- if args .summary and args .normalize :
487
- helper1 .normalize ("ops" , ds__delta / 1000000000 )
488
- helper3 .normalize ("opst" , ds__delta / 1000000000 )
483
+ helper1 .normalize ("ops" , ds__delta / 1000000000 )
484
+ helper1 .normalize ("data" , ds__delta / 1000000000 )
485
+ helper3 .normalize ("opst" , ds__delta / 1000000000 )
486
+ helper3 .normalize ("datat" , ds__delta / 1000000000 )
489
487
clear_data = not accum
490
488
if args .latsize_hist :
491
489
helper2 .printall (clear_data )
@@ -504,9 +502,10 @@ class Args:
504
502
pass
505
503
try :
506
504
ds__delta = long (os .popen ("date +%s%N" ).readlines ()[0 ]) - ds__start
507
- if args .summary and args .normalize :
508
- helper1 .normalize ("ops" , ds__delta / 1000000000 )
509
- helper3 .normalize ("opst" , ds__delta / 1000000000 )
505
+ helper1 .normalize ("ops" , ds__delta / 1000000000 )
506
+ helper1 .normalize ("data" , ds__delta / 1000000000 )
507
+ helper3 .normalize ("opst" , ds__delta / 1000000000 )
508
+ helper3 .normalize ("datat" , ds__delta / 1000000000 )
510
509
if args .latsize_hist :
511
510
helper2 .printall ()
512
511
if args .lat_hist or args .size_hist or args .summary :
0 commit comments