diff --git a/src/graphql/fragments/ebpf.ts b/src/graphql/fragments/ebpf.ts index 7479b623..920065d4 100644 --- a/src/graphql/fragments/ebpf.ts +++ b/src/graphql/fragments/ebpf.ts @@ -75,9 +75,9 @@ export const queryEBPFSchedules = { export const analysisEBPFResult = { variable: - "$scheduleIdList: [ID!]!, $timeRanges: [EBPFProfilingAnalyzeTimeRange!]!", + "$scheduleIdList: [ID!]!, $timeRanges: [EBPFProfilingAnalyzeTimeRange!]!, $aggregateType: EBPFProfilingAnalyzeAggregateType", query: ` - analysisEBPFResult: analysisEBPFProfilingResult(scheduleIdList: $scheduleIdList, timeRanges: $timeRanges) { + analysisEBPFResult: analysisEBPFProfilingResult(scheduleIdList: $scheduleIdList, timeRanges: $timeRanges, aggregateType: $aggregateType) { tip trees { elements { diff --git a/src/store/modules/ebpf.ts b/src/store/modules/ebpf.ts index 2e8cf124..22995aed 100644 --- a/src/store/modules/ebpf.ts +++ b/src/store/modules/ebpf.ts @@ -55,6 +55,9 @@ export const ebpfStore = defineStore({ setCurrentSchedule(s: Trace) { this.currentSchedule = s; }, + setAnalyzeTrees(tree: AnalyzationTrees[]) { + this.analyzeTrees = tree; + }, async getCreateTaskData(serviceId: string) { const res: AxiosResponse = await graphql .query("getCreateTaskData") @@ -125,6 +128,7 @@ export const ebpfStore = defineStore({ async getEBPFAnalyze(params: { scheduleIdList: string[]; timeRanges: Array<{ start: number; end: number }>; + aggregateType: string; }) { if (!params.scheduleIdList.length) { return new Promise((resolve) => resolve({})); diff --git a/src/views/dashboard/related/ebpf/Content.vue b/src/views/dashboard/related/ebpf/Content.vue index 91abfd26..019a20c4 100644 --- a/src/views/dashboard/related/ebpf/Content.vue +++ b/src/views/dashboard/related/ebpf/Content.vue @@ -46,11 +46,13 @@ import EBPFStack from "./components/EBPFStack.vue"; .item { width: 100%; overflow: auto; - height: calc(100% - 70px); + height: calc(100% - 100px); padding-bottom: 10px; } .schedules { - height: 60px; + height: 90px; + border-bottom: 1px solid #ccc; + padding-right: 10px; } diff --git a/src/views/dashboard/related/ebpf/components/EBPFSchedules.vue b/src/views/dashboard/related/ebpf/components/EBPFSchedules.vue index 3caaff0b..589d4c45 100644 --- a/src/views/dashboard/related/ebpf/components/EBPFSchedules.vue +++ b/src/views/dashboard/related/ebpf/components/EBPFSchedules.vue @@ -13,74 +13,86 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->