Skip to content

Commit

Permalink
comment out stack recording
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Sep 17, 2010
1 parent 53406cd commit 2169476
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/node_events.cc
Expand Up @@ -2,6 +2,8 @@
#include <node_events.h>
#include <node.h>

#define RECORD 0

namespace node {

using namespace v8;
Expand Down Expand Up @@ -178,6 +180,7 @@ void EventSource::RecordStack() {
ClearStack();

// Assume inside HandleScope
#if RECORD
Local<StackTrace> trace =
StackTrace::CurrentStackTrace(kFrameLimit, StackTrace::kOverview);

Expand All @@ -188,6 +191,7 @@ void EventSource::RecordStack() {
parent_source_ = Persistent<Object>::New(current_source->handle_);
parent_source_.MakeWeak(this, WeakParent);
}
#endif
}


Expand Down

0 comments on commit 2169476

Please sign in to comment.