top — display browser resource usage in real time
SYNOPSIS
top [-d seconds] [-n iterations]
DESCRIPTION
Shows a live, refreshing view of this page's resources:
- JavaScript heap (performance.memory: used / allocated / limit) with a usage bar and a sparkline of recent samples — Chromium browsers only; others report it as unavailable;
- device hints (approximate RAM, CPU threads), DOM size, open terminal windows, page uptime;
- the local LLM engine (loaded model, tokens) and the service worker;
- the Web Workers started by shell commands (e.g. hashcat), with their state, age and message count.
Press q or Ctrl+C to quit (the last frame stays on screen).
OPTIONS
-d <seconds> refresh interval (default 1, min 0.25) -n <iterations> stop after that many refreshes (e.g. -n 1 = snapshot)
USE CASES
- watch the memory of the page grow while a local LLM model loads;
- check that the Web Workers started by hashcat stop after a run;
- keep an eye on the DOM size after long sessions or many windows.
NOTES
Browsers limit what a page can measure: there is no per-process CPU or system-wide memory as in the Unix top.
EXAMPLES
top top -d 2 top -n 1