make io-stat able to do SUM(*) for FT_RELATIVE_TIME fields
Example: SUM(tcp.analysis.rto) so one can plot the total amount of time that TCP sessions were idle due to waiting for a retransmission to occur. svn path=/trunk/; revision=14920
This commit is contained in:
parent
34c66c11d2
commit
c3467685d5
|
@ -455,6 +455,9 @@ get_it_value(io_stat_t *io, int graph_id, int idx)
|
||||||
case CALC_TYPE_MIN:
|
case CALC_TYPE_MIN:
|
||||||
value=it->time_min.secs*1000000+it->time_min.nsecs/1000;
|
value=it->time_min.secs*1000000+it->time_min.nsecs/1000;
|
||||||
break;
|
break;
|
||||||
|
case CALC_TYPE_SUM:
|
||||||
|
value=it->time_tot.secs*1000000+it->time_tot.nsecs/1000;
|
||||||
|
break;
|
||||||
case CALC_TYPE_AVG:
|
case CALC_TYPE_AVG:
|
||||||
if(it->frames){
|
if(it->frames){
|
||||||
#ifdef G_HAVE_UINT64
|
#ifdef G_HAVE_UINT64
|
||||||
|
@ -623,6 +626,7 @@ io_stat_draw(io_stat_t *io)
|
||||||
switch(adv_type){
|
switch(adv_type){
|
||||||
case FT_RELATIVE_TIME:
|
case FT_RELATIVE_TIME:
|
||||||
switch(io->graphs[i].calc_type){
|
switch(io->graphs[i].calc_type){
|
||||||
|
case CALC_TYPE_SUM:
|
||||||
case CALC_TYPE_MAX:
|
case CALC_TYPE_MAX:
|
||||||
case CALC_TYPE_MIN:
|
case CALC_TYPE_MIN:
|
||||||
case CALC_TYPE_AVG:
|
case CALC_TYPE_AVG:
|
||||||
|
@ -1563,6 +1567,7 @@ filter_callback(GtkWidget *widget _U_, io_stat_graph_t *gio)
|
||||||
case FT_RELATIVE_TIME:
|
case FT_RELATIVE_TIME:
|
||||||
/* this type only supports COUNT, MAX, MIN, AVG */
|
/* this type only supports COUNT, MAX, MIN, AVG */
|
||||||
switch(gio->calc_type){
|
switch(gio->calc_type){
|
||||||
|
case CALC_TYPE_SUM:
|
||||||
case CALC_TYPE_COUNT:
|
case CALC_TYPE_COUNT:
|
||||||
case CALC_TYPE_MAX:
|
case CALC_TYPE_MAX:
|
||||||
case CALC_TYPE_MIN:
|
case CALC_TYPE_MIN:
|
||||||
|
|
Loading…
Reference in New Issue