Skip to content

window.performance.memory

window.performance.memory is a property of the window.performance interface that provides access to memory-related information for the current web page^[600-developer__tools__front-end-performance-monitoring.md]. It is part of the broader Performance API, which also includes interfaces like window.performance.navigation and window.performance.timing^[600-developer__tools__front-end-performance-monitoring.md].

Context and Usage

This attribute allows developers to programmatically inspect the browser's memory usage. It is particularly useful in the context of front-end performance monitoring, where it can be used alongside other timing metrics to diagnose memory leaks or optimize resource consumption^[600-developer__tools__front-end-performance-monitoring.md].

Data retrieved from window.performance interfaces is often utilized in logging workflows, such as sending data directly to Elasticsearch in JSON format for statistical analysis via [[Kibana]]^[600-developer__tools__front-end-performance-monitoring.md].

Sources