You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-32Lines changed: 24 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,17 +9,19 @@
9
9
[Matrix for iOS/macOS 中文版](#matrix_ios_cn)
10
10
[Matrix for android 中文版](#matrix_android_cn)
11
11
[Matrix for iOS/macOS](#matrix_ios_en)
12
-
[Matrix for android](#matrix_android_en)
12
+
[Matrix for android](#matrix_android_en)
13
13
14
14
**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.
15
15
16
16
# <aname='matrix_ios_en'> Matrix for iOS/macOS </a>
17
17
18
-
The monitoring scope of the current tool includes: crash, lag, and out-of-memory, which includes the following two plugins:
18
+
The monitoring scope of the current tool includes: crash, lag, and memory, which includes the following three plugins:
19
19
20
20
***WCCrashBlockMonitorPlugin:** Based on [KSCrash](https://github.com/kstenerud/KSCrash) framework, it features cutting-edge lag stack capture capabilities with crash capture.
21
21
22
-
***WCMemoryStatPlugin:** A performance-optimized out-of-memory monitoring tool that captures memory allocation and the callstack of an application's out-of-memory event.
22
+
***WCMemoryStatPlugin:** A memory monitoring tool that captures memory allocation and the callstack of an application's memory event.
23
+
24
+
***WCFPSMonitorPlugin:** A fps monitoring tool that captures main thread's callstack while user scrolling.
23
25
24
26
## Features
25
27
@@ -32,18 +34,10 @@ The monitoring scope of the current tool includes: crash, lag, and out-of-memory
32
34
#### WCMemoryStatPlugin
33
35
34
36
* Live recording every object's creating and the corresponding callstack of its creation, and report it when the application out-of-memory is detected.
35
-
* Use a balanced binary tree to store living objects and a hash table to store the callstack to optimize performance to the extreme
2. Run `pod repo update` to make CocoaPods aware of the latest available `matrix` versions;
43
-
3. In your Podfile, add `pod 'matrix-wechat'` to your app target, from the command line, run `pod install`;
44
-
4. Use the .xcworkspace file generated by CocoaPods to work on your project;
45
-
5. Add `#import <Matrix/Matrix.h>` , then you can use the performance probe tool of WeChat.
46
-
47
41
***Install with static framework**
48
42
1. Get source code of Matrix;
49
43
2. Open terminal, execute `make` in the `matrix/matrix-iOS` directory to compile and generate static library. After compiling, the iOS platform library is in the `matrix/matrix-iOS/build_ios` directory, and the macOS platform library is in the `matrix/matrix-iOS/build_macos` directory.
[crashBlockPlugin start]; // start the lag and crash monitor.
81
-
// [memoryStatPlugin start];
82
-
// start out-of-memory monitor
83
-
// Be careful, WCMemoryStatPlugin has a large performance loss after it is turned on. It is recommended to turn it on as needed.
84
-
78
+
[memoryStatPlugin start]; // start memory monitor
79
+
[fpsMonitorPlugin start]; // start fps monitor
85
80
```
86
81
87
82
#### Receive callbacks to obtain monitoring data
@@ -109,7 +104,7 @@ Each plugin added to `MatrixBuilder` will call back the corresponding event via
109
104
110
105
## Tutorials
111
106
112
-
At this point, Matrix has been integrated into the app and is beginning to collect crash, lag, and out-of-memory data. If you still have questions, check out the example: `samples/sample-apple/MatrixDemo`.
107
+
At this point, Matrix has been integrated into the app and is beginning to collect crash, lag, and memory data. If you still have questions, check out the example: `samples/sample-iOS/MatrixDemo`.
0 commit comments