How to dump status of jemalloc on Android
omycle at gmail.com
Mon Jul 27 02:56:33 PDT 2015
It's known that the jemalloc is adopted by Android. Recently I want to dump some jemalloc status information with the thread exit. Fortunately, the function of status dump has been done by jemalloc.
After tuned the variable of opt_stats_print into true in malloc_init_hard(), the stats_print_atexit() was registered as an hook for atexit(). But, there is nothing status information dumped when the process exit and there is only the warning on the console like below.
"W/libc ( 859): WARNING: generic atexit() called from legacy shared library"
So, how to dump the jemalloc status on Android?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the jemalloc-discuss