Skip to content

Instantly share code, notes, and snippets.

@compojoom
Created June 13, 2017 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save compojoom/61eb69f1619717d69b3645ceeeeef1b0 to your computer and use it in GitHub Desktop.
Save compojoom/61eb69f1619717d69b3645ceeeeef1b0 to your computer and use it in GitHub Desktop.
Memory measurement with addons on
Main Process
Explicit Allocations
440.23 MB (100.0%) -- explicit
├──257.25 MB (58.44%) -- js-non-window
│ ├──231.94 MB (52.69%) -- zones
│ │ ├──213.55 MB (48.51%) -- zone(0x116a2e000)
│ │ │ ├──128.36 MB (29.16%) -- strings
│ │ │ │ ├───84.96 MB (19.30%) -- string(<non-notable strings>)
│ │ │ │ │ ├──44.83 MB (10.18%) -- malloc-heap
│ │ │ │ │ │ ├──44.32 MB (10.07%) ── latin1
│ │ │ │ │ │ └───0.50 MB (00.11%) ── two-byte
│ │ │ │ │ └──40.13 MB (09.12%) -- gc-heap
│ │ │ │ │ ├──39.94 MB (09.07%) ── latin1
│ │ │ │ │ └───0.19 MB (00.04%) ── two-byte
│ │ │ │ └───43.40 MB (09.86%) ++ (876 tiny)
│ │ │ ├───32.49 MB (07.38%) ++ (323 tiny)
│ │ │ ├───27.63 MB (06.28%) -- shapes
│ │ │ │ ├──19.97 MB (04.54%) -- gc-heap
│ │ │ │ │ ├──15.05 MB (03.42%) ── dict
│ │ │ │ │ ├───4.79 MB (01.09%) ── tree
│ │ │ │ │ └───0.14 MB (00.03%) ── base
│ │ │ │ └───7.66 MB (01.74%) -- malloc-heap
│ │ │ │ ├──5.26 MB (01.20%) ── dict-tables
│ │ │ │ └──2.39 MB (00.54%) ++ (2 tiny)
│ │ │ ├───14.76 MB (03.35%) ── unused-gc-things
│ │ │ └───10.31 MB (02.34%) -- compartment([System Principal], resource://gre/modules/ExtensionStorage.jsm)
│ │ │ ├──10.29 MB (02.34%) -- classes
│ │ │ │ ├──10.27 MB (02.33%) -- class(Array)/objects
│ │ │ │ │ ├──10.27 MB (02.33%) -- malloc-heap
│ │ │ │ │ │ ├──10.27 MB (02.33%) ── elements/normal
│ │ │ │ │ │ └───0.00 MB (00.00%) ── slots
│ │ │ │ │ └───0.00 MB (00.00%) ── gc-heap
│ │ │ │ └───0.02 MB (00.00%) ++ class(<non-notable classes>)/objects
│ │ │ └───0.02 MB (00.00%) ++ sundries
│ │ ├───17.02 MB (03.87%) -- zone(0x116a1d000)
│ │ │ ├──16.29 MB (03.70%) -- strings
│ │ │ │ ├──13.73 MB (03.12%) -- string(<non-notable strings>)
│ │ │ │ │ ├───7.85 MB (01.78%) -- gc-heap
│ │ │ │ │ │ ├──7.83 MB (01.78%) ── latin1
│ │ │ │ │ │ └──0.01 MB (00.00%) ── two-byte
│ │ │ │ │ └───5.88 MB (01.34%) -- malloc-heap
│ │ │ │ │ ├──5.77 MB (01.31%) ── latin1
│ │ │ │ │ └──0.11 MB (00.03%) ── two-byte
│ │ │ │ └───2.56 MB (00.58%) ++ (42 tiny)
│ │ │ └───0.73 MB (00.17%) ++ (5 tiny)
│ │ └────1.37 MB (00.31%) ++ (4 tiny)
│ ├───20.83 MB (04.73%) -- runtime
│ │ ├───8.10 MB (01.84%) ── atoms-table
│ │ ├───7.88 MB (01.79%) ── script-data
│ │ └───4.84 MB (01.10%) ++ (12 tiny)
│ └────4.48 MB (01.02%) ++ gc-heap
├───48.39 MB (10.99%) ── heap-unclassified
├───45.19 MB (10.27%) -- add-ons
│ ├──44.02 MB (010.00%) -- {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}
│ │ ├──43.61 MB (09.91%) -- js-non-window/zones/zone(0x116a2e000)
│ │ │ ├──43.11 MB (09.79%) -- compartment([System Principal], jar:file:///Users/xxxx/Library/Application%20Support/Firefox/Profiles/r4ateyk5.dev-edition-default-1496345552601/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/bootstrap.js (from: resource://gre/modules/addons/XPIProvider.jsm:4814))
│ │ │ │ ├──42.83 MB (09.73%) -- classes
│ │ │ │ │ ├──29.46 MB (06.69%) -- class(Object)/objects
│ │ │ │ │ │ ├──17.94 MB (04.08%) -- malloc-heap
│ │ │ │ │ │ │ ├──13.16 MB (02.99%) ── elements/normal
│ │ │ │ │ │ │ └───4.79 MB (01.09%) ── slots
│ │ │ │ │ │ └──11.52 MB (02.62%) ── gc-heap
│ │ │ │ │ ├──13.13 MB (02.98%) -- class(Array)/objects
│ │ │ │ │ │ ├───9.44 MB (02.14%) ── gc-heap
│ │ │ │ │ │ └───3.69 MB (00.84%) ++ malloc-heap
│ │ │ │ │ └───0.24 MB (00.06%) ++ (3 tiny)
│ │ │ │ └───0.28 MB (00.06%) ++ (5 tiny)
│ │ │ └───0.50 MB (00.11%) ++ (15 tiny)
│ │ └───0.42 MB (00.09%) ++ (2 tiny)
│ └───1.17 MB (00.27%) ++ (6 tiny)
├───19.95 MB (04.53%) -- storage
│ ├──15.69 MB (03.56%) -- sqlite
│ │ ├───9.07 MB (02.06%) -- places.sqlite
│ │ │ ├──8.73 MB (01.98%) ── cache-used [4]
│ │ │ └──0.34 MB (00.08%) ++ (2 tiny)
│ │ └───6.62 MB (01.50%) ++ (5 tiny)
│ └───4.26 MB (00.97%) ++ prefix-set
├───15.84 MB (03.60%) -- window-objects
│ ├───8.16 MB (01.85%) -- top(chrome://browser/content/browser.xul, id=3)
│ │ ├──6.39 MB (01.45%) -- active
│ │ │ ├──6.20 MB (01.41%) ++ window(chrome://browser/content/browser.xul)
│ │ │ └──0.19 MB (00.04%) ++ window(about:blank)
│ │ └──1.78 MB (00.40%) ++ js-zone(0x126434000)
│ └───7.67 MB (01.74%) ++ (5 tiny)
├───13.80 MB (03.13%) -- heap-overhead
│ ├───8.68 MB (01.97%) ── bin-unused
│ ├───4.69 MB (01.06%) ── bookkeeping
│ └───0.43 MB (00.10%) ── page-cache
├───11.59 MB (02.63%) ++ (17 tiny)
├───10.05 MB (02.28%) -- layout
│ ├───9.54 MB (02.17%) ── rule-processor-cache
│ └───0.50 MB (00.11%) ++ (2 tiny)
├────8.80 MB (02.00%) -- gfx
│ ├──8.66 MB (01.97%) ── heap-textures
│ └──0.14 MB (00.03%) ++ (4 tiny)
├────4.83 MB (01.10%) -- startup-cache
│ ├──4.83 MB (01.10%) ── data
│ └──0.00 MB (00.00%) ── mapping
└────4.55 MB (01.03%) ++ workers/workers(chrome)
Other Measurements
25.61 MB (100.0%) -- decommitted
├──24.64 MB (96.23%) ── js-non-window/gc-heap/decommitted-arenas
└───0.96 MB (03.77%) -- workers/workers(chrome)
├──0.50 MB (01.94%) ── worker(resource:///modules/sessionstore/SessionWorker.js, 0x12b2cc800)/gc-heap/decommitted-arenas
└──0.47 MB (01.83%) ── worker(resource://gre/modules/osfile/osfile_async_worker.js, 0x129d2c000)/gc-heap/decommitted-arenas
1,704 (100.0%) -- event-counts
├──1,691 (99.24%) -- window-objects
│ ├──1,369 (80.34%) -- top(chrome://browser/content/browser.xul, id=3)/active
│ │ ├──1,367 (80.22%) -- window(chrome://browser/content/browser.xul)/dom
│ │ │ ├──1,351 (79.28%) ── event-listeners
│ │ │ └─────16 (00.94%) ── event-targets
│ │ └──────2 (00.12%) ── window(about:blank)/dom/event-targets [2]
│ ├────278 (16.31%) -- top(chrome://browser/content/hiddenWindow.xul, id=1)/active
│ │ ├──247 (14.50%) -- window(chrome://browser/content/hiddenWindow.xul)/dom
│ │ │ ├──246 (14.44%) ── event-listeners
│ │ │ └────1 (00.06%) ── event-targets
│ │ └───31 (01.82%) ++ (2 tiny)
│ ├─────26 (01.53%) ++ (3 tiny)
│ └─────18 (01.06%) ++ top(data:application/vnd.mozilla.xul+xml;charset=utf-8,%3C?xml%20version=%221.0%22?%3E%0A%20%20%3Cwindow%20id=%22documentElement%22/%3E, id=5)/active/window(data:application/vnd.mozilla.xul+xml;charset=utf-8,%3C?xml%20version=%221.0%22?%3E%0A%20%20%3Cwindow%20id=%22documentElement%22/%3E)/dom
└─────13 (00.76%) ++ add-ons
298.56 MB (100.0%) -- heap-committed
├──284.76 MB (95.38%) ── allocated
└───13.80 MB (04.62%) ── overhead
2.34 MB (100.0%) -- images
├──2.23 MB (95.25%) -- chrome
│ ├──1.33 MB (56.62%) -- vector/used
│ │ ├──1.30 MB (55.61%) ── source
│ │ └──0.02 MB (01.01%) ── decoded-heap
│ └──0.90 MB (38.63%) -- raster
│ ├──0.89 MB (38.13%) -- used
│ │ ├──0.60 MB (25.53%) ── decoded-nonheap
│ │ ├──0.17 MB (07.10%) ── source
│ │ └──0.13 MB (05.49%) ── decoded-heap
│ └──0.01 MB (00.50%) ++ unused
└──0.11 MB (04.75%) -- content/raster
├──0.10 MB (04.28%) -- used
│ ├──0.06 MB (02.69%) ── decoded-heap
│ └──0.04 MB (01.59%) ── source
└──0.01 MB (00.47%) ++ unused
312.71 MB (100.0%) -- js-main-runtime
├──203.38 MB (65.04%) -- zones
│ ├──144.80 MB (46.30%) -- strings
│ │ ├───96.36 MB (30.82%) -- malloc-heap
│ │ │ ├──92.15 MB (29.47%) ── latin1
│ │ │ └───4.22 MB (01.35%) ── two-byte
│ │ └───48.43 MB (15.49%) -- gc-heap
│ │ ├──48.20 MB (15.41%) ── latin1
│ │ └───0.23 MB (00.07%) ── two-byte
│ ├───30.26 MB (09.68%) -- shapes
│ │ ├──21.92 MB (07.01%) -- gc-heap
│ │ │ ├──15.47 MB (04.95%) ── dict
│ │ │ ├───6.21 MB (01.99%) ── tree
│ │ │ └───0.23 MB (00.07%) ── base
│ │ └───8.34 MB (02.67%) -- malloc-heap
│ │ ├──5.42 MB (01.73%) ── dict-tables
│ │ └──2.93 MB (00.94%) ++ (2 tiny)
│ ├───16.62 MB (05.31%) ── unused-gc-things
│ ├────8.13 MB (02.60%) ++ (9 tiny)
│ └────3.58 MB (01.14%) ++ scopes
├───84.02 MB (26.87%) -- compartments
│ ├──69.95 MB (22.37%) -- classes/objects
│ │ ├──35.09 MB (11.22%) ── gc-heap
│ │ └──34.86 MB (11.15%) -- malloc-heap
│ │ ├──27.38 MB (08.76%) ── elements/normal
│ │ ├───7.47 MB (02.39%) ── slots
│ │ └───0.01 MB (00.00%) ── misc
│ ├───7.67 MB (02.45%) ++ (11 tiny)
│ └───6.39 MB (02.04%) -- scripts
│ ├──4.12 MB (01.32%) ── gc-heap
│ └──2.27 MB (00.73%) ── malloc-heap/data
├───20.83 MB (06.66%) ── runtime
└────4.48 MB (01.43%) ++ gc-heap
365 (100.0%) -- js-main-runtime-compartments
├──358 (98.08%) -- system
│ ├──345 (94.52%) ++ (344 tiny)
│ ├────5 (01.37%) ── [System Principal], Addon-SDK (from: resource://gre/modules/commonjs/toolkit/loader.js:414) [5]
│ ├────4 (01.10%) ── [System Principal], about:blank [4]
│ └────4 (01.10%) ── [System Principal], resource://gre/modules/addons/SpellCheckDictionaryBootstrap.js (from: resource://gre/modules/addons/XPIProvider.jsm:4814) [4]
└────7 (01.92%) ++ user
136.36 MB (100.0%) -- js-main-runtime-gc-heap-committed
├──117.74 MB (86.34%) -- used
│ ├──113.42 MB (83.18%) -- gc-things
│ │ ├───48.43 MB (35.52%) ── strings
│ │ ├───35.09 MB (25.73%) ── objects
│ │ ├───21.69 MB (15.90%) ── shapes
│ │ ├────4.12 MB (03.02%) ── scripts
│ │ ├────2.02 MB (01.48%) ── object-groups
│ │ ├────1.56 MB (01.14%) ── scopes
│ │ └────0.51 MB (00.37%) ++ (4 tiny)
│ ├────2.48 MB (01.82%) ── chunk-admin
│ └────1.83 MB (01.34%) ── arena-admin
└───18.62 MB (13.66%) -- unused
├──16.62 MB (12.19%) -- gc-things
│ ├──12.28 MB (09.01%) ── strings
│ ├───2.82 MB (02.07%) ── objects
│ └───1.51 MB (01.11%) ++ (8 tiny)
├───2.00 MB (01.47%) ── chunks
└───0.00 MB (00.00%) ── arenas
244 (100.0%) -- message-manager
└──244 (100.0%) -- referent
├──172 (70.49%) -- global-manager
│ ├──172 (70.49%) ── strong
│ └────0 (00.00%) ++ weak
├───53 (21.72%) -- parent-process-manager
│ ├──53 (21.72%) ── strong
│ └───0 (00.00%) ++ weak
└───19 (07.79%) -- child-process-manager
├──19 (07.79%) ── strong
└───0 (00.00%) ++ weak
916 (100.0%) -- observer-service
└──916 (100.0%) -- referent
├──685 (74.78%) ── strong
└──231 (25.22%) -- weak
├──231 (25.22%) ── alive
└────0 (00.00%) ── dead
305 (100.0%) -- observer-service-suspect
├──170 (55.74%) ── referent(topic=xpcom-shutdown)
└──135 (44.26%) ── referent(topic=memory-pressure)
1,265 (100.0%) -- preference-service
└──1,265 (100.0%) -- referent
├──1,095 (86.56%) ── strong
└────170 (13.44%) -- weak
├──170 (13.44%) ── alive
└────0 (00.00%) ── dead
5.58 MB (100.0%) -- window-objects
├──2.61 MB (46.73%) ── style-sheets
├──1.76 MB (31.54%) -- layout
│ ├──0.45 MB (08.08%) ── style-structs
│ ├──0.44 MB (07.85%) ── style-sets
│ ├──0.35 MB (06.32%) ── pres-shell
│ ├──0.24 MB (04.38%) ── rule-nodes
│ ├──0.12 MB (02.12%) ── frames
│ ├──0.10 MB (01.78%) ── style-contexts
│ └──0.06 MB (01.02%) ++ (3 tiny)
├──1.21 MB (21.63%) -- dom
│ ├──0.81 MB (14.48%) ── element-nodes
│ ├──0.33 MB (05.89%) ── other
│ └──0.07 MB (01.26%) ++ (5 tiny)
└──0.01 MB (00.10%) ── property-tables
0.00 MB ── gfx-surface-quartz
34.61 MB ── gfx-textures
66.61 MB ── gfx-textures-peak
0.00 MB ── gfx-tiles-waste
0 ── ghost-windows
284.76 MB ── heap-allocated
1.00 MB ── heap-chunksize
345.00 MB ── heap-mapped
0 ── host-object-urls
0.74 MB ── imagelib-surface-cache-estimated-locked
0.78 MB ── imagelib-surface-cache-estimated-total
0 ── imagelib-surface-cache-overflow-count
1.74 MB ── js-main-runtime-temporary-peak
0 ── page-faults-hard
308,417 ── page-faults-soft
621.13 MB ── resident
738.00 MB ── resident-peak
302.98 MB ── resident-unique
6,138.84 MB ── vsize
End of Main Process
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment