@@ -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
@@ -146,7 +145,6 @@ class Args:
146
145
setattr (args , "size_hist" , False )
147
146
setattr (args , "latsize_hist" , False )
148
147
setattr (args , "summary" , True )
149
- setattr (args , "normalize" , True )
150
148
setattr (args , "total" , True )
151
149
152
150
#
@@ -184,7 +182,6 @@ class Args:
184
182
'-z' : "size_hist" ,
185
183
'-q' : "latsize_hist" ,
186
184
'-y' : "summary" ,
187
- '-n' : "normalize" ,
188
185
'-t' : "total" }
189
186
if opt in switches :
190
187
setattr (args , switches [opt ], True )
@@ -485,9 +482,10 @@ class Args:
485
482
ds__delta = ds__end - ds__start
486
483
if not accum :
487
484
ds__start = ds__end
488
- if args .summary and args .normalize :
489
- helper1 .normalize ("ops" , ds__delta / 1000000000 )
490
- helper3 .normalize ("opst" , ds__delta / 1000000000 )
485
+ helper1 .normalize ("ops" , ds__delta / 1000000000 )
486
+ helper1 .normalize ("data" , ds__delta / 1000000000 )
487
+ helper3 .normalize ("opst" , ds__delta / 1000000000 )
488
+ helper3 .normalize ("datat" , ds__delta / 1000000000 )
491
489
clear_data = not accum
492
490
if args .latsize_hist :
493
491
helper2 .printall (clear_data )
@@ -506,9 +504,10 @@ class Args:
506
504
pass
507
505
try :
508
506
ds__delta = long (os .popen ("date +%s%N" ).readlines ()[0 ]) - ds__start
509
- if args .summary and args .normalize :
510
- helper1 .normalize ("ops" , ds__delta / 1000000000 )
511
- helper3 .normalize ("opst" , ds__delta / 1000000000 )
507
+ helper1 .normalize ("ops" , ds__delta / 1000000000 )
508
+ helper1 .normalize ("data" , ds__delta / 1000000000 )
509
+ helper3 .normalize ("opst" , ds__delta / 1000000000 )
510
+ helper3 .normalize ("datat" , ds__delta / 1000000000 )
512
511
if args .latsize_hist :
513
512
helper2 .printall ()
514
513
if args .lat_hist or args .size_hist or args .summary :
0 commit comments