java - How to profile Native JNI library -



java - How to profile Native JNI library -

how can profile java native interface library written in c?

i know usual c profilers, question how can profile whole set including calls jvm methods might slowing downwards program.

after research , testing of methods proposed here ended using sprof.

basically followed instructions available in answer. comments:

i had leave ld_profile_output empty in order result in /var/tmp/, otherwise output file not generated. i assigned ld_profile=libxxxx.so

to profile ran java code loads , uses native jni library , got file profiling results in:

/var/tmp/libxxxx.so.profile

once have file can read using command:

sprof /path/to/libxxxx.so /var/tmp/libxxxx.so.profile

the results of profiling follow same template gprof. here can find description of contents , meaning.

java c jvm jni profiling

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -