mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-12 15:52:57 +00:00
update events
This commit is contained in:
parent
a45acc6c50
commit
5a4015dbba
@ -43,14 +43,25 @@ limitations under the License. -->
|
||||
import { useAsyncProfilingStore } from "@/store/modules/async-profiling";
|
||||
import type { Instance } from "@/types/selector";
|
||||
import type { Option } from "@/types/app";
|
||||
import { EventsMap } from "./data";
|
||||
import { EventsMap, ProfilingEvents, JFREventType } from "./data";
|
||||
|
||||
const { t } = useI18n();
|
||||
const asyncProfilingStore = useAsyncProfilingStore();
|
||||
const serviceInstanceIds = ref<string[]>([]);
|
||||
const selectedEventType = ref<string>("");
|
||||
const eventTypes = computed(() =>
|
||||
(asyncProfilingStore.selectedTask.events ?? []).map((d: string) => ({ label: d, value: d })),
|
||||
(asyncProfilingStore.selectedTask.events ?? [])
|
||||
.map((d: string) => {
|
||||
if (d === ProfilingEvents[1]) {
|
||||
return [
|
||||
{ label: JFREventType.OBJECT_ALLOCATION_IN_NEW_TLAB, value: JFREventType.OBJECT_ALLOCATION_IN_NEW_TLAB },
|
||||
{ label: JFREventType.OBJECT_ALLOCATION_OUTSIDE_TLAB, value: JFREventType.OBJECT_ALLOCATION_OUTSIDE_TLAB },
|
||||
];
|
||||
}
|
||||
|
||||
return { label: d, value: d };
|
||||
})
|
||||
.flat(),
|
||||
);
|
||||
const instances = computed(() =>
|
||||
asyncProfilingStore.instances.filter((d: Instance) =>
|
||||
@ -98,7 +109,7 @@ limitations under the License. -->
|
||||
}
|
||||
|
||||
.filter-events {
|
||||
width: 200px;
|
||||
width: 300px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
</style>
|
||||
|
@ -29,7 +29,8 @@ export enum EventsMap {
|
||||
CTIMER = "EXECUTION_SAMPLE",
|
||||
ITIMER = "EXECUTION_SAMPLE",
|
||||
LOCK = "LOCK",
|
||||
ALLOC = "OBJECT_ALLOCATION_OUTSIDE_TLAB",
|
||||
OBJECT_ALLOCATION_IN_NEW_TLAB = "OBJECT_ALLOCATION_IN_NEW_TLAB",
|
||||
OBJECT_ALLOCATION_OUTSIDE_TLAB = "OBJECT_ALLOCATION_OUTSIDE_TLAB",
|
||||
}
|
||||
|
||||
export enum JFREventType {
|
||||
|
Loading…
Reference in New Issue
Block a user