track display addChild time diff

This commit is contained in:
Jamie V 2025-03-26 13:11:34 -07:00
parent 4dd559f6fa
commit 9a8934b626

View File

@ -500,12 +500,6 @@ export default {
}
},
addItem(itemType, ...options) {
const now = Date.now();
const oldAddItemTime = this.addItemTime ?? now;
this.addItemTime = now;
const timeDifference = this.addItemTime - oldAddItemTime;
console.log(`addItem for ${itemType} time difference (ms):`, timeDifference);
let item = getItemDefinition(itemType, this.openmct, this.gridSize, ...options);
item.type = itemType;
item.id = uuid();
@ -615,9 +609,15 @@ export default {
}
},
addChild(child) {
console.log('addChild', child);
if (this.isItemAlreadyTracked(child)) {
return;
}
const now = Date.now();
const oldChildTime = this.childTime ?? now;
this.childTime = now;
const timeDifference = this.childTime - oldChildTime;
console.log(`addChild for ${child.name} time difference (ms):`, timeDifference);
let type;