BOOMR.plugins. Memory


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
  • Screen
  • Hardware
    • scr.mtp: navigator.maxTouchPoints
    • cpu.cnc: [navigator.hardwareConcurrency] (https://developer.mozilla.org/en-US/docs/Web/API/NavigatorConcurrentHardware/hardwareConcurrency)
  • DOM
    • dom.ln: Number of DOM nodes in the main frame
    • dom.sz: Number of HTML bytes of of the main frame
    • dom.ck: Number of bytes stored as cookies available to JavaScript on the current domain
    • dom.img: Number of IMG nodes in the main frame
    • dom.img.ext: Number of external (e.g. not data: URI) IMG nodes in the main frame
    • dom.img.uniq: Number of unique IMG src nodes in the main frame
    • dom.script: Number of SCRIPT nodes in the main frame
    • dom.script.ext: Number of external (e.g. not inline or data: URI) SCRIPT nodes in the main frame
    • dom.script.uniq: Number of unique SCRIPT src nodes in the main frame
    • dom.iframe: Number of IFRAME nodes in the main frame
    • dom.iframe.ext: Number of external (e.g. not javascript: or about: URI) IFRAME nodes in the main frame
    • dom.iframe.uniq: Number of unique IFRAME src nodes in the main frame
    • dom.link: Number of LINK nodes in the main frame
    • dom.link.css: Number of rel="stylesheet" LINK nodes in the main frame
    • dom.link.css.uniq: Number of unique rel="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