summaryrefslogtreecommitdiff
path: root/deps/v8/src/heap-profiler.h
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2009-12-30 02:34:22 +0100
committerRyan Dahl <ry@tinyclouds.org>2009-12-30 02:35:15 +0100
commitfd73a3a3985b5d4064d3dbb1e5bda7eab259e9c7 (patch)
tree869a651a4d972e661c9c828b74348a55e24cc8c8 /deps/v8/src/heap-profiler.h
parent359d0170ab2c9925b0408f358285c9a1d98547e6 (diff)
downloadnode-new-fd73a3a3985b5d4064d3dbb1e5bda7eab259e9c7.tar.gz
Upgrade V8 to 2.0.5.4
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 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_;
};