e428dfd773
We currently use the class name “JSValue” for JSObjects that wrap primitive values. This name is a common source of confusion. This patch switches to a name that’s more clear. In addition to manual tweaks, the patch applies the following mechanical global replacements: before | after --------------------------------|-------------------------------------- if_valueisnotvalue | if_valueisnotwrapper if_valueisvalue | if_valueiswrapper js_value | js_primitive_wrapper JS_VALUE_TYPE | JS_PRIMITIVE_WRAPPER_TYPE JSPrimitiveWrapperType | JSPrimitiveWrapper type jsvalue | js_primitive_wrapper JSValue | JSPrimitiveWrapper _GENERATED_JSVALUE_FIELDS | _GENERATED_JSPRIMITIVE_WRAPPER_FIELDS Change-Id: I9d9edea784eab6067b013e1f781e4db2070f807c Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1672942 Reviewed-by: Tamer Tas <tmrts@chromium.org> Reviewed-by: Michael Stanton <mvstanton@chromium.org> Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Commit-Queue: Mathias Bynens <mathias@chromium.org> Cr-Commit-Position: refs/heads/master@{#62337} |
||
---|---|---|
.. | ||
categories.js | ||
details-selection.html | ||
details-selection.js | ||
global-timeline.html | ||
global-timeline.js | ||
helper.js | ||
histogram-viewer.html | ||
histogram-viewer.js | ||
index.html | ||
model.js | ||
README.md | ||
trace-file-reader.html | ||
trace-file-reader.js |
Heap Stats
Heap stats is a HTML-based tool for visualizing V8-internal object statistics. For example, the tool can be used to visualize how much heap memory is used for maintaining internal state versus actually allocated by the user.
The tool consumes log files produced by d8 (or Chromium) by passing
--trace-gc-object-stats
or a trace captured using Chrome's tracing
infrastructure. Chrome trace files can either be processed as gzip or raw text
files.
Hosting requires a web server, e.g.:
cd tools/heap-stats
python -m SimpleHTTPServer 8000