From 8acab1dda8d80509589bc2398ffa08ee3653e0ca Mon Sep 17 00:00:00 2001 From: arlo Date: Tue, 1 Oct 2024 22:52:55 +0800 Subject: [PATCH] chore: update --- .../applet/src/components/timeline/index.vue | 7 + packages/client/src/pages/timeline.vue | 26 +++- packages/devtools-kit/src/core/app/index.ts | 1 + .../src/core/plugin/components.ts | 42 +----- .../devtools-kit/src/core/timeline/index.ts | 127 ++++++++++++++++++ .../devtools-kit/src/core/timeline/perf.ts | 97 +++++++++++++ packages/devtools-kit/src/ctx/state.ts | 2 + packages/devtools-kit/src/hook/index.ts | 18 +++ packages/devtools-kit/src/types/app.ts | 1 + packages/devtools-kit/src/types/hook.ts | 4 + 10 files changed, 283 insertions(+), 42 deletions(-) create mode 100644 packages/devtools-kit/src/core/timeline/index.ts create mode 100644 packages/devtools-kit/src/core/timeline/perf.ts diff --git a/packages/applet/src/components/timeline/index.vue b/packages/applet/src/components/timeline/index.vue index 7d9889f2f..09f30b29f 100644 --- a/packages/applet/src/components/timeline/index.vue +++ b/packages/applet/src/components/timeline/index.vue @@ -95,6 +95,13 @@ rpc.functions.on(DevToolsMessagingEvents.TIMELINE_EVENT_UPDATED, onTimelineEvent onUnmounted(() => { rpc.functions.off(DevToolsMessagingEvents.TIMELINE_EVENT_UPDATED, onTimelineEventUpdated) }) + +defineExpose({ + clear() { + eventList.value = [] + groupList.value.clear() + }, +})