Project

General

Profile

Profiling Tools

OProfile

This one appears to work well and does not require a special build of NS12.

  • Install both oprofile and eclipse-oprofile packages via the package manager.
  • Restart Eclipse if it was already running.
  • Right click the nightshade12 icon under Binaries in Eclipse and select Profile As → Profile with OProfile
  • You’ll be prompted for root access
  • On Fedora 15 and greater an error dialog will appear the first time you profile; perform the steps it requests and retry

Upon exiting NS12, Eclipse will automatically parse the profiling output and open an OProfile panel displaying the results. Output can be double clicked to navigate directly to the source code for the function/method(s) displayed.

GProf

Useless. Doesn’t support multiple threads properly. All output appears to be only for OSG’s dispatch thread.

Valgrind Suite

Causes NS12 to crash upon startup with an STL exception. Underlying reason unknown. It would be nice to get this working eventually, it’s a very good tool set and the level of integration with Eclipse is great.