# V8 Heap Statistics

Visualize object statistics that have been gathered using

- Use `--trace-gc-object-stats` for V8 and load the contents of stdout
- Chrome's tracing infrastructure collecting data for the category `disabled-by-default-v8.gc_stats` and directly load the results.html or trace.json.gzip file.

Additional information:

- You only get a data point on major GCs. You can enforce this by using the `--gc-global` V8 flag.
- For more frequent data points you can also the `--gc-interval=$AFTER_N_ALLOCATIONS` V8.
- The visualizer needs to run on a web server due to HTML imports requiring CORS.