From 6ffd2a467394498841f95a74f86c2acae632a1fd Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Sat, 21 May 2022 17:22:46 +0800 Subject: [PATCH] polish ebpf --- src/store/modules/ebpf.ts | 6 ++++-- .../related/ebpf/components/EBPFSchedules.vue | 21 +++++++++++++------ .../related/ebpf/components/TaskList.vue | 10 ++++++++- .../dashboard/related/ebpf/components/data.ts | 2 +- 4 files changed, 29 insertions(+), 10 deletions(-) diff --git a/src/store/modules/ebpf.ts b/src/store/modules/ebpf.ts index 22995aed..709614b5 100644 --- a/src/store/modules/ebpf.ts +++ b/src/store/modules/ebpf.ts @@ -35,6 +35,7 @@ interface EbpfStore { labels: Option[]; couldProfiling: boolean; tip: string; + selectedTask: Recordable; } export const ebpfStore = defineStore({ @@ -47,10 +48,11 @@ export const ebpfStore = defineStore({ labels: [{ value: "", label: "" }], couldProfiling: false, tip: "", + selectedTask: {}, }), actions: { - setCurrentSpan(span: Span) { - this.currentSpan = span; + setSelectedTask(task: EBPFTaskList) { + this.selectedTask = task; }, setCurrentSchedule(s: Trace) { this.currentSchedule = s; diff --git a/src/views/dashboard/related/ebpf/components/EBPFSchedules.vue b/src/views/dashboard/related/ebpf/components/EBPFSchedules.vue index 589d4c45..fb25c1b1 100644 --- a/src/views/dashboard/related/ebpf/components/EBPFSchedules.vue +++ b/src/views/dashboard/related/ebpf/components/EBPFSchedules.vue @@ -27,6 +27,7 @@ limitations under the License. -->
@change="changeAggregateType" class="selector mr-10" /> - +
{{ duration[0] }} ~ {{ duration[1] }} - +