diff --git a/src/views/dashboard/related/async-profiling/Content.vue b/src/views/dashboard/related/async-profiling/Content.vue index 9b7ddfd8..a93f5edc 100644 --- a/src/views/dashboard/related/async-profiling/Content.vue +++ b/src/views/dashboard/related/async-profiling/Content.vue @@ -15,17 +15,24 @@ limitations under the License. --> diff --git a/src/views/dashboard/related/continuous-profiling/data.ts b/src/views/dashboard/related/continuous-profiling/data.ts index fb9d0c5c..97dc7c32 100644 --- a/src/views/dashboard/related/continuous-profiling/data.ts +++ b/src/views/dashboard/related/continuous-profiling/data.ts @@ -29,8 +29,6 @@ export const TargetTypes = [ { label: "NETWORK", value: "NETWORK" }, ]; -export const ComponentType = "CONTINOUS_PROFILING"; - export const HeaderLabels = [ { value: "triggeredCount", label: "Triggered Count", width: 150 }, { value: "lastTriggerTime", label: "Last Trigger Time", width: 170 }, diff --git a/src/views/dashboard/related/ebpf/components/EBPFStack.vue b/src/views/dashboard/related/ebpf/components/EBPFStack.vue index 190d732d..aa95f80a 100644 --- a/src/views/dashboard/related/ebpf/components/EBPFStack.vue +++ b/src/views/dashboard/related/ebpf/components/EBPFStack.vue @@ -23,10 +23,9 @@ limitations under the License. --> import d3tip from "d3-tip"; import { flamegraph } from "d3-flame-graph"; import { useEbpfStore } from "@/store/modules/ebpf"; - import { useContinousProfilingStore } from "@/store/modules/continous-profiling"; - import { ComponentType } from "@/views/dashboard/related/continuous-profiling/data"; + import { useAsyncProfilingStore } from "@/store/modules/async-profiling"; import type { StackElement } from "@/types/ebpf"; - import { AggregateTypes } from "./data"; + import { AggregateTypes, ComponentType } from "./data"; import "d3-flame-graph/dist/d3-flamegraph.css"; import { treeForeach } from "@/utils/flameGraph"; @@ -37,7 +36,7 @@ limitations under the License. --> default: "", }, }); - const ebpfStore = props.type === ComponentType ? useContinousProfilingStore() : useEbpfStore(); + const ebpfStore = props.type === ComponentType ? useAsyncProfilingStore() : useEbpfStore(); const stackTree = ref>(null); const selectStack = ref>(null); const graph = ref>(null); diff --git a/src/views/dashboard/related/ebpf/components/data.ts b/src/views/dashboard/related/ebpf/components/data.ts index 1ebc5f4c..d41c8208 100644 --- a/src/views/dashboard/related/ebpf/components/data.ts +++ b/src/views/dashboard/related/ebpf/components/data.ts @@ -57,3 +57,5 @@ export const TableHeader = [ { property: "name", label: "Name" }, { property: "instanceName", label: "Instance Name" }, ]; + +export const ComponentType = "ASYNC_PROFILING";