System.nanoTime¶
The naive way is to profling your JVM application using System.nanoTime
(which gets the system time in nanosecond resolution).
Profile C++ Code
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
You can use valgrind with the following options
valgrind --tool=callgrind ./(Your binary)
It will generate a file called callgrind.out.x. You can then use kcachegrind tool to read this …