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

Side by Side Diff: src/heap/heap.cc

Issue 765773002: Just account for context disposal garbage collections in context disposal stats counters. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 4447 matching lines...) Expand 10 before | Expand all | Expand 10 after
4458 actual_time_in_ms = static_cast<int>(timer.Elapsed().InMilliseconds()); 4458 actual_time_in_ms = static_cast<int>(timer.Elapsed().InMilliseconds());
4459 int remaining_idle_time_in_ms = idle_time_in_ms - actual_time_in_ms; 4459 int remaining_idle_time_in_ms = idle_time_in_ms - actual_time_in_ms;
4460 if (remaining_idle_time_in_ms > 0) { 4460 if (remaining_idle_time_in_ms > 0) {
4461 TryFinalizeIdleIncrementalMarking( 4461 TryFinalizeIdleIncrementalMarking(
4462 remaining_idle_time_in_ms, heap_state.size_of_objects, 4462 remaining_idle_time_in_ms, heap_state.size_of_objects,
4463 heap_state.final_incremental_mark_compact_speed_in_bytes_per_ms); 4463 heap_state.final_incremental_mark_compact_speed_in_bytes_per_ms);
4464 } 4464 }
4465 break; 4465 break;
4466 } 4466 }
4467 case DO_FULL_GC: { 4467 case DO_FULL_GC: {
4468 HistogramTimerScope scope(isolate_->counters()->gc_context());
4469 if (contexts_disposed_) { 4468 if (contexts_disposed_) {
4469 HistogramTimerScope scope(isolate_->counters()->gc_context());
4470 CollectAllGarbage(kNoGCFlags, "idle notification: contexts disposed"); 4470 CollectAllGarbage(kNoGCFlags, "idle notification: contexts disposed");
4471 gc_idle_time_handler_.NotifyIdleMarkCompact(); 4471 gc_idle_time_handler_.NotifyIdleMarkCompact();
4472 gc_count_at_last_idle_gc_ = gc_count_; 4472 gc_count_at_last_idle_gc_ = gc_count_;
4473 } else { 4473 } else {
4474 IdleMarkCompact("idle notification: finalize idle round"); 4474 IdleMarkCompact("idle notification: finalize idle round");
4475 } 4475 }
4476 break; 4476 break;
4477 } 4477 }
4478 case DO_SCAVENGE: 4478 case DO_SCAVENGE:
4479 CollectGarbage(NEW_SPACE, "idle notification: scavenge"); 4479 CollectGarbage(NEW_SPACE, "idle notification: scavenge");
(...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after
6328 static_cast<int>(object_sizes_last_time_[index])); 6328 static_cast<int>(object_sizes_last_time_[index]));
6329 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 6329 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
6330 #undef ADJUST_LAST_TIME_OBJECT_COUNT 6330 #undef ADJUST_LAST_TIME_OBJECT_COUNT
6331 6331
6332 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 6332 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
6333 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 6333 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
6334 ClearObjectStats(); 6334 ClearObjectStats();
6335 } 6335 }
6336 } 6336 }
6337 } // namespace v8::internal 6337 } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698