mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2026-05-09 11:05:20 +00:00
Feat: Polish Async profiling widget (#437)
This commit is contained in:
@@ -35,6 +35,7 @@ interface AsyncProfilingState {
|
||||
instances: Instance[];
|
||||
analyzeTrees: AsyncProfilerStackElement[];
|
||||
loadingTree: boolean;
|
||||
loadingTasks: boolean;
|
||||
}
|
||||
|
||||
export const asyncProfilingStore = defineStore({
|
||||
@@ -46,6 +47,7 @@ export const asyncProfilingStore = defineStore({
|
||||
instances: [],
|
||||
analyzeTrees: [],
|
||||
loadingTree: false,
|
||||
loadingTasks: false,
|
||||
}),
|
||||
actions: {
|
||||
setSelectedTask(task: Recordable<AsyncProfilingTask>) {
|
||||
@@ -55,15 +57,15 @@ export const asyncProfilingStore = defineStore({
|
||||
this.analyzeTrees = tree;
|
||||
},
|
||||
async getTaskList() {
|
||||
const { duration } = useAppStoreWithOut();
|
||||
const selectorStore = useSelectorStore();
|
||||
this.loadingTasks = true;
|
||||
const res: AxiosResponse = await graphql.query("getAsyncTaskList").params({
|
||||
request: {
|
||||
startTime: duration.start.getTime(),
|
||||
endTime: duration.end.getTime(),
|
||||
serviceId: selectorStore.currentService.id,
|
||||
limit: 10000,
|
||||
},
|
||||
});
|
||||
this.loadingTasks = false;
|
||||
if (res.data.errors) {
|
||||
return res.data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user