From 1dcff0bef93af5c532b26007bc26160756e3662f Mon Sep 17 00:00:00 2001 From: jiangwei Date: Wed, 11 Dec 2024 14:59:33 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Abytrace=E6=97=A5=E8=90=BD=EF=BC=8C?= =?UTF-8?q?=E4=BD=BF=E7=94=A8hitrace=E6=96=B9=E5=BC=8F=E9=87=87=E9=9B=86?= =?UTF-8?q?=20Signed-off-by:jiangwei=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jiangwei --- entry/src/main/ets/pages/index.ets | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/entry/src/main/ets/pages/index.ets b/entry/src/main/ets/pages/index.ets index 062cdde..58b8104 100644 --- a/entry/src/main/ets/pages/index.ets +++ b/entry/src/main/ets/pages/index.ets @@ -24,7 +24,7 @@ import Keyboard from '../common/components/Keyboard'; import IncomingCom from '../common/components/IncomingCom'; import CallStateConst from '../common/constant/CallStateConst'; import LogUtils from '../common/utils/LogUtils'; -import byTrace from '@ohos.bytrace' +import hiTraceMeter from '@ohos.hiTraceMeter'; import NotificationManager from '../model/NotificationManager'; import CallManager from '../model/CallManager'; import backgroundTaskManager from '@ohos.backgroundTaskManager'; @@ -102,12 +102,12 @@ struct Index { aboutToAppear(): void { LogUtils.i(TAG, 'aboutToAppear') - byTrace.startTrace('aboutToAppear', 0); + hiTraceMeter.startTrace('aboutToAppear', 0); this.notificationManager = new NotificationManager(); CallManager.getInstance()?.init(this); AppStorage.SetOrCreate('notificationManager', this.notificationManager); this.mCallDataManager = CallDataManager.getInstance(); - byTrace.finishTrace('aboutToAppear', 0); + hiTraceMeter.finishTrace('aboutToAppear', 0); this.smListener = mediaQuery.matchMediaSync('(320vp