Profile memory usage

Profile memory usage in JavaScript — with the four heights of help laid out: do it now, make it easier for the next person to accept, work out the right move when you are stuck, and learn the pattern so it stops coming back.

4prompt heights
Open it in the interactive atlas →

The four heights

The same task, four distances: today's deadline, the next reviewer, the stuck moment, the pattern.

Execute — do the immediate task

+
A memory leak was reported on the long-lived single-page app; run the browser memory profiler while…
A memory leak was reported on the long-lived single-page app; run the browser memory profiler while exercising the user journey from login to 30 minutes of use, take heap snapshots at 0, 5, 15, and 30 minutes, and produce a minimal report showing any growing retained object types and their retaining paths.

Improve — make it easier to accept

+
Before I send the memory report to the engineering lead, make it easy to act on: summarize the top…
Before I send the memory report to the engineering lead, make it easy to act on: summarize the top three retained object types with their allocation counts, show the code locations that retain them (file and line if possible), and note whether the leak grows linearly or in spikes. Suggest one practical stopgap change to reduce retained memory immediately.

Decide — diagnose the stuck moment

+
While exercising the app for 20 minutes, the heap steadily grows and never recovers; snapshots show…

Heap keeps growing during a long user session

While exercising the app for 20 minutes, the heap steadily grows and never recovers; snapshots show increasing Detached DOM nodes but I don't know whether they come from event listeners, virtual DOM mismatches, or forgotten timers. What targeted check should I run next to distinguish between those causes and what exact profiler view will prove it?

Become — change the pattern

+
Across several projects I keep chasing memory growth that surfaces only after long sessions,…

Memory spikes recur on long sessions in multiple apps

Across several projects I keep chasing memory growth that surfaces only after long sessions, costing time to reproduce and fix. Where am I most likely introducing lingering references during feature development and which consistent coding habit should I adopt to prevent these leaks going forward?

Next to this one

Other programming language work people do in JavaScript.

Every task here came from the work, not from a feature list — which is why the prompts name what you want done and never the button that does it. The tool changes; the work does not.
Copyright © LLOS.ai · 2026 — original pedagogy, voice, and design — all rights reserved.

The rest of the map

Same library, five ways in.