Matrix
Plugin style, non-invasive APM system developed by WeChat
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.