mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-12 15:49:24 +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 { useAsyncProfilingStore } from "@/store/modules/async-profiling";
|
||||||
import type { Instance } from "@/types/selector";
|
import type { Instance } from "@/types/selector";
|
||||||
import type { Option } from "@/types/app";
|
import type { Option } from "@/types/app";
|
||||||
import { EventsMap } from "./data";
|
import { EventsMap, ProfilingEvents, JFREventType } from "./data";
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const asyncProfilingStore = useAsyncProfilingStore();
|
const asyncProfilingStore = useAsyncProfilingStore();
|
||||||
const serviceInstanceIds = ref<string[]>([]);
|
const serviceInstanceIds = ref<string[]>([]);
|
||||||
const selectedEventType = ref<string>("");
|
const selectedEventType = ref<string>("");
|
||||||
const eventTypes = computed(() =>
|
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(() =>
|
const instances = computed(() =>
|
||||||
asyncProfilingStore.instances.filter((d: Instance) =>
|
asyncProfilingStore.instances.filter((d: Instance) =>
|
||||||
@ -98,7 +109,7 @@ limitations under the License. -->
|
|||||||
}
|
}
|
||||||
|
|
||||||
.filter-events {
|
.filter-events {
|
||||||
width: 200px;
|
width: 300px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -29,7 +29,8 @@ export enum EventsMap {
|
|||||||
CTIMER = "EXECUTION_SAMPLE",
|
CTIMER = "EXECUTION_SAMPLE",
|
||||||
ITIMER = "EXECUTION_SAMPLE",
|
ITIMER = "EXECUTION_SAMPLE",
|
||||||
LOCK = "LOCK",
|
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 {
|
export enum JFREventType {
|
||||||
|
Loading…
Reference in New Issue
Block a user