From 21523b8cb52be9bbd436a3e1a2ce276a3455e254 Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Wed, 18 May 2022 17:40:40 +0800 Subject: [PATCH] fix: polish the eBPF profiling widget (#90) --- src/types/ebpf.d.ts | 2 +- src/views/dashboard/related/ebpf/Content.vue | 8 +++- .../related/ebpf/components/EBPFSchedules.vue | 38 +++++++++++++++---- .../related/ebpf/components/EBPFStack.vue | 10 ++++- .../related/ebpf/components/NewTask.vue | 4 -- 5 files changed, 45 insertions(+), 17 deletions(-) diff --git a/src/types/ebpf.d.ts b/src/types/ebpf.d.ts index b40597ef..4598528e 100644 --- a/src/types/ebpf.d.ts +++ b/src/types/ebpf.d.ts @@ -52,7 +52,7 @@ export type Process = { instanceName: string; agentId: string; detectType: string; - attributes: { name: string; value: string }; + attributes: { name: string; value: string }[]; labels: string[]; }; export type StackElement = { diff --git a/src/views/dashboard/related/ebpf/Content.vue b/src/views/dashboard/related/ebpf/Content.vue index e4b0653b..024ecf04 100644 --- a/src/views/dashboard/related/ebpf/Content.vue +++ b/src/views/dashboard/related/ebpf/Content.vue @@ -16,7 +16,7 @@ limitations under the License. -->
-
+
@@ -44,7 +44,11 @@ import EBPFStack from "./components/EBPFStack.vue"; .item { width: 100%; overflow: auto; - height: calc(50% - 10px); + height: calc(100% - 200px); padding-bottom: 10px; } + +.schedules { + height: 190px; +} diff --git a/src/views/dashboard/related/ebpf/components/EBPFSchedules.vue b/src/views/dashboard/related/ebpf/components/EBPFSchedules.vue index a584e40f..2e144ad4 100644 --- a/src/views/dashboard/related/ebpf/components/EBPFSchedules.vue +++ b/src/views/dashboard/related/ebpf/components/EBPFSchedules.vue @@ -34,7 +34,7 @@ limitations under the License. --> placeholder="Please input name" class="input-with-search" size="small" - @change="searchProcesses" + @change="searchProcesses(0)" >