Ask Your Question

Customizing tick interval in IO Graph

asked 2018-07-30 13:34:49 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

Hi all,

six years ago, a user posted this question about how to change the tick interval in the IO Graph:

"In IO Graph I would like to use tick interval value other than 0.001/0/0.01/0.1/1/10 second like 0.025 second. Is there an add-on somewhere that allows us to specify our own value or do I need to perhaps request that?"

This is exactly what I want to do too. The answer for that was:

"Those values are hard-coded in io_stat.c (look for tick_interval_values). To modify the values a code change is required. As Wireshark is open source, you can build your own version, with values that fit better in your environment."

I am using Wireshark Version 2.4.5 (Git v2.4.5 packaged as 2.4.5-1). It seems that the code files have changed, since I can't find the file io_stat.c in my files.

Does anyone know where I can find the hardcoded tick interval values? (Github-link or something similar)

Or is there any other possibility of customizing the IO Graph tick interval?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2018-07-30 14:20:18 +0000

cmaynard gravatar image

updated 2018-07-30 14:29:09 +0000

grahamb gravatar image

I think you probably want to look at io_graph_dialog.cpp now.

edit flag offensive delete link more


In particular the calls to intervalComboBox->addItem

grahamb gravatar imagegrahamb ( 2018-07-30 14:28:49 +0000 )edit

Thank you both so much!

I run Wireshark on Ubuntu 18.04 and i installed it from the repos with sudo apt-get wireshark.

Now I don't know where to find the file you mentioned on my system. I tried locate wireshark but couldn't find this certain file or any wireshark - .cpp file at all.

Do you have any solutions?

jjulianf gravatar imagejjulianf ( 2018-07-31 09:13:24 +0000 )edit

That just installs the wireshark binary. To customise the binary you will need to modify the source file and rebuild the binary. This is not a trivial exercise if you haven't built a major piece of software before. Instructions for building Wireshark can be found in the Wireshark Developers Guide.

grahamb gravatar imagegrahamb ( 2018-07-31 09:21:13 +0000 )edit

answered 2018-07-30 15:25:15 +0000

thetechfirm gravatar image

if it helps, i use the copy button , paste it in excel and create charts with more control.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-07-30 13:34:49 +0000

Seen: 38 times

Last updated: Jul 30