Bug 1150555 - about:performance should not confuse Jetpack addons. r=mossop

This commit is contained in:
David Rajchenbach-Teller 2015-04-02 23:39:30 +02:00
parent f3a0ed664a
commit 18560d3a63

View File

@ -54,9 +54,11 @@ let State = {
let newData = new Map();
let deltas = [];
for (let componentNew of snapshot.componentsData) {
let componentOld = State._componentsData.get(componentNew.name);
let {name, addonId, isSystem} = componentNew;
let key = JSON.stringify({name, addonId, isSystem});
let componentOld = State._componentsData.get(key);
deltas.push(componentNew.substract(componentOld));
newData.set(componentNew.name, componentNew);
newData.set(key, componentNew);
}
State._componentsData = newData;
let now = window.performance.now();