diff options
author | Kevin Grigorenko <kevin.grigorenko@us.ibm.com> | 2015-02-09 17:20:38 -0800 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-02-10 06:18:41 +0000 |
commit | 3b2954208a060eba500cb48c14ec6a4fe4a99494 (patch) | |
tree | 861bdf617761381643eb41458468b660040f77f8 /ui/gtk/scsi_stat.c | |
parent | 895b0130de1fed8b1e534dd2c7017e2f5070e55c (diff) |
Add a "Sum" column to the Service Response Time (SRT) window.
The Service Response Time (SRT) window currently provides the
columns: Index, Procedure, Calls, Min SRT, Max SRT, and Avg SRT.
A Sum column has been found useful in some customer situations
to understand the total time spent doing a set of procedures.
For example, in one case we were trying to isolate whether most
time was being spent on a client thread or in the act of making
outbound calls. We knew the start and end time of the client call,
so with the "Sum" of time spent in that period, we could isolate
a particular set of procedures driving the slow down.
Additional changes made in this patch:
* Add " (s)" to Min, Max, Avg, and Sum columns to make it clear
that times are in seconds.
* Refactor out width and height constants used in calls to
gtk_window_set_default_size in most of the SRT users into
#define SRT_PREFERRED_WIDTH and SRT_PREFERRED_HEIGHT. Also
increase the common width of 550 to 650 to account for the
additional column.
Change-Id: I20f152eecbcd0bbf69f71c6c6b9f9463e8867e23
Reviewed-on: https://code.wireshark.org/review/7047
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/gtk/scsi_stat.c')
-rw-r--r-- | ui/gtk/scsi_stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/scsi_stat.c b/ui/gtk/scsi_stat.c index 7d8f2a469e..23a50e2651 100644 --- a/ui/gtk/scsi_stat.c +++ b/ui/gtk/scsi_stat.c @@ -211,7 +211,7 @@ gtk_scsistat_init(const char *opt_arg, void* userdata _U_) rs->win = dlg_window_new("scsi-stat"); /* transient_for top_level */ gtk_window_set_destroy_with_parent (GTK_WINDOW(rs->win), TRUE); - gtk_window_set_default_size(GTK_WINDOW(rs->win), 550, 400); + gtk_window_set_default_size(GTK_WINDOW(rs->win), SRT_PREFERRED_WIDTH, SRT_PREFERRED_HEIGHT); scsistat_set_title(rs); vbox = ws_gtk_box_new(GTK_ORIENTATION_VERTICAL, 3, FALSE); |