How to know how much memory redux store is taking?

Viewed 35

I am checking the performance of my angular project and I was checking the memory usage for this using memory of developer tools. As I am using Redux store it's showing memory utilized by angular project + redux store. How can I know how much memory redux store is taking?

1 Answers

Since your Redux store is just a single variable, you can just

console.log(JSON.stringify(store.getState()).length)

to get a rough estimation in bytes.

Related