diff --git a/src/graphql/fragments/async-profile.ts b/src/graphql/fragments/async-profile.ts
index c85a0fc2..7021f193 100644
--- a/src/graphql/fragments/async-profile.ts
+++ b/src/graphql/fragments/async-profile.ts
@@ -70,8 +70,8 @@ export const GetAsyncProfileAnalyze = {
elements {
id
parentId
- codeSignature
- total
+ symbol: codeSignature
+ dumpCount: total
self
}
}
diff --git a/src/views/dashboard/related/async-profiling/Content.vue b/src/views/dashboard/related/async-profiling/Content.vue
index 7ceffd9a..6069628e 100644
--- a/src/views/dashboard/related/async-profiling/Content.vue
+++ b/src/views/dashboard/related/async-profiling/Content.vue
@@ -20,7 +20,7 @@ limitations under the License. -->
-
+
@@ -32,7 +32,8 @@ limitations under the License. -->
import { useSelectorStore } from "@/store/modules/selectors";
import TaskList from "./components/TaskList.vue";
import Filter from "./components/Filter.vue";
- import Stack from "./components/Stack.vue";
+ import EBPFStack from "@/views/dashboard/related/ebpf/components/EBPFStack.vue";
+ import { ComponentType } from "@/views/dashboard/related/ebpf/components/data";
const asyncProfilingStore = useAsyncProfilingStore();
const selectorStore = useSelectorStore();
diff --git a/src/views/dashboard/related/async-profiling/components/Stack.vue b/src/views/dashboard/related/async-profiling/components/Stack.vue
deleted file mode 100644
index 2eb21db2..00000000
--- a/src/views/dashboard/related/async-profiling/components/Stack.vue
+++ /dev/null
@@ -1,193 +0,0 @@
-
-
-
-
-
-
diff --git a/src/views/dashboard/related/ebpf/components/EBPFStack.vue b/src/views/dashboard/related/ebpf/components/EBPFStack.vue
index ca1847c2..aa95f80a 100644
--- a/src/views/dashboard/related/ebpf/components/EBPFStack.vue
+++ b/src/views/dashboard/related/ebpf/components/EBPFStack.vue
@@ -23,13 +23,20 @@ limitations under the License. -->
import d3tip from "d3-tip";
import { flamegraph } from "d3-flame-graph";
import { useEbpfStore } from "@/store/modules/ebpf";
+ 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";
- /*global Nullable*/
- const ebpfStore = useEbpfStore();
+ /*global Nullable, defineProps*/
+ const props = defineProps({
+ type: {
+ type: String,
+ default: "",
+ },
+ });
+ 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";