This is an automated email from the ASF dual-hosted git repository. wusheng pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/skywalking-client-js.git
commit 1f376276841227f0629d665dbeeaa4dcfbc56a4c Author: Qiuxia Fan <[email protected]> AuthorDate: Mon Feb 10 10:49:20 2020 +0800 fix: async --- src/performance/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/performance/index.ts b/src/performance/index.ts index a331236..5723398 100644 --- a/src/performance/index.ts +++ b/src/performance/index.ts @@ -27,9 +27,9 @@ class TracePerf { perfDetail: {}, } as any; - public recordPerf(options: CustomPerfOptionsType) { + public async recordPerf(options: CustomPerfOptionsType) { if (this.isPerf) { - this.perfConfig.performance = pagePerf.getPerfTiming(); + this.perfConfig.performance = await pagePerf.getPerfTiming(); } const perfInfo = { perfDetail: this.perfConfig.perfDetail,
