From 86ab91bd86cf89bdd718fd83d4b3675fa86bedae Mon Sep 17 00:00:00 2001 From: Brian Ignacio Date: Tue, 26 Sep 2023 21:37:47 +0800 Subject: [PATCH] fixes for heap tracing --- src/espIdf/tracing/appTracePanel.ts | 4 +- src/views/tracing/App.vue | 22 +++-- src/views/tracing/components/CallStack.vue | 17 ++-- src/views/tracing/components/Calls.vue | 33 ++++++-- src/views/tracing/components/LeakList.vue | 30 +++---- src/views/tracing/components/Plot.vue | 11 +-- .../tracing/components/QuickActionMenu.vue | 3 +- src/views/tracing/main.ts | 2 + src/views/tracing/store.ts | 83 +++++++++++-------- 9 files changed, 126 insertions(+), 79 deletions(-) diff --git a/src/espIdf/tracing/appTracePanel.ts b/src/espIdf/tracing/appTracePanel.ts index 6552ac7cc..89e81596c 100644 --- a/src/espIdf/tracing/appTracePanel.ts +++ b/src/espIdf/tracing/appTracePanel.ts @@ -139,7 +139,7 @@ export class AppTracePanel { }); break; case "resolveAddresses": - this.resolveAddresses(msg); + this.resolveAddresses({addresses: JSON.parse(msg.addresses)}); break; case "openFileAtLine": this.openFileAtLineNumber(msg.filePath, msg.lineNumber); @@ -287,7 +287,7 @@ export class AppTracePanel { private getHtmlContent(webview: vscode.Webview): string { const scriptPath = webview.asWebviewUri( vscode.Uri.file( - path.join(this._extensionPath, "dist", "views", "size-bundle.js") + path.join(this._extensionPath, "dist", "views", "tracing-bundle.js") ) ); return ` diff --git a/src/views/tracing/App.vue b/src/views/tracing/App.vue index 6ae40f73c..29ed2da91 100644 --- a/src/views/tracing/App.vue +++ b/src/views/tracing/App.vue @@ -1,7 +1,7 @@