summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilutin Kristofic <milutin@google.com>2024-04-09 19:29:05 +0200
committerPaladox none <thomasmulhall410@yahoo.com>2024-04-10 12:03:27 +0000
commit4dc83f9edbbd374322ca46f70b9c278367a8ef03 (patch)
treebd2face21be3d7dfca2bb26cd115e7747ca5624b
parent133a676ecda316f8cfe2325af7a6a8de4deb1b3c (diff)
Fix large event_details in dashboard displayed
In our logs we found out event details with over 750k characters and daily max around 100k characters. This is caused only by dashboard displayed that can accumulate large rpcList when it is refreshing without router change location. This special case was introduced in Change 350774. Release-Notes: skip Google-Bug-Id: b/330373302 Change-Id: I9052621367ce3efe4c73f321b13bce53b6ddc1e5 (cherry picked from commit 6e6f42e4e7fd59b6e248ed1f45e8d14b5bff2334)
-rw-r--r--polygerrit-ui/app/services/gr-reporting/gr-reporting_impl.ts6
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();
+ }
}
/**