mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-12 15:52:57 +00:00
fix
This commit is contained in:
parent
a828e1b016
commit
b6d8a2c160
@ -14,7 +14,6 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License. -->
|
limitations under the License. -->
|
||||||
<template>
|
<template>
|
||||||
<div class="profile-wrapper flex-v">
|
<div class="profile-wrapper flex-v">
|
||||||
<div class="title">Async Profiling</div>
|
|
||||||
<el-popover placement="bottom" trigger="click" :width="100" v-if="dashboardStore.editMode">
|
<el-popover placement="bottom" trigger="click" :width="100" v-if="dashboardStore.editMode">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<span class="operation cp">
|
<span class="operation cp">
|
||||||
@ -84,11 +83,4 @@ limitations under the License. -->
|
|||||||
background-color: $popper-hover-bg-color;
|
background-color: $popper-hover-bg-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
|
||||||
font-weight: bold;
|
|
||||||
line-height: 40px;
|
|
||||||
padding: 0 10px;
|
|
||||||
border-bottom: 1px solid $border-color;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -14,20 +14,8 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License. -->
|
limitations under the License. -->
|
||||||
<template>
|
<template>
|
||||||
<div class="flex-h header">
|
<div class="flex-h header">
|
||||||
<el-input
|
<div class="title">Async Profiling</div>
|
||||||
v-model="keywords"
|
<el-button class="new-btn ml-10" size="small" @click="createTask">
|
||||||
style="width: 240px"
|
|
||||||
placeholder="Please input create time to search"
|
|
||||||
@change="searchTasks()"
|
|
||||||
size="small"
|
|
||||||
>
|
|
||||||
<template #append>
|
|
||||||
<el-button size="small">
|
|
||||||
<Icon size="sm" iconName="search" />
|
|
||||||
</el-button>
|
|
||||||
</template>
|
|
||||||
</el-input>
|
|
||||||
<el-button class="search-btn ml-10" size="small" @click="createTask">
|
|
||||||
{{ t("newTask") }}
|
{{ t("newTask") }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
@ -55,7 +43,6 @@ limitations under the License. -->
|
|||||||
const selectorStore = useSelectorStore();
|
const selectorStore = useSelectorStore();
|
||||||
const dashboardStore = useDashboardStore();
|
const dashboardStore = useDashboardStore();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const keywords = ref<string>("");
|
|
||||||
const newTask = ref<boolean>(false);
|
const newTask = ref<boolean>(false);
|
||||||
|
|
||||||
if (props.needQuery) {
|
if (props.needQuery) {
|
||||||
@ -100,4 +87,13 @@ limitations under the License. -->
|
|||||||
.name {
|
.name {
|
||||||
width: 270px;
|
width: 270px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.new-btn {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: 24px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -43,6 +43,7 @@ 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";
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const asyncProfilingStore = useAsyncProfilingStore();
|
const asyncProfilingStore = useAsyncProfilingStore();
|
||||||
@ -69,7 +70,7 @@ limitations under the License. -->
|
|||||||
const res = await asyncProfilingStore.getAsyncProfilingAnalyze({
|
const res = await asyncProfilingStore.getAsyncProfilingAnalyze({
|
||||||
instanceIds: serviceInstanceIds.value,
|
instanceIds: serviceInstanceIds.value,
|
||||||
taskId: asyncProfilingStore.selectedTask.id,
|
taskId: asyncProfilingStore.selectedTask.id,
|
||||||
eventType: selectedEventType.value,
|
eventType: (EventsMap as any)[selectedEventType.value],
|
||||||
});
|
});
|
||||||
if (res.data && res.data.errors) {
|
if (res.data && res.data.errors) {
|
||||||
ElMessage.error(res.data.errors);
|
ElMessage.error(res.data.errors);
|
||||||
|
@ -25,3 +25,12 @@ export const ProfilingEvents = [
|
|||||||
{ value: "CPU", label: "CPU" },
|
{ value: "CPU", label: "CPU" },
|
||||||
{ value: "ALLOC", label: "ALLOC" },
|
{ value: "ALLOC", label: "ALLOC" },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
export enum EventsMap {
|
||||||
|
CPU = "EXECUTION_SAMPLE",
|
||||||
|
WALL = "EXECUTION_SAMPLE",
|
||||||
|
CTIMER = "EXECUTION_SAMPLE",
|
||||||
|
ITIMER = "EXECUTION_SAMPLE",
|
||||||
|
LOCK = "JAVA_MONITOR_ENTER",
|
||||||
|
ALLOC = "OBJECT_ALLOCATION_OUTSIDE_TLAB",
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user