diff --git a/src/net.h b/src/net.h index 794b0a98dbc..680ff2fc0ce 100644 --- a/src/net.h +++ b/src/net.h @@ -55,10 +55,12 @@ private: static void on_read (oi_socket *s, const void *buf, size_t len) { Connection *connection = static_cast (s->data); + v8::V8::ResumeProfiler(); if (len == 0) connection->OnEOF(); else connection->OnReceive(buf, len); + v8::V8::PauseProfiler(); } static void on_drain (oi_socket *s) { diff --git a/src/node.cc b/src/node.cc index 12b39d9f89f..a7d9a8dc8cf 100644 --- a/src/node.cc +++ b/src/node.cc @@ -248,6 +248,8 @@ main (int argc, char *argv[]) Local g = Context::GetCurrent()->Global(); + V8::PauseProfiler(); // to be resumed in Connection::on_read + Local node = Object::New(); g->Set(String::New("node"), node);