summaryrefslogtreecommitdiff
path: root/deps/v8/src/heap-profiler.h
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2009-12-18 15:05:04 +0100
committerRyan Dahl <ry@tinyclouds.org>2009-12-18 15:05:04 +0100
commit20b945df706b2b9fcbc1a84230372d288d497544 (patch)
tree0c60abd605dfb4452ba1e866b2bd075f1bd929ef /deps/v8/src/heap-profiler.h
parent164ce76e941490e82230e905e719b5b556b669f5 (diff)
downloadnode-20b945df706b2b9fcbc1a84230372d288d497544.tar.gz
Upgrade V8 to 2.0.5
Diffstat (limited to 'deps/v8/src/heap-profiler.h')
-rw-r--r--deps/v8/src/heap-profiler.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/deps/v8/src/heap-profiler.h b/deps/v8/src/heap-profiler.h
index f8cb04daf..c615942bf 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_;
};