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.totalJSHeapSize
mem.limit
:memory.jsHeapSizeLimit
mem.used
:m.usedJSHeapSize
mem.lssz
: Number of localStorage bytes usedmem.lsln
: Number of localStorage keys usedmem.sssz
: Number of sessionStorage bytes usedmem.ssln
: Number of sessionStorage keys used
- Screen
scr.xy
:screen.width
andscreen.height
(e.g.100x200
)scr.bpp
:screen.colorDepth
andscreen.pixelDepth
(e.g.32/24
)scr.dpx
:screen.devicePixelRatio
scr.orn
:screen.orientation.angle
andscreen.orientation.type
(e.g.90/landscape-primary
)scr.sxy
:window.scrollX
andwindow.scrollY
(e.g.0x1000
)
- Hardware
scr.mtp
:navigator.maxTouchPoints
cpu.cnc
:navigator.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 ofIMG
nodes in the main framedom.img.ext
: Number of external (e.g. notdata:
URI)IMG
nodes in the main framedom.img.uniq
: Number of uniqueIMG src
nodes in the main framedom.script
: Number ofSCRIPT
nodes in the main framedom.script.ext
: Number of external (e.g. not inline ordata:
URI)SCRIPT
nodes in the main framedom.script.uniq
: Number of uniqueSCRIPT src
nodes in the main framedom.iframe
: Number ofIFRAME
nodes in the main framedom.iframe.ext
: Number of external (e.g. notjavascript:
orabout:
URI)IFRAME
nodes in the main framedom.iframe.uniq
: Number of uniqueIFRAME src
nodes in the main framedom.link
: Number ofLINK
nodes in the main framedom.link.css
: Number ofrel="stylesheet"
LINK
nodes in the main framedom.link.css.uniq
: Number of uniquerel="stylesheet"
LINK
nodes 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