Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Huge diiference between size calculated by size-of and size shown in devTools #64

Open
mahsashadi opened this issue Feb 20, 2022 · 0 comments

Comments

@mahsashadi
Copy link

mahsashadi commented Feb 20, 2022

I print win object size in console by your size-of module, and also attach it to window, to show it in chrome devTools.

console.log('mywin size is:',  sizeof(win));  //shows 22M
window.mywin= win;                            //shows 20B

The question is that is this difference reasonable? which one is really consumed by memory?

Result:
Screenshot from 2022-02-20 14-09-09

Screenshot from 2022-02-20 14-09-01

@miktam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant