aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/io_stat.c
AgeCommit message (Collapse)AuthorFilesLines
2003-10-12Further updates/rewrite of iostatRonnie Sahlberg1-205/+119
getting closer to add useful features svn path=/trunk/; revision=8679
2003-10-11minor cleanup and update for printing the y scale as time in units of s,ms ↵Ronnie Sahlberg1-23/+19
and us svn path=/trunk/; revision=8678
2003-10-11Massive update of the _draw() routine in iostatRonnie Sahlberg1-194/+308
in preparation of more features. The most visible changes are graps drawn as sawtoots instead of bars. relative times (mainly used for response times FT_RELATIVE_TIME) will be plotted as time measured in "s" "ms" or "us" on the y axis future updates may be smoothed graphs and better relative time support svn path=/trunk/; revision=8676
2003-10-06Rename "max_tick_values" to "tick_interval_values", to make it clearerGuy Harris1-10/+10
what it is. svn path=/trunk/; revision=8631
2003-10-06Make the "needs_redraw" flag a gboolean, as it's a Boolean flag.Guy Harris1-33/+61
Rename "max_count_types and "max_calc_types" to "count_type_names" and "calc_type_names", to make it clearer what they are. For the advanced statistics, give different error messages for the case where no field name was specified and where an invalid field name was specified. Give better error messages for the cases where the calculation type isn't supported for a particular field. Initialize the calculation type for a given field. svn path=/trunk/; revision=8630
2003-10-04Fix to IO-Stat.Ronnie Sahlberg1-1/+10
IO-Stat failed to produce Advanced/COUNT(*) statistics for fields of type FT_NONE. Fixed. Now it is possible to do : Advanced/COUNT(*) Filter:tcp.analysis.retransmission Field:tcp.analysis.retransmission Advanced/COUNT(*) Filter:tcp.analysis.duplicate_ack Field:tcp.analysis.duplicate_ack And it will plot the number of Retransmissions and Duplicate ACKs seen in each time interval. svn path=/trunk/; revision=8609
2003-09-26Assorted GUI cleanups.Guy Harris1-7/+11
svn path=/trunk/; revision=8544
2003-09-24Pass a pointer to a "capture_file" structure toGuy Harris1-2/+2
"set_menus_for_selected_packet()" and "set_menus_for_selected_tree_row()", and have them decide whether to enable or disable menu items based on whether that structure indicates that a packet or field is selected and, if one is, on its properties. Pass to the "selected packet enabled" routine for a menu item the "frame_data" and "edt" members of the "capture_file" structure, and pass to the "selected tree row enabled" routine the "field_info" member of that structure. Clear "cf->current_frame" if no packet is selected. svn path=/trunk/; revision=8525
2003-09-19Provide a mechanism by which a tap can arrange to have its menu enabledGuy Harris1-2/+3
or disabled based on a currently-selected packet (or lack of same) or a currently-selected protocol tree item (or lack of same). Not currently used, but necessary if we ever make the TCP graph stuff a tap. API is tentative and subject to change. Also, enable and disable taps based on whether we have any packets to process. svn path=/trunk/; revision=8498
2003-09-17Have "register_tap_menu_item()" put the item under Tools, notGuy Harris1-2/+2
Tools/Statistics; change the taps to put things under Statistics themselves. That allows taps to go elsewhere if appropriate. svn path=/trunk/; revision=8488
2003-09-15Add a routine to return the display name for a "capture_file" structure,Guy Harris1-10/+3
rather than constructing that name when a capture file is opened and putting a pointer to it in that structure. svn path=/trunk/; revision=8476
2003-09-15Keep a "display name" as part of a capture_file structure; for liveGuy Harris1-5/+5
capture temporary files, it's "<capture", and for saved capture files, it's the last component of the pathname of the file. Use that in various places when displaying the file name. svn path=/trunk/; revision=8474
2003-09-15From Graeme Hewson:Guy Harris1-3/+9
Don't crash if "-z" is used on the command line when a live capture is being done (e.g., with "-k -S" - in that case, "cfile.filename" is null when the window is created), just don't display the file name in the title. Don't set the title of a non-existent window - create the window first. svn path=/trunk/; revision=8472
2003-09-02When putting the filename in the titlebarRonnie Sahlberg1-3/+4
just put the filename there and not the full path to the file. svn path=/trunk/; revision=8329
2003-08-25Update to IO-Stat to put the capture filename on the titlebarRonnie Sahlberg1-2/+8
to make it easier to navigate when having multiple instances of ethereal and io-stat open at the same time. Updates to all endpoint talkers and service response time windows to do this as well. Bonus, when the user opens a new capture file when having these windows open, the title bar will be updated to reflect the name of the new capture file. svn path=/trunk/; revision=8251
2003-04-23Make "register_tap_listener()" return NULL on success and a "GString *"Guy Harris1-2/+8
referring to a GString containing an error message on failure, and don't have it print anything on failure. If it fails, have its Tethereal-tap callers print an error message before exiting, and have its Ethereal callers pop up a dialog box with the error (except in cases where the failure is guaranteed not to be the user's fault, and where we exit, in which case we just print an error message before we exit). In all cases, the error message includes the text of the GString. Fix a scanf format string in the DCE RPC statistics Ethereal tap, so that it properly skips the comma before the filter string. Fix some Ethereal error messages not to say "tethereal". svn path=/trunk/; revision=7542
2003-04-23Have "register_tap_menu_item()" create submenus as necessary for a menuGuy Harris1-3/+7
item. Convert all Ethereal (GUI) taps to use "register_tap_menu_item()" rather than having hardcoded menu items in "gtk/menu.c". svn path=/trunk/; revision=7541
2003-04-23Allow taps to have menu item registration routines; the menu itemGuy Harris1-2/+2
registration routines, for taps with menu items (taps that can be run from the "Tools->Statistics" menu), create the menu item for the tap. "make-tapreg-dotc" constructs a "register_all_tap_menus()" function that calls all the tap menu item registration routines it finds, and Ethereal calls that routine after the main window has been constructed (so that the main menu exists, as the menu items are added to it). (Tethereal doesn't call it.) Get rid of the "menu" and "menu_init" arguments to "register_ethereal_tap"; the menu item is registered in the tap's menu item registration routine, not in its main registration routine. Have the RTP GUI tap register its menu item that way, rather than by having it compiled into "gtk/menu.c". (We're not ready yet to have taps whose menu items are under a submenu register themselves in that fashion, as "register_tap_menu_item()" can't yet create submenus.) svn path=/trunk/; revision=7540
2003-03-05"gtk_box_pack_end()" expects a GtkBox, not a GtkContainer, as its firstGuy Harris1-2/+2
argument. svn path=/trunk/; revision=7289
2003-03-05Eliminate vertical padding in the IO Stat window.Gerald Combs1-3/+3
svn path=/trunk/; revision=7286
2003-01-15Move the code that associates buttons with filter dialogs, and viceGuy Harris1-10/+2
versa, into "filter_dialog_new()", rather than replicating it in a couple of routines. The return value of "display_filter_construct_cb()" isn't used for anything, it's ignored by most callers and stored but subsequently ignored by io_stat.c; get rid of the return value, and don't bother storing it in io_stat.c. Before destroying a filter dialog box associated with a button being destroyed, break the association. Get rid of an unused variable in io_stat.c. svn path=/trunk/; revision=6931
2003-01-15Add a new routine "filter_button_destroy_cb()", and make it theGuy Harris1-22/+2
"destroy" signal handler for any button that pops up a filter; if the button has a filter dialog box associated with it, it destroys that dialog box. Have the routines that create filter dialog boxes asociate the dialog box with the button that created it, so that if the button is destroyed the filter dialog box can be destroyed as well, and associate the button with the dialog box. This means that if a dialog box has a button to create a filter, we no longer have to have the destroy handler for the dialog box destroy any filters - that'll happen when the button in the dialog box is destroyed as part of the process of destroying the dialog box. Don't make the "Filter" buttons in the io_stat dialog box insensitive if there's already a filter dialog box open - we can have more than one open per dialog box. svn path=/trunk/; revision=6930
2003-01-11From Ronald Henderson, when closing IO-Stat window, also close any open ↵Ronnie Sahlberg1-20/+74
Filter dialogs svn path=/trunk/; revision=6916
2002-12-16From Andreas Trauer: dissect the L2TP AVPs Initial Received LCP CONFREQ,Guy Harris1-2/+30
Last Received LCP CONFREQ, Last Sent LCP CONFREQ, and correct some AVP names. svn path=/trunk/; revision=6789
2002-12-16Cosmetic fix for io_stat. make sure that the graph always starts with a ↵Ronnie Sahlberg1-1/+15
line at zero level even if there is no data seen at the beginning of the window. svn path=/trunk/; revision=6788
2002-12-16From Ronald Henderson: support for colored graphs in io_stat also for the ↵Ronnie Sahlberg1-3/+24
Gtk1 version. svn path=/trunk/; revision=6786
2002-12-05Fix two compiler warningsRonnie Sahlberg1-13/+3
svn path=/trunk/; revision=6748
2002-12-02From Jason House: MSVC++ doesn't like cases with no statements, so addGuy Harris1-1/+5
break statements. svn path=/trunk/; revision=6716
2002-11-29Updte for io-stat to make it more powerful.Ronnie Sahlberg1-57/+465
There is not a third option Advanced... in addition to frames/tick and bytes/tick. See ethereal man page for description and how one can use this to graph how NFS response time MAX/MIN/AVG changes over time. svn path=/trunk/; revision=6703
2002-11-19put nice io-stat title on the io-stat windowRonnie Sahlberg1-1/+2
svn path=/trunk/; revision=6661
2002-11-17update for gui version of io-statRonnie Sahlberg1-13/+73
the graph now has a scrollbar one can use to scroll the graph window svn path=/trunk/; revision=6652
2002-11-16If you include "gtk/gtkglobals.h" before including <ctype.h>, at leastGuy Harris1-1/+4
on Windows in my build environment, the definition of "isprint" in "gtk/gtkglobals.h" causes problems when processing the definition of "isprint" in <ctype.h>, and, somehow, <ctype.h> appears to get included, at least in Windows in my build environment, after we include "gtk/gtkglobals.h" even though we don't include it explicitly. Include it explicitly, before we include "gtk/gtkglobals.h", so that it compiles. svn path=/trunk/; revision=6650
2002-11-16 io-stat. Previously io-stat was hardcoded to calculate the statistics ↵Ronnie Sahlberg1-26/+116
over 1 second intervals. Now there is a menu to control the length of ther measurement intervals from 10ms to 1 sec. svn path=/trunk/; revision=6646
2002-11-15In gtk2 code :Olivier Abad1-30/+54
gdk_font_from_description() may return NULL if no GdkFont matching a PangoFontDescription can be loaded. Replace primitives using GdkFonts (gdk_string_width, gdk_draw_string) with their pango equivalent (pango_layout_get_pixel_size, gdk_draw_layout). svn path=/trunk/; revision=6639
2002-11-15Gtk1 version of io-statRonnie Sahlberg1-32/+37
svn path=/trunk/; revision=6636
2002-11-14Feature for Gtk2: GUI version of IO-STAT. Looks reasonable with one graph. ↵Ronnie Sahlberg1-0/+981
Looks "sub-optimal" with multiple graphs overwriting eachothers. We can just delete it later if it cant be improved visually. svn path=/trunk/; revision=6629