diff --git a/entry/src/main/ets/pages/index.ets b/entry/src/main/ets/pages/index.ets index 062cdde22b735deeebe4f07a1b157754823a6471..58b8104382efd1ef9964d2456efd67fe2c08eb71 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