diff options
-rw-r--r-- | polygerrit-ui/app/services/gr-reporting/gr-reporting_impl.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/polygerrit-ui/app/services/gr-reporting/gr-reporting_impl.ts b/polygerrit-ui/app/services/gr-reporting/gr-reporting_impl.ts index 84b94811d5..b6bb560c51 100644 --- a/polygerrit-ui/app/services/gr-reporting/gr-reporting_impl.ts +++ b/polygerrit-ui/app/services/gr-reporting/gr-reporting_impl.ts @@ -758,6 +758,12 @@ export class GrReporting implements ReportingService, Finalizable { time(name: Timing) { this._baselines[name] = now(); window.performance.mark(`${name}-start`); + // When time(Timing.DASHBOARD_DISPLAYED) is called gr-dashboard-view + // we need to clean-up slowRpcList, otherwise it can accumulate to big size + if (name === Timing.DASHBOARD_DISPLAYED) { + this.slowRpcList = []; + this.hiddenDurationTimer.reset(); + } } /** |