You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2017/08/10 10:02:27 UTC
[3/4] incubator-weex git commit: * [ios] update some macro in monitor
* [ios] update some macro in monitor
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/5fa95cec
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/5fa95cec
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/5fa95cec
Branch: refs/heads/0.16-dev
Commit: 5fa95cec88482aa5859ad1ba3c37135c8d7656c5
Parents: 3d84ec8
Author: boboning <ni...@163.com>
Authored: Thu Aug 10 17:28:47 2017 +0800
Committer: boboning <ni...@163.com>
Committed: Thu Aug 10 17:28:47 2017 +0800
----------------------------------------------------------------------
ios/sdk/WeexSDK/Sources/Monitor/WXMonitor.m | 8 ++++----
ios/sdk/WeexSDK/Sources/Protocol/WXAppMonitorProtocol.h | 2 ++
2 files changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5fa95cec/ios/sdk/WeexSDK/Sources/Monitor/WXMonitor.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Monitor/WXMonitor.m b/ios/sdk/WeexSDK/Sources/Monitor/WXMonitor.m
index 96397dc..99797e0 100644
--- a/ios/sdk/WeexSDK/Sources/Monitor/WXMonitor.m
+++ b/ios/sdk/WeexSDK/Sources/Monitor/WXMonitor.m
@@ -104,12 +104,12 @@ static WXThreadSafeMutableDictionary *globalPerformanceDict;
if (instance.userInfo[@"weex_bundlejs_requestType"]) {
commitDict[@"requestType"] = instance.userInfo[@"weex_bundlejs_requestType"];
}
- if (instance.userInfo[@"weex_cache_processTime"]) {
- commitDict[@"cacheProcessTime"] = instance.userInfo[@"weex_cache_processTime"];
+ if (instance.userInfo[CACHEPROCESSTIME]) {
+ commitDict[CACHEPROCESSTIME] = instance.userInfo[CACHEPROCESSTIME];
}
- if (instance.userInfo[@"weex_cache_ratio"]) {
- commitDict[@"cacheRatio"] = instance.userInfo[@"weex_cache_ratio"];
+ if (instance.userInfo[CACHERATIO]) {
+ commitDict[CACHERATIO] = instance.userInfo[CACHERATIO];
}
if (instance.userInfo[WXCUSTOMMONITORINFO]) {
if([instance.userInfo[WXCUSTOMMONITORINFO] isKindOfClass:[NSDictionary class]]) {
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5fa95cec/ios/sdk/WeexSDK/Sources/Protocol/WXAppMonitorProtocol.h
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Protocol/WXAppMonitorProtocol.h b/ios/sdk/WeexSDK/Sources/Protocol/WXAppMonitorProtocol.h
index 6bba638..761ba8e 100644
--- a/ios/sdk/WeexSDK/Sources/Protocol/WXAppMonitorProtocol.h
+++ b/ios/sdk/WeexSDK/Sources/Protocol/WXAppMonitorProtocol.h
@@ -36,6 +36,8 @@
#define SCREENRENDERTIME @"screenRenderTime"
#define TOTALTIME @"totalTime"
+#define CACHEPROCESSTIME @"cacheProcessTime"
+#define CACHERATIO @"cacheRatio"
@protocol WXAppMonitorProtocol <WXModuleProtocol>