Wireshark mailing list archives
Re: The cost of memory allocation
From: Max Dmitrichenko <dmitrmax () gmail com>
Date: Wed, 21 Sep 2016 20:18:36 +0300
2016-09-21 12:14 GMT+03:00 Paul Offord <Paul.Offord () advance7 com>:
Thanks Graham – that’s a great point and I’ll take a look this evening with a Release build.
Paul, if you are familiar with Linux, I may recommend you to use callgrind tool from the valgrind toolset for this purpose. Its reports can be viewed with KCachegrind and they are very informative. The only disadvantage is that is slows down execution by the factor of 8-10 since it virtualizes execution of all process'es instructions to estimate accurate number of machine cycles needed for execution and to build a good callgraph. The advantage is that report is not a statistic based on many snapshots of process state but is an accurate estimation of virtually any single function call with a perfect estimation of time taken by the function body and of time taken by all its callees. Also you can use it on a release build without any modification. -- With best regards Max Dmitrichenko
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- The cost of memory allocation Paul Offord (Sep 21)
- Re: The cost of memory allocation Graham Bloice (Sep 21)
- Re: The cost of memory allocation Paul Offord (Sep 21)
- Re: The cost of memory allocation Graham Bloice (Sep 21)
- Re: The cost of memory allocation Paul Offord (Sep 21)
- Re: The cost of memory allocation Max Dmitrichenko (Sep 21)
- Re: The cost of memory allocation Paul Offord (Sep 21)
- Re: The cost of memory allocation Paul Offord (Sep 21)
- Re: The cost of memory allocation Graham Bloice (Sep 21)
- Re: The cost of memory allocation Anders Broman (Sep 21)
- Re: The cost of memory allocation Paul Offord (Sep 21)
- Re: The cost of memory allocation Anders Broman (Sep 22)
- Re: The cost of memory allocation Paul Offord (Sep 25)
- Re: The cost of memory allocation Anders Broman (Sep 26)
- Re: The cost of memory allocation Graham Bloice (Sep 21)
- Re: The cost of memory allocation Paul Offord (Sep 25)