From: John R. <jr...@bi...> - 2018-02-28 14:50:15
|
> I use callgrind a lot when I am trying to view the execution path of C++ programs (call it an alternate use case of the execution profiler). I was wondering if it is possible to do the same thing for a Java program running in a JVM. Also, is it possible to do the same thing for a Perl script? Callgrind tracks only call+return at the level of machine instructions, or perhaps also when a compiler annotates the generated machine language to mark the call+return. In general callgrind does not track call+return which are handled entirely within a higher-level interpreter such as JVM or Perl. Callgrind does track the call+return of the internal implementation of the interpreter, and sometimes this may give clues to what is happening at the level of the input language. |