Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(479)

Unified Diff: src/heap/gc-tracer.cc

Issue 1407883003: [heap] Print memory mode in --trace-gc-nvp. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/gc-tracer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/gc-tracer.cc
diff --git a/src/heap/gc-tracer.cc b/src/heap/gc-tracer.cc
index e27fa27d83cd788532579530fc0ffd700d15c15b..8fce990acf969a98cdae2e9db7b1408c8e2f1f92 100644
--- a/src/heap/gc-tracer.cc
+++ b/src/heap/gc-tracer.cc
@@ -45,6 +45,7 @@ GCTracer::Event::Event(Type type, const char* gc_reason,
collector_reason(collector_reason),
start_time(0.0),
end_time(0.0),
+ reduce_memory(false),
start_object_size(0),
end_object_size(0),
start_memory_size(0),
@@ -138,6 +139,7 @@ void GCTracer::Start(GarbageCollector collector, const char* gc_reason,
}
}
+ current_.reduce_memory = heap_->ShouldReduceMemory();
current_.start_time = start_time;
current_.start_object_size = heap_->SizeOfObjects();
current_.start_memory_size = heap_->isolate()->memory_allocator()->Size();
@@ -400,6 +402,7 @@ void GCTracer::PrintNVP() const {
PrintF("pause=%.1f ", duration);
PrintF("mutator=%.1f ", spent_in_mutator);
PrintF("gc=%s ", current_.TypeName(true));
+ PrintF("reduce_memory=%d ", current_.reduce_memory);
switch (current_.type) {
case Event::SCAVENGER:
« no previous file with comments | « src/heap/gc-tracer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698