diff --git a/PerformanceAnalysisKit/PerformanceAnalysisTool/entry/src/main/ets/pages/Index.ets b/PerformanceAnalysisKit/PerformanceAnalysisTool/entry/src/main/ets/pages/Index.ets index 483954307a6c4e9211f292e672c62e94936d3a64..bb0871ad23df3d5d779d9f1185993fc804919f5f 100644 --- a/PerformanceAnalysisKit/PerformanceAnalysisTool/entry/src/main/ets/pages/Index.ets +++ b/PerformanceAnalysisKit/PerformanceAnalysisTool/entry/src/main/ets/pages/Index.ets @@ -20,7 +20,7 @@ import testNapi from 'libentry.so'; // [End Project_Header] // [Start JsLeakWatcherImport] -import jsLeakWatcher from '@ohos.hiviewdfx.jsLeakWatcher'; +import { jsLeakWatcher } from '@kit.PerformanceAnalysisKit'; // [End JsLeakWatcherImport] // [Start testHidebug] @@ -37,8 +37,8 @@ function testEnableJsLeakWatcher(event?: ClickEvent) { // [Start testJsLeakWatcherEnable] let config : Array = []; jsLeakWatcher.enableLeakWatcher(true, config, (filepath: Array) => { - console.log('testJsLeakWatcher leakListFileName: ' + filepath[0]); - console.log('testJsLeakWatcher heapDumpFileName: ' + filepath[1]); + hilog.info(0x0000, 'testTag', `testJsLeakWatcher leakListFileName: ${filepath[0]}`); + hilog.info(0x0000, 'testTag', `testJsLeakWatcher heapDumpFileName: ${filepath[1]}`); }); // [End testJsLeakWatcherEnable] }