mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 819229 - Rename gatherStartupInformation to gatherStartupHistograms. r=vladan.
This commit is contained in:
parent
3afb1b2790
commit
99f2e6c2fa
@ -487,7 +487,7 @@ TelemetryPing.prototype = {
|
|||||||
/**
|
/**
|
||||||
* Make a copy of interesting histograms at startup.
|
* Make a copy of interesting histograms at startup.
|
||||||
*/
|
*/
|
||||||
gatherStartupInformation: function gatherStartupInformation() {
|
gatherStartupHistograms: function gatherStartupHistograms() {
|
||||||
let info = Telemetry.registeredHistograms;
|
let info = Telemetry.registeredHistograms;
|
||||||
let snapshots = Telemetry.histogramSnapshots;
|
let snapshots = Telemetry.histogramSnapshots;
|
||||||
for (let name in info) {
|
for (let name in info) {
|
||||||
@ -496,7 +496,6 @@ TelemetryPing.prototype = {
|
|||||||
Telemetry.histogramFrom("STARTUP_" + name, name);
|
Telemetry.histogramFrom("STARTUP_" + name, name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this._slowSQLStartup = Telemetry.slowSQL;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
getCurrentSessionPayload: function getCurrentSessionPayload(reason) {
|
getCurrentSessionPayload: function getCurrentSessionPayload(reason) {
|
||||||
@ -947,8 +946,10 @@ TelemetryPing.prototype = {
|
|||||||
getPayload: function getPayload() {
|
getPayload: function getPayload() {
|
||||||
// This function returns the current Telemetry payload to the caller.
|
// This function returns the current Telemetry payload to the caller.
|
||||||
// We only gather startup info once.
|
// We only gather startup info once.
|
||||||
if (Object.keys(this._slowSQLStartup).length == 0)
|
if (Object.keys(this._slowSQLStartup).length == 0) {
|
||||||
this.gatherStartupInformation();
|
this.gatherStartupHistograms();
|
||||||
|
this._slowSQLStartup = Telemetry.slowSQL;
|
||||||
|
}
|
||||||
this.gatherMemory();
|
this.gatherMemory();
|
||||||
return this.getCurrentSessionPayload("gather-payload");
|
return this.getCurrentSessionPayload("gather-payload");
|
||||||
},
|
},
|
||||||
@ -959,7 +960,8 @@ TelemetryPing.prototype = {
|
|||||||
[this._startupIO.startupSessionRestoreReadBytes,
|
[this._startupIO.startupSessionRestoreReadBytes,
|
||||||
this._startupIO.startupSessionRestoreWriteBytes] = counters;
|
this._startupIO.startupSessionRestoreWriteBytes] = counters;
|
||||||
}
|
}
|
||||||
this.gatherStartupInformation();
|
this.gatherStartupHistograms();
|
||||||
|
this._slowSQLStartup = Telemetry.slowSQL;
|
||||||
},
|
},
|
||||||
|
|
||||||
enableLoadSaveNotifications: function enableLoadSaveNotifications() {
|
enableLoadSaveNotifications: function enableLoadSaveNotifications() {
|
||||||
|
Loading…
Reference in New Issue
Block a user