memory info优化掉

This commit is contained in:
xu_yanfeng
2025-01-23 12:27:27 +08:00
parent 77fd02da9d
commit 81ee5063f2
4 changed files with 4 additions and 46 deletions

View File

@@ -763,24 +763,4 @@ export class Inspector extends InjectEvent {
}
return false;
}
onMemoryInfo() {
const memory = console["memory"];
this.sendMsgToContent(Msg.MemoryInfo, {
performance: {
// @ts-ignore
jsHeapSizeLimit: window.performance.memory.jsHeapSizeLimit,
// @ts-ignore
totalJSHeapSize: window.performance.memory.totalJSHeapSize,
// @ts-ignore
usedJSHeapSize: window.performance.memory.usedJSHeapSize,
},
console: {
jsHeapSizeLimit: memory.jsHeapSizeLimit,
totalJSHeapSize: memory.totalJSHeapSize,
usedJSHeapSize: memory.usedJSHeapSize,
},
});
}
}