Plugin to collect memory, page construction (DOM), screen, CPU and battery metrics (when available).
For information on how to include this plugin, see the Building tutorial.
Beacon Parameters
- Resources:
dom.res: Number of resources fetched in the main frame (via ResourceTiming)dom.doms: Number of unique domains in the main page (via ResourceTiming)
- Memory
mem.total:memory.totalJSHeapSizemem.limit:memory.jsHeapSizeLimitmem.used:memory.usedJSHeapSizemem.lssz: Number of localStorage bytes usedmem.lsln: Number of localStorage keys usedmem.sssz: Number of sessionStorage bytes usedmem.ssln: Number of sessionStorage keys useddev.mem: Device memory
- Screen
scr.xy:screen.widthandscreen.height(e.g.100x200)scr.bpp:screen.colorDepthandscreen.pixelDepth(e.g.32/24)scr.dpx:screen.devicePixelRatioscr.orn:screen.orientation.angleandscreen.orientation.type(e.g.90/landscape-primary)scr.sxy:window.scrollXandwindow.scrollY(e.g.0x1000)
- Hardware
scr.mtp:navigator.maxTouchPointscpu.cnc: [navigator.hardwareConcurrency] (https://developer.mozilla.org/en-US/docs/Web/API/NavigatorConcurrentHardware/hardwareConcurrency)
- DOM
dom.ln: Number of DOM nodes in the main framedom.sz: Number of HTML bytes of of the main framedom.ck: Number of bytes stored as cookies available to JavaScript on the current domaindom.img: Number ofIMGnodes in the main framedom.img.ext: Number of external (e.g. notdata:URI)IMGnodes in the main framedom.img.uniq: Number of uniqueIMG srcnodes in the main framedom.script: Number ofSCRIPTnodes in the main framedom.script.ext: Number of external (e.g. not inline ordata:URI)SCRIPTnodes in the main framedom.script.uniq: Number of uniqueSCRIPT srcnodes in the main framedom.iframe: Number ofIFRAMEnodes in the main framedom.iframe.ext: Number of external (e.g. notjavascript:orabout:URI)IFRAMEnodes in the main framedom.iframe.uniq: Number of uniqueIFRAME srcnodes in the main framedom.link: Number ofLINKnodes in the main framedom.link.css: Number ofrel="stylesheet"LINKnodes in the main framedom.link.css.uniq: Number of uniquerel="stylesheet"LINKnodes in the main frame
- Net
net.sd: Boolean stating whether the user has data saver turned on or not
Methods
-
init()
-
Initializes the plugin.
-
is_complete()
-
This plugin is always complete (ready to send a beacon)
Returns:
Type: boolean
true