mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-10-22 20:35:24 +00:00
memory info优化掉
This commit is contained in:
@@ -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,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user