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
This commit is contained in:
parent
0089143d06
commit
32baff5906
@ -10,7 +10,7 @@ const Scripting = imports.ui.scripting;
|
|||||||
// someone should be able to get an idea of how well the shell is performing
|
// someone should be able to get an idea of how well the shell is performing
|
||||||
// on a particular system.
|
// on a particular system.
|
||||||
|
|
||||||
let METRICS = {
|
var METRICS = {
|
||||||
overviewLatencyFirst:
|
overviewLatencyFirst:
|
||||||
{ description: "Time to first frame after triggering overview, first time",
|
{ description: "Time to first frame after triggering overview, first time",
|
||||||
units: "us" },
|
units: "us" },
|
||||||
|
@ -2,7 +2,7 @@ const { Clutter, Gio, Gtk, Shell } = imports.gi;
|
|||||||
const Main = imports.ui.main;
|
const Main = imports.ui.main;
|
||||||
const Scripting = imports.ui.scripting;
|
const Scripting = imports.ui.scripting;
|
||||||
|
|
||||||
let METRICS = {
|
var METRICS = {
|
||||||
timeToDesktop:
|
timeToDesktop:
|
||||||
{ description: "Time from starting graphical.target to desktop showing",
|
{ description: "Time from starting graphical.target to desktop showing",
|
||||||
units: "us" },
|
units: "us" },
|
||||||
|
Loading…
Reference in New Issue
Block a user