reduxjs / redux-devtools

DevTools for Redux with hot reloading, action replay, and customizable UI
http://youtube.com/watch?v=xsSnOQynTHs
MIT License
13.99k stars 1.16k forks source link

[Feature request] Display store size #341

Open broyda opened 7 years ago

broyda commented 7 years ago

I've been working on an application where the redux store is multi mega bytes and researching ways to reduce the store size by refactoring code etc.

Although we can determine the store size using alternate techniques, would love to see that in built in the devtools. Also, it would help if we have sizes of the individual slices of the stores listed too. One thought is the object size(s) are displayed within the State tab (listed alongside the object names).

Thanks for the wonderful tool..

zalmoxisus commented 7 years ago

Thanks for the suggestion. It would be rather useful indeed to have implemented as a separate monitor. Something which would work like source-map-explorer or even more interactive like webpack-bundle-analyzer or webcomponent-bundle-analyzer. For measuring the size we could use object-sizeof or this gist.

Let me know if you'd like to create a monitor, I'd help with redux devtools part.

ChuckJonas commented 6 years ago

would love to see this as well

venku122 commented 5 years ago

I'm very interested in workin on a monitor for this.

I wrote a redux middleware to calculate the total size of the store and size delta between actions. Having this in redux-devtools by default would be great.

gianpaj commented 4 years ago

It would be great if there's a breakdown of the size of the state JSON object. Maybe something like this:

https://www.debugbear.com/json-size-analyzer

Screenshot 2020-02-14 at 11 40 47

corbinschwartz commented 2 years ago

+1 to this feature request!

yonatann commented 2 years ago

+1 from me as well

markerikson commented 2 years ago

+1's aren't really helpful at this point :)

That said, perhaps a good way to implement this might be a separate "monitor" panel?

jainprashul commented 1 year ago

+1 , if so , implementation will be helpful

iftikharrasha commented 6 months ago

Just wondering if there is any solution for this yet?