profiling imp code to boost your speed
![](https://secure.gravatar.com/avatar/e40a56ed126a0d24557673b0ac7b03e2.jpg?s=120&d=mm&r=g)
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.
![](https://secure.gravatar.com/avatar/e40a56ed126a0d24557673b0ac7b03e2.jpg?s=120&d=mm&r=g)
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 barak.raveh@gmail.com 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 >
![](https://secure.gravatar.com/avatar/cfe8857a24d561e8e700ab18e3ba7ec8.jpg?s=120&d=mm&r=g)
On 4/17/15 2:15 PM, Barak Raveh wrote: > 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:
See also the page in the manual: http://integrativemodeling.org/nightly/doc/manual/profiling.html
Ben
participants (2)
-
Barak Raveh
-
Ben Webb