ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] Profiling tshark

From: Anders Broman <anders.broman@xxxxxxxxxxxx>
Date: Mon, 9 Jun 2014 08:02:13 +0000

Hi,

As can be seen we have managed to make a significant improvement from 1.10.6

 

wireshark 1.10.6 (v1.10.6 from master-1.10)

==44865== Callgrind, a call-graph generating cache profiler

==44865== Copyright (C) 2002-2013, and GNU GPL'd, by Josef Weidendorfer et al.

==44865== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info

==44865== Command: /usr/bin/tshark -Y frame -nr /home/ericsson/etxrab/TCT_SIP_traffic.pcapng

==44865==

==44865== For interactive control, run 'callgrind_control -h'.

==44865==

==44865== Events    : Ir

==44865== Collected : 31607647253

==44865==

==44865== I   refs:      31,607,647,253

 

2014-06-09 wireshark 1.99.0 (v1.99.0-rc1-200-g8996051 from master)

 

ericsson@tct-sniffer2:~/wireshark$ tools/valgrind-wireshark.sh -p -Y -b /home/ericsson/wireshark/ /home/ericsson/etxrab/TCT_SIP_traffic.pcapng

==29239== Callgrind, a call-graph generating cache profiler

==29239== Copyright (C) 2002-2012, and GNU GPL'd, by Josef Weidendorfer et al.

==29239== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info

==29239== Command: /home/ericsson/wireshark/.libs/lt-tshark -Y frame -nr /home/ericsson/etxrab/TCT_SIP_traffic.pcapng

==29239==

==29239== For interactive control, run 'callgrind_control -h'.

==29239==

==29239== Events    : Ir

==29239== Collected : 20842203780

==29239==

==29239== I   refs:      20,842,203,780

 

Some stuff that might still be interesting to look into is xml parsing

Tvb_parse_get()

 

In tree_data_add_maybe_interesting_field() change the g_hash_table_new and g_ptr_array_add() to use wmem based functions.

 

Change p_add_proto_data() to use wmem based functions.

 

Regards

Anders