aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/io_stat.c
AgeCommit message (Collapse)AuthorFilesLines
2004-09-29Move the tap infrastructure to the epan directory.Guy Harris1-1/+1
svn path=/trunk/; revision=12128
2004-07-27From Ian Schorr: don't check the validity of the field name for anGuy Harris1-7/+7
advanced-mode graph if the graph isn't active. svn path=/trunk/; revision=11537
2004-07-19renamed filter_prefs to filter_dlg, as the filter settings are (well, for a ↵Ulf Lamping1-4/+1
long time) no longer part of the preferences dialog. svn path=/trunk/; revision=11436
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
2004-05-23use new functions in window API (ui_util.h),Ulf Lamping1-18/+5
use window_new instead of dlg_window_new for the statistics windows (as these are no dialog windows) do some code cleanup svn path=/trunk/; revision=10979
2004-05-22going to have a standard behaviour of the dialogsUlf Lamping1-4/+2
(including remebering of the dialog size in recent file). for a first step, I replaced all window_new() calls from dialogs into dlg_window_new() ones, and removed all gtk_window_set_position calls, this should be done in a more generalized way svn path=/trunk/; revision=10964
2004-04-17Report problems due to the user specifying something we can't handle asGuy Harris1-7/+7
errors, not warnings. svn path=/trunk/; revision=10618
2004-03-13replaced sprintf / snprintf by g_snprintf,Ulf Lamping1-28/+28
various other string related changes svn path=/trunk/; revision=10373
2004-03-08update to iostat make it automagically make sure the field is part of the ↵Ronnie Sahlberg1-7/+59
filter string svn path=/trunk/; revision=10342
2004-02-27added dfilter string syntax check to various placesUlf Lamping1-1/+2
svn path=/trunk/; revision=10252
2004-02-25changed some labelsUlf Lamping1-11/+59
svn path=/trunk/; revision=10231
2004-02-24minor redesign of the dialogUlf Lamping1-43/+62
svn path=/trunk/; revision=10230
2004-02-24added a "Close" button to the dialogUlf Lamping1-3/+29
svn path=/trunk/; revision=10221
2004-02-23changed title and menu registering to "IO Graphs"Ulf Lamping1-8/+8
and changed some of the labels to be more intuitive svn path=/trunk/; revision=10207
2004-02-23Changed all items to "Endpoint List" and get rid of the "Host List" group.Ulf Lamping1-3/+3
called "IO stats" now "Throughput Graph" as this might be somewhat more descriptive IMHO. Same applies to the "TCP Stream Analysis" -> "TCP Stream Graphs" svn path=/trunk/; revision=10203
2004-02-23statistics menu redesigned, now looking more like the former menu,Ulf Lamping1-2/+2
items now again grouped by function, not by ISO layer svn path=/trunk/; revision=10202
2004-02-22Redesigned the menu structure of the former statistics stuff,Ulf Lamping1-7/+3
now sorted by ISO-layer, than alphabetically (now longer by functionality). Seperated the tap registering from the actual menu making stuff, so the seperate step of registering the tap and the menu is no longer needed. Removed all things related to this double registering. svn path=/trunk/; revision=10180
2004-02-13Add a "window_new()" routine that creates a window of a given type, setsGuy Harris1-4/+7
the title, and arranges to set the icon for it. Use that instead of "gtk_window_new()" and separate calls to set the title and arrange to set the icon. Regularize #includes a bit. Clean up white space. svn path=/trunk/; revision=10054
2004-02-11Most taps that now include "tap_menu.h" no longer need to includeGuy Harris1-3/+1
<stdio.h> to define FILE; get rid of the include. svn path=/trunk/; revision=10034
2004-02-11Move the declaration of "register_tap_menu_item()" into a newGuy Harris1-2/+2
"tap_menu.h" file, and have the Ethereal taps include that rather than "menu.h", so we don't have to worry about making sure we've included <stdio.h> to define FILE, etc. just because some "menu.h" functions require it. svn path=/trunk/; revision=10031
2004-02-11Add a routine to be used to put up alert boxes for invalid displayGuy Harris1-3/+3
filter expressions; use that in a number of places, so we use the same alert box. (More work is needed to figure out the right way to handle some other "dfilter_compile()" failures.) Use the error message from the display filter as the primary error, as that's the message that tells you what the underlying problem is. (The GNOME HIG says "In most situations the user should only need the primary text to make a quick decision", so the primary text should tell you what's wrong with the filter, not just that it's invalid. If there are messages from the display filter code that don't give enough information, or are a bit cryptic, such as "Unexpected end of filter string," those should be fixed in the display filter code.) Improve the error used if an empty filter is used for "find frame". svn path=/trunk/; revision=10025
2004-01-31Pass ESD_BTN_OK rather than NULL as a second argument toGuy Harris1-9/+9
"simple_dialog()"; NULL might be #defined to be a pointer expression on some platforms, causing compiler warnings (and, on platforms where a null pointer doesn't have all its bits 0, possibly causing misbehavior, although I don't think there are any such platforms on which Ethereal runs). Don't allow 0 as button mask argument to "simple_dialog()". Squelch a compiler warning. Report fatal problems as errors, not warnings. Report file I/O errors with "file_open_error_message()". Report file write errors (including those reported by "close()", e.g. some errors writing to an NFS server) when saving raw packet data to a file. svn path=/trunk/; revision=9915
2004-01-21use stock buttons whereever possible,Ulf Lamping1-2/+2
added some ethereal specific stock icons svn path=/trunk/; revision=9763
2004-01-13Add a routine "retap_packet()" that runs through all packets, dissectingGuy Harris1-28/+14
them and running all taps on them, but not reconstructing the packet list. Use that in the IO-stat tap rather than "redissect_packet()"; the latter does more work and redraws the display, neither of which are necessary. Call the filter callback when the Calc field is changed, to redraw the graphs; that change also fixes things so that it's called when the Filter field is changed. Rename the "filter_button" member of an io_stat_graph_t to "filter_field", as it's not the "Filter:" button, it's the text field containing the filter expression. svn path=/trunk/; revision=9659
2004-01-13"dfilter_compile()" supplies a null dfilter pointer for an empty filterGuy Harris1-2/+3
expression; don't assume it always supplies a non-null pointer. svn path=/trunk/; revision=9657
2004-01-13Add a routine "io_stat_reset()" to reset an io_stat_t; haveGuy Harris1-123/+100
"gtk_iostat_reset()" call it, and have calls to "gtk_iostat_reset(&io->graphs[0])" just call "io_stat_reset(io)". Add a routine "io_stat_draw()" to draw an io_stat_t; have "gtk_iostat_draw()" call it, and have calls to "gtk_iostat_draw(&io->graphs[0])" just call "io_stat_draw(io)". Add a routine "io_stat_redraw()" to set the "needs_redraw" flag on an io_stat_t and call "io_stat_draw()" on it, in order to force a redraw. Use that in place of set flag/io_stat_draw pairs. Add a routine "enable_graph()" to set an io_stat_graph_t's display flag to TRUE and register a tap listener for it, and add a routine "disable_graph()" to, if an io_stat_graph_t's display flag is set, clear it, remove its tap listener, and turn its display button off. Use "disable_graph()" to disable graphs, rather than just turning the display flag off, so that we ensure that the invariant "tap listener present iff graph enabled" is preserved - the code to destroy an io-stat window only removes tap listeners for enabled graphs, so it depends on that invariant being preserved. Check the validity of a display filter by compiling it, not by going through the whole sequence of registering a tap listener. svn path=/trunk/; revision=9656
2004-01-05removed some MSVC warnings (level 3)Ulf Lamping1-4/+4
svn path=/trunk/; revision=9560
2004-01-03Make Analyze/Statistics have an accelerator of Alt+A S and moveRichard Sharpe1-2/+2
Analyze/Summary to Alt+A Y. svn path=/trunk/; revision=9537
2003-12-23removed some MSVC warnings (conversions between double/float and int)Ulf Lamping1-7/+7
svn path=/trunk/; revision=9422
2003-12-17From Lars Roland: have common code to handle display filter dialogs inGuy Harris1-2/+2
taps, and use that in the H.225 taps. svn path=/trunk/; revision=9327
2003-12-16Use gtk compatibility macros (from compat_macros.h) instead of some gtk+Olivier Abad1-15/+17
v1.2 functions which are deprecated in gtk+ v2. Update OBJECT_SET_DATA macros to cast "data" to (gpointer). svn path=/trunk/; revision=9296
2003-12-14From Ronnie Sahlberg: support iostat graphs with 1ms resolution.Guy Harris1-4/+4
svn path=/trunk/; revision=9283
2003-12-02From Didier Gautheron: put an "fvalue_t" structure into a "field_info"Guy Harris1-3/+3
structure, rather than separately allocating "fvalue_t"s and having the "field_info" structure point to them - this appears to speed up protocol tree construction a bit. svn path=/trunk/; revision=9146
2003-10-27Don't draw a Y-axis label if you haven't constructed the label string.Guy Harris1-16/+16
svn path=/trunk/; revision=8792
2003-10-26Update to cf_get_display_name()Ronnie Sahlberg1-12/+15
return "<no file>" if there is no file loaded yet instead of crashing in io-stat io-stat only print the label for the top tick on the y axis to make it look less cluttered svn path=/trunk/; revision=8781
2003-10-15Client LOAD measurement for io-statRonnie Sahlberg1-28/+86
See manpage (hopefully manpage does not reformat my nice ascii graph) While Service Response Times and the MIN/MAX/AVG thing in io-stat are measurements on the server load. The new measurement type LOAD is a measurement of Client LOAD. Or rather, it is an attempt to measure client LOAD by measuring how much concurrency in its requests the client generates. It the client is slow in starting new i/o when a previous i/o has completed, this willb e indicated by the concurrency being lowered. it is an experiment. i am not aware of any other attempts in deducing client workload from looking at captures. svn path=/trunk/; revision=8706
2003-10-15Remove the unnecassary HashTable and use gtk_object_[get|set]_dataRonnie Sahlberg1-30/+6
to keep track of which io structure a certain draw area is associated with. svn path=/trunk/; revision=8704
2003-10-15remove an extra ';' to keep visual studio happyRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=8703
2003-10-14update to iostat,Ronnie Sahlberg1-2/+15
added new plot style: filled bar svn path=/trunk/; revision=8695
2003-10-14remove the redundant count_type structure as part of the iostat cleanupRonnie Sahlberg1-22/+20
svn path=/trunk/; revision=8694
2003-10-14further cleanupRonnie Sahlberg1-16/+13
remove redundant structure for yscale_max svn path=/trunk/; revision=8693
2003-10-14further cleanupRonnie Sahlberg1-15/+13
remove the redundant pixels_per_tick structure svn path=/trunk/; revision=8692
2003-10-14Simplify handling of tick valRonnie Sahlberg1-15/+12
remove unnessecary code and structures cleanup svn path=/trunk/; revision=8691
2003-10-14update to iostatRonnie Sahlberg1-15/+72
add different styles to draw the plot svn path=/trunk/; revision=8689
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