feat: sort spans with startTime or spanId in a segment (#100)

This commit is contained in:
Fine0830
2022-05-26 13:04:43 +08:00
committed by GitHub
parent b34c0b0c72
commit 74cb089271
11 changed files with 68 additions and 34 deletions

View File

@@ -35,6 +35,7 @@ interface EbpfStore {
couldProfiling: boolean;
tip: string;
selectedTask: Recordable<EBPFTaskList>;
aggregateType: string;
}
export const ebpfStore = defineStore({
@@ -48,6 +49,7 @@ export const ebpfStore = defineStore({
couldProfiling: false,
tip: "",
selectedTask: {},
aggregateType: "COUNT",
}),
actions: {
setSelectedTask(task: EBPFTaskList) {
@@ -131,6 +133,7 @@ export const ebpfStore = defineStore({
timeRanges: Array<{ start: number; end: number }>;
aggregateType: string;
}) {
this.aggregateType = params.aggregateType;
if (!params.scheduleIdList.length) {
return new Promise((resolve) => resolve({}));
}