zkwlx / himem Goto Github PK
View Code? Open in Web Editor NEWHiMem 是知乎内部使用的针对 Android 系统开发的线上应用内存使用监控与分析套件,目前支持 mmap/munmap/malloc/calloc/realloc/free 等库函数的监控,同时提供高性能的 Java 层和 Native 层调用栈捕获能力。
License: Apache License 2.0
HiMem 是知乎内部使用的针对 Android 系统开发的线上应用内存使用监控与分析套件,目前支持 mmap/munmap/malloc/calloc/realloc/free 等库函数的监控,同时提供高性能的 Java 层和 Native 层调用栈捕获能力。
License: Apache License 2.0
使用系统的 unwinde库 进行栈回溯 只支持到 Android 9吗?
// 用于 mmap/munmap 去重(出于性能考虑不加锁,而是用线程私有数据,可能有失严谨)
thread_local MemoryCache *mmapAddressCache = new MemoryCache();
// 用于 malloc/free 去重(出于性能考虑不加锁,而是用线程私有数据,可能有失严谨)
thread_local MemoryCache *allocAddressCache = new MemoryCache();
看到my_mmap 好像没有拿到caller_path_name,请问有什么办法吗?
还有一个问题,看到最终的分配数据总量和dumpsys meminfo 里的Native heap 的heap alloc的数据差距很大,请问是什么原因呢
xhook_ignore(".*libc.so$", "free");
xhook_ignore(".*libc.so$", "malloc");
xhook_ignore(".*libc.so$", "calloc");
xhook_ignore(".*libc.so$", "realloc");
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.