Open main menu

CDOT Wiki β

Changes

Wiki Wiki Wiki Wild Wild West

533 bytes added, 10:12, 31 October 2012
Profiling
== Profiling ==
See screenshot of Instruments (MacOS X) profiling tool: http://i.imgur.com/JT5sz.png
The above profile was done an archive containing a 1GB binary file containing dummy data.
* Method that takes the most time: CopyString(int, int) of the Unpack class
Source code of method: http://pastebin.com/0L3tMwAc
 
== Second Profile Run ==
After altering makefile.unix to run g++ with the -pg flag, my profile run involved extracting from an 8.3gb file with command `~/unrar/unrar x ~/SoundPacksDist.rar ~/SoundPacks/'. This yielded the following gprof report [http://pastebin.com/XMKVn47g http://pastebin.com/XMKVn47g]
 
Unlike Dale's profile, I'm seeing Unpack::Unpack29(bool) as the routine with the longest running time (about 86% of total running time)