You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2020/08/26 02:53:54 UTC
[skywalking-client-js] 34/48: fix: async
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 <fi...@outlook.com>
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,