diff options
Diffstat (limited to 'deps/v8/src/heap-profiler.cc')
-rw-r--r-- | deps/v8/src/heap-profiler.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/deps/v8/src/heap-profiler.cc b/deps/v8/src/heap-profiler.cc index bd1cd2d9cf..b61505562b 100644 --- a/deps/v8/src/heap-profiler.cc +++ b/deps/v8/src/heap-profiler.cc @@ -667,8 +667,9 @@ void ProducerHeapProfile::Setup() { can_log_ = true; } -void ProducerHeapProfile::RecordJSObjectAllocation(Object* obj) { - if (!can_log_ || !FLAG_log_producers) return; +void ProducerHeapProfile::DoRecordJSObjectAllocation(Object* obj) { + ASSERT(FLAG_log_producers); + if (!can_log_) return; int framesCount = 0; for (JavaScriptFrameIterator it; !it.done(); it.Advance()) { ++framesCount; |