[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [IMP-dev] profiling imp code to boost your speed



p.s. if you don't have pprof, ask our friendly system to put it for you :)

On Fri, Apr 17, 2015 at 2:15 PM, Barak Raveh <" target="_blank">> wrote:
Hi all,Â

Following Tuesday's discussion on slowness of IMP on some instances - all should be reminded of the powerful --cpu_profile IMP flag. Just add it to your command line, and IMP will generate a profiling file that you can view with google profiler as a tree:

pprof --gv <your-binary-file> <the-profile-info-file-generated-by-cpu_profile-flag>

it's almost certain you can at least double the performance of your app with a few simple steps. Likely more. Try to apply it to a long process (>60 seconds) so you will profile the interesting parts of your process, and not the overhead of loading files, etc.

--
Barak



--
Barak