[gnome-shell/wip/fmuellner/fix-perf-tool: 35/37] perf: Use var for METRICS
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/fix-perf-tool: 35/37] perf: Use var for METRICS
- Date: Thu, 21 Mar 2019 10:18:17 +0000 (UTC)
commit 32baff5906dcf41ce68ee726b0cf0e71d5235dd1
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Mar 5 22:54:59 2019 +0100
perf: Use var for METRICS
Each perf module exposes it to the scripting module to report metrics
after all tests have been run. The symbol's scope should allow that,
so declare it as var.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/440
js/perf/core.js | 2 +-
js/perf/hwtest.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/perf/core.js b/js/perf/core.js
index 091a86a0f..04ea3c49f 100644
--- a/js/perf/core.js
+++ b/js/perf/core.js
@@ -10,7 +10,7 @@ const Scripting = imports.ui.scripting;
// someone should be able to get an idea of how well the shell is performing
// on a particular system.
-let METRICS = {
+var METRICS = {
overviewLatencyFirst:
{ description: "Time to first frame after triggering overview, first time",
units: "us" },
diff --git a/js/perf/hwtest.js b/js/perf/hwtest.js
index d5b417da3..31a25a715 100644
--- a/js/perf/hwtest.js
+++ b/js/perf/hwtest.js
@@ -2,7 +2,7 @@ const { Clutter, Gio, Gtk, Shell } = imports.gi;
const Main = imports.ui.main;
const Scripting = imports.ui.scripting;
-let METRICS = {
+var METRICS = {
timeToDesktop:
{ description: "Time from starting graphical.target to desktop showing",
units: "us" },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]