Skip to content

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

@mahsashadi

Description

@mahsashadi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions