Matrix is an APM (Application Performance Manage) used in Wechat to monitor, locate and analyse performance problems. It is a plugin style, non-invasive solution and is currently available on iOS, macOS and Android. The monitoring scope of the current tool includes: crash, lag, and out-of-memory, which includes the following two plugins, WCCrashBlockMonitorPlugin, which is based on KSCrash framework and features cutting-edge lag stack capture capabilities with crash capture, and WCMemoryStatPlugin, which is a performance-optimized out-of-memory monitoring tool that captures memory allocation and the callstack of an application's out-of-memory event. Determine whether the app is stuck by checking the running status of the Runloop, and support both the iOS and macOS platform. Add time-consuming stack fetching, attaching the most time-consuming main thread stack to the thread snapshot log.
Features
- Easy integration, no code intrusion
- Receive callbacks to obtain monitoring data
- Each plugin added to MatrixBuilder will call back the corresponding event via pluginListener
- Matrix integrates into your app and collects crash, lag, and out-of-memory data
- Detect the activity leak and bitmap duplication basing on WeakReference and Square Haha
- Evaluate the quality of SQLite statement automatically by using SQLite official tools