On Mon, 17 Mar 2014, Michael Schuster wrote:

One more idea that comes to mind: use dtrace to find out which part of the code's being 
"exercised" while
you're testing - use something tick-based (I'm fairly sure you'll be able to 
find something better than I'd be
able to cook up, so I won't ;-). Then at least you have an idea whether your 
theory is a good one.

Is DTrace actually useful for a program which runs for less than one second? DTrace typically collects data at 999Hz. There could be a shortage of samples.

Regardless, what I see (from DTrace) is that the program is reported to be spending 64-70% of its time in the tight loop which takes bytes of input data from a buffer and writes (expands) them contiguously into memory. About 0.5% of the time is reported to be due fread().

Bob
--
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to