From e06465fc574adca107c20f69d12836b8a03d6521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Tue, 15 Feb 2022 17:45:03 +0100 Subject: [PATCH] Remove superfluous query from flamegraph code --- .../profiling/server/routes/flamegraph.ts | 4 +--- .../server/routes/search_flamechart.ts | 24 ------------------- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/src/plugins/profiling/server/routes/flamegraph.ts b/src/plugins/profiling/server/routes/flamegraph.ts index d73eff88d29d9..3109ed82d7126 100644 --- a/src/plugins/profiling/server/routes/flamegraph.ts +++ b/src/plugins/profiling/server/routes/flamegraph.ts @@ -59,14 +59,12 @@ function getLabel(frame: any, executable: any, type: number) { export class FlameGraph { events: any; - totalEvents: any; stacktraces: any; stackframes: any; executables: any; - constructor(events: any, totalEvents: any, stackTraces: any, stackFrames: any, executables: any) { + constructor(events: any, stackTraces: any, stackFrames: any, executables: any) { this.events = events; - this.totalEvents = totalEvents; this.stacktraces = stackTraces; this.stackframes = stackFrames; this.executables = executables; diff --git a/src/plugins/profiling/server/routes/search_flamechart.ts b/src/plugins/profiling/server/routes/search_flamechart.ts index eb5f73495d1a6..0115ba3144794 100644 --- a/src/plugins/profiling/server/routes/search_flamechart.ts +++ b/src/plugins/profiling/server/routes/search_flamechart.ts @@ -124,29 +124,6 @@ export function registerFlameChartSearchRoute(router: IRouter { tracesDocIDs.push(stackTraceItem.key); @@ -189,7 +166,6 @@ export function registerFlameChartSearchRoute(router: IRouter