diff options
Diffstat (limited to 'deps/v8/src/heap-profiler.h')
-rw-r--r-- | deps/v8/src/heap-profiler.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/deps/v8/src/heap-profiler.h b/deps/v8/src/heap-profiler.h index f8cb04dafc..c615942bf7 100644 --- a/deps/v8/src/heap-profiler.h +++ b/deps/v8/src/heap-profiler.h @@ -261,8 +261,12 @@ class RetainerHeapProfile BASE_EMBEDDED { class ProducerHeapProfile : public AllStatic { public: static void Setup(); - static void RecordJSObjectAllocation(Object* obj); + static void RecordJSObjectAllocation(Object* obj) { + if (FLAG_log_producers) DoRecordJSObjectAllocation(obj); + } + private: + static void DoRecordJSObjectAllocation(Object* obj); static bool can_log_; }; |