Commit 14be3846 authored by ulan's avatar ulan Committed by Commit bot

[heap] Account mark-compact prologue and epilogue in GC tracer.

BUG=

Review-Url: https://chromiumcodereview.appspot.com/2442693002
Cr-Commit-Position: refs/heads/master@{#40497}
parent 726becfb
...@@ -524,6 +524,7 @@ void GCTracer::PrintNVP() const { ...@@ -524,6 +524,7 @@ void GCTracer::PrintNVP() const {
"clear.weak_cells=%.1f " "clear.weak_cells=%.1f "
"clear.weak_collections=%.1f " "clear.weak_collections=%.1f "
"clear.weak_lists=%.1f " "clear.weak_lists=%.1f "
"epilogue=%.1f "
"evacuate=%.1f " "evacuate=%.1f "
"evacuate.candidates=%.1f " "evacuate.candidates=%.1f "
"evacuate.clean_up=%.1f " "evacuate.clean_up=%.1f "
...@@ -549,6 +550,7 @@ void GCTracer::PrintNVP() const { ...@@ -549,6 +550,7 @@ void GCTracer::PrintNVP() const {
"mark.wrapper_prologue=%.1f " "mark.wrapper_prologue=%.1f "
"mark.wrapper_epilogue=%.1f " "mark.wrapper_epilogue=%.1f "
"mark.wrapper_tracing=%.1f " "mark.wrapper_tracing=%.1f "
"prologue=%.1f "
"sweep=%.1f " "sweep=%.1f "
"sweep.code=%.1f " "sweep.code=%.1f "
"sweep.map=%.1f " "sweep.map=%.1f "
...@@ -605,6 +607,7 @@ void GCTracer::PrintNVP() const { ...@@ -605,6 +607,7 @@ void GCTracer::PrintNVP() const {
current_.scopes[Scope::MC_CLEAR_WEAK_CELLS], current_.scopes[Scope::MC_CLEAR_WEAK_CELLS],
current_.scopes[Scope::MC_CLEAR_WEAK_COLLECTIONS], current_.scopes[Scope::MC_CLEAR_WEAK_COLLECTIONS],
current_.scopes[Scope::MC_CLEAR_WEAK_LISTS], current_.scopes[Scope::MC_CLEAR_WEAK_LISTS],
current_.scopes[Scope::MC_EPILOGUE],
current_.scopes[Scope::MC_EVACUATE], current_.scopes[Scope::MC_EVACUATE],
current_.scopes[Scope::MC_EVACUATE_CANDIDATES], current_.scopes[Scope::MC_EVACUATE_CANDIDATES],
current_.scopes[Scope::MC_EVACUATE_CLEAN_UP], current_.scopes[Scope::MC_EVACUATE_CLEAN_UP],
...@@ -629,7 +632,7 @@ void GCTracer::PrintNVP() const { ...@@ -629,7 +632,7 @@ void GCTracer::PrintNVP() const {
current_.scopes[Scope::MC_MARK_WRAPPER_PROLOGUE], current_.scopes[Scope::MC_MARK_WRAPPER_PROLOGUE],
current_.scopes[Scope::MC_MARK_WRAPPER_EPILOGUE], current_.scopes[Scope::MC_MARK_WRAPPER_EPILOGUE],
current_.scopes[Scope::MC_MARK_WRAPPER_TRACING], current_.scopes[Scope::MC_MARK_WRAPPER_TRACING],
current_.scopes[Scope::MC_SWEEP], current_.scopes[Scope::MC_PROLOGUE], current_.scopes[Scope::MC_SWEEP],
current_.scopes[Scope::MC_SWEEP_CODE], current_.scopes[Scope::MC_SWEEP_CODE],
current_.scopes[Scope::MC_SWEEP_MAP], current_.scopes[Scope::MC_SWEEP_MAP],
current_.scopes[Scope::MC_SWEEP_OLD], current_.scopes[Scope::MC_SWEEP_OLD],
......
...@@ -49,6 +49,7 @@ enum ScavengeSpeedMode { kForAllObjects, kForSurvivedObjects }; ...@@ -49,6 +49,7 @@ enum ScavengeSpeedMode { kForAllObjects, kForSurvivedObjects };
F(MC_CLEAR_WEAK_CELLS) \ F(MC_CLEAR_WEAK_CELLS) \
F(MC_CLEAR_WEAK_COLLECTIONS) \ F(MC_CLEAR_WEAK_COLLECTIONS) \
F(MC_CLEAR_WEAK_LISTS) \ F(MC_CLEAR_WEAK_LISTS) \
F(MC_EPILOGUE) \
F(MC_EVACUATE) \ F(MC_EVACUATE) \
F(MC_EVACUATE_CANDIDATES) \ F(MC_EVACUATE_CANDIDATES) \
F(MC_EVACUATE_CLEAN_UP) \ F(MC_EVACUATE_CLEAN_UP) \
...@@ -73,6 +74,7 @@ enum ScavengeSpeedMode { kForAllObjects, kForSurvivedObjects }; ...@@ -73,6 +74,7 @@ enum ScavengeSpeedMode { kForAllObjects, kForSurvivedObjects };
F(MC_MARK_WRAPPER_PROLOGUE) \ F(MC_MARK_WRAPPER_PROLOGUE) \
F(MC_MARK_WRAPPER_TRACING) \ F(MC_MARK_WRAPPER_TRACING) \
F(MC_MARK_OBJECT_GROUPING) \ F(MC_MARK_OBJECT_GROUPING) \
F(MC_PROLOGUE) \
F(MC_SWEEP) \ F(MC_SWEEP) \
F(MC_SWEEP_CODE) \ F(MC_SWEEP_CODE) \
F(MC_SWEEP_MAP) \ F(MC_SWEEP_MAP) \
......
...@@ -1447,6 +1447,7 @@ void Heap::MarkCompact() { ...@@ -1447,6 +1447,7 @@ void Heap::MarkCompact() {
void Heap::MarkCompactEpilogue() { void Heap::MarkCompactEpilogue() {
TRACE_GC(tracer(), GCTracer::Scope::MC_EPILOGUE);
gc_state_ = NOT_IN_GC; gc_state_ = NOT_IN_GC;
isolate_->counters()->objs_since_last_full()->Set(0); isolate_->counters()->objs_since_last_full()->Set(0);
...@@ -1465,6 +1466,7 @@ void Heap::MarkCompactEpilogue() { ...@@ -1465,6 +1466,7 @@ void Heap::MarkCompactEpilogue() {
void Heap::MarkCompactPrologue() { void Heap::MarkCompactPrologue() {
TRACE_GC(tracer(), GCTracer::Scope::MC_PROLOGUE);
isolate_->context_slot_cache()->Clear(); isolate_->context_slot_cache()->Clear();
isolate_->descriptor_lookup_cache()->Clear(); isolate_->descriptor_lookup_cache()->Clear();
RegExpResultsCache::Clear(string_split_cache()); RegExpResultsCache::Clear(string_split_cache());
......
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