How to dump status of jemalloc on Android

LiHaifeng omycle at gmail.com
Mon Jul 27 02:56:33 PDT 2015


Hi there,
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?
Thanks. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jemalloc.net/mailman/jemalloc-discuss/attachments/20150727/6c02a911/attachment.html>


More information about the jemalloc-discuss mailing list