11cb0ef41Sopenharmony_ci# Heap Stats
21cb0ef41Sopenharmony_ci
31cb0ef41Sopenharmony_ciHeap stats is a HTML-based tool for visualizing V8-internal object statistics.
41cb0ef41Sopenharmony_ciFor example, the tool can be used to visualize how much heap memory is used for
51cb0ef41Sopenharmony_cimaintaining internal state versus actually allocated by the user.
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ciThe tool consumes log files produced by d8 (or Chromium) by passing
81cb0ef41Sopenharmony_ci`--trace-gc-object-stats` or a trace captured using Chrome's tracing
91cb0ef41Sopenharmony_ciinfrastructure. Chrome trace files can either be processed as gzip or raw text
101cb0ef41Sopenharmony_cifiles.
111cb0ef41Sopenharmony_ci
121cb0ef41Sopenharmony_ci
131cb0ef41Sopenharmony_ciHosting requires a web server, e.g.:
141cb0ef41Sopenharmony_ci
151cb0ef41Sopenharmony_ci    cd tools/heap-stats
161cb0ef41Sopenharmony_ci    python -m SimpleHTTPServer 8000
17