Chromium Code Reviews

Unified Diff: src/heap.cc

Issue 3831002: Support profiling based on linux kernel performance events. (Closed)
Patch Set: More fixes Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « src/flag-definitions.h ('k') | src/log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.cc
diff --git a/src/heap.cc b/src/heap.cc
index 23bfbd807d8d1430e4e38c3dc9044c41652dfe3f..167e7a93b1cfab03670607003b9593259ebcf27c 100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -685,6 +685,10 @@ void Heap::UpdateSurvivalRateTrend(int start_new_space_size) {
void Heap::PerformGarbageCollection(GarbageCollector collector,
GCTracer* tracer,
CollectionPolicy collectionPolicy) {
+ if (collector != SCAVENGER) {
+ PROFILE(CodeMovingGCEvent());
+ }
+
VerifySymbolTable();
if (collector == MARK_COMPACTOR && global_gc_prologue_callback_) {
ASSERT(!allocation_allowed_);
« no previous file with comments | « src/flag-definitions.h ('k') | src/log.h » ('j') | no next file with comments »

Powered by Google App Engine