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