We recently faced same problem.
You can use web performance API for to check current total memory allocation.window.performance
It allows web pages to access to certain functions for measuring the performance of web page. There is a non-standard extension available only for chrome to record memory information.
window.performance.memory
It will return you following information.
usedJsHeapSize: total amount of memory being used by JS objects including V8 internal objects,totalJsHeapSize: current size of the JS heap including free space not occupied by any JS objects
Also there is a js library available for recording memory stats. (https://github.com/spite/memory-stats.js)
Please checkout this as well. It might help you. - https://developer.chrome.com/devtools/docs/javascript-memory-profiling
https://stackoverflow.com/questions/36382135/how-to-find-memory-used-by-a-chrome-tab-using-javascript
No comments:
Post a Comment