Commit baac084e authored by Benoit Lize's avatar Benoit Lize Committed by Commit Bot

memory-infra: Reports per-isolate size of scripts source.

This reports the total size of source code size for all external scripts
in a V8 isolate. As with other V8 code stats, this doesn't distinguish
between live and dead objects and doesn't scan the young generation.

Bug: 837659
Change-Id: I746729f3c167cbad847599b4b128fa517a116c7e
Reviewed-on: https://chromium-review.googlesource.com/1032936Reviewed-by: default avatarPrimiano Tucci <primiano@chromium.org>
Reviewed-by: default avatarJeremy Roman <jbroman@chromium.org>
Commit-Queue: Benoit L <lizeb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#559473}
parent 62d1b5d0
...@@ -79,6 +79,10 @@ void DumpCodeStatistics( ...@@ -79,6 +79,10 @@ void DumpCodeStatistics(
"bytecode_and_metadata_size", "bytecode_and_metadata_size",
base::trace_event::MemoryAllocatorDump::kUnitsBytes, base::trace_event::MemoryAllocatorDump::kUnitsBytes,
code_statistics.bytecode_and_metadata_size()); code_statistics.bytecode_and_metadata_size());
heap_spaces_dump->AddScalar(
"external_script_source_size",
base::trace_event::MemoryAllocatorDump::kUnitsBytes,
code_statistics.external_script_source_size());
} }
// Dump the number of native and detached contexts. // Dump the number of native and detached contexts.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment