THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

Customizing tick interval in IO Graph

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?

updated 2018-07-30 13:34:49 +0000
This post is a wiki. Anyone with karma >750 is welcome to improve it.
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

0

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

thetechfirm's avatar
96
thetechfirm
answered 2018-07-30 15:25:15 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

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

cmaynard's avatar
11.1k
cmaynard
answered 2018-07-30 14:20:18 +0000
grahamb's avatar
23.8k
grahamb
updated 2018-07-30 14:29:09 +0000
edit flag offensive 0 remove flag delete link

Comments

In particular the calls to intervalComboBox->addItem

grahamb's avatar grahamb (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's avatar jjulianf (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's avatar grahamb (2018-07-31 09:21:13 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer