* [ios] add instanceId to performance dict, that we can differentiate instance exactlyã
Then we can do something like this: 1. get instanceId when deal with performance 2. upload performance with instanceId Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/e03e0c6a Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/e03e0c6a Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/e03e0c6a Branch: refs/heads/master Commit: e03e0c6ab70ee62905a9a9416d25b57ca8236d35 Parents: d731f4d Author: gurisxie <279483...@qq.com> Authored: Mon Nov 13 16:00:12 2017 +0800 Committer: gurisxie <279483...@qq.com> Committed: Mon Nov 13 16:00:12 2017 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK/Sources/Monitor/WXMonitor.m | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/e03e0c6a/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 453cd41..dc9ebe6 100644 --- a/ios/sdk/WeexSDK/Sources/Monitor/WXMonitor.m +++ b/ios/sdk/WeexSDK/Sources/Monitor/WXMonitor.m @@ -165,6 +165,8 @@ static WXThreadSafeMutableDictionary *globalPerformanceDict; commitDict[commitKey] = @([end integerValue] - [start integerValue]); } + commitDict[@"instanceId"] = [instance instanceId]?:@""; + id<WXAppMonitorProtocol> appMonitor = [WXHandlerFactory handlerForProtocol:@protocol(WXAppMonitorProtocol)]; if (appMonitor && [appMonitor respondsToSelector:@selector(commitAppMonitorArgs:)]){ [appMonitor commitAppMonitorArgs:commitDict];