| Index: bleeding_edge/src/heap-profiler.h
|
| ===================================================================
|
| --- bleeding_edge/src/heap-profiler.h (revision 3482)
|
| +++ bleeding_edge/src/heap-profiler.h (working copy)
|
| @@ -261,8 +261,12 @@
|
| 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_;
|
| };
|
|
|
|
|