mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1150548 - MISBEHAVING_ADDONS_CPOW_TIME_MS is in milliseconds, but is filled with microseconds data. r=yoric
This commit is contained in:
parent
3c607b7791
commit
59267164cf
@ -158,7 +158,7 @@ let AddonWatcher = {
|
||||
}
|
||||
if (diff.totalCPOWTime > 0) {
|
||||
Telemetry.getKeyedHistogramById("MISBEHAVING_ADDONS_CPOW_TIME_MS").
|
||||
add(addonId, diff.totalCPOWTime);
|
||||
add(addonId, diff.totalCPOWTime / 1000);
|
||||
}
|
||||
|
||||
// Report mibehaviors to the user.
|
||||
|
@ -82,7 +82,7 @@ let burn_rubber = Task.async(function*({histogramName, topic, expectedReason, pr
|
||||
Assert.equal(reason, expectedReason, "Reason is valid");
|
||||
let snap2 = histogram.snapshot(ADDON_ID);
|
||||
|
||||
Assert.ok(snap2.sum > expectedMinSum, `Histogram ${histogramName} recorded a gravity of ${snap2.sum}, expecting at least ${expectedMinSum}.`);
|
||||
Assert.ok(snap2.sum >= expectedMinSum, `Histogram ${histogramName} recorded a gravity of ${snap2.sum}, expecting at least ${expectedMinSum}.`);
|
||||
} finally {
|
||||
AddonWatcher.uninit();
|
||||
for (let key of Object.keys(prefs)) {
|
||||
@ -121,6 +121,6 @@ add_task(function* test_burn_CPOW() {
|
||||
histogramName: "MISBEHAVING_ADDONS_CPOW_TIME_MS",
|
||||
topic: "test-addonwatcher-burn-some-cpow",
|
||||
expectedReason: "totalCPOWTime",
|
||||
expectedMinSum: 1000,
|
||||
expectedMinSum: 400,
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user