Tencent / matrix

Matrix is a plugin style, non-invasive APM system developed by WeChat.
Other
11.59k stars 1.88k forks source link

请问如何查看启动耗时┭┮﹏┭┮ #874

Open LingLuoJack opened 10 months ago

LingLuoJack commented 10 months ago

你好,我使用了代码中的android-sample,我想要获取应用的启动耗时,将demo中的 TracePlugin tracePlugin = configureTracePlugin(dynamicConfig); builder.plugin(tracePlugin);取消注释后, 打印的配置如下: `trace plugin init, trace config:

TraceConfig

                           * isDebug:   true
                           * isDevEnv:  false
                           * isHasActivity: true
                           * defaultFpsEnable:  true
                           * defaultMethodTraceEnable:  true
                           * defaultStartupEnable:  true
                           * defaultAnrEnable:  true
                           * splashActivities:  sample.tencent.matrix.SplashActivity;
                           * historyMsgRecorder:    false
                           * denseMsgTracer:    false`

。 log日志只有 {"processInfo":{"pid":19070,"name":"sample.tencent.matrix","activity":"SplashActivity","isProcessFg":true,"isAppFg":true},"statusInfo":{"state":"R (running)","vmSize":7331044,"vmRss":186508,"vmSwap":13248,"threads":51,"fdSize":256,"oom_adj":0,"oom_score_adj":0},"javaMemInfo":{"used":15161688,"recycled":387491496,"heapSize":402653184,"max":402653184,"memClass":384,"largeMemClass":512},"nativeMemInfo":{"used":16706344,"recycled":1389784,"heapSize":18096128},"systemInfo":{"totalMemByte":7832018944,"availMemByte":4348293120,"lowMem":false,"threshold":226492416}} Matrix....Watcher mDestroyedActivityInfos add sample.tencent.matrix.SplashActivity, issueList页面只有fps相关tag日志。 请问我该怎么获取这个启动耗时,万分感谢