This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/node.cc b/src/node.cc | |
index 648c4d1..85d20f4 100644 | |
--- a/src/node.cc | |
+++ b/src/node.cc | |
@@ -62,6 +62,8 @@ static Persistent<String> emit_symbol; | |
static int option_end_index = 0; | |
static bool use_debug_agent = false; | |
+static bool debug_wait_connect = false; | |
+static int debug_port=5858; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/node.cc b/src/node.cc | |
index 648c4d1..8efdf01 100644 | |
--- a/src/node.cc | |
+++ b/src/node.cc | |
@@ -62,6 +62,8 @@ static Persistent<String> emit_symbol; | |
static int option_end_index = 0; | |
static bool use_debug_agent = false; | |
+static bool debug_wait_connect = false; | |
+static int debug_port=5858; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/node.js b/src/node.js | |
index 32f3b6d..f321e43 100644 | |
--- a/src/node.js | |
+++ b/src/node.js | |
@@ -537,6 +537,16 @@ var fsModule = createInternalModule("fs", function (exports) { | |
exports.chmodSync = function (path, mode) { | |
return process.fs.chmod(path, mode); | |
}; | |
+ | |
+ exports.glob = function(pattern, callback) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/node.cc b/src/node.cc | |
index fc17fc0..57c61b0 100644 | |
--- a/src/node.cc | |
+++ b/src/node.cc | |
@@ -1182,7 +1182,8 @@ static void PrintHelp() { | |
printf("Usage: node [options] script.js [arguments] \n" | |
" -v, --version print node's version\n" | |
" --debug[=port] enable remote debugging via given TCP port\n" | |
- " --debug-brk[=port] as above, but break in node.js and\n" | |
+ " without stopping the execution\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/wscript b/wscript | |
index ccccac9..ab998d3 100644 | |
--- a/wscript | |
+++ b/wscript | |
@@ -337,10 +337,37 @@ def build(bld): | |
coupling.clone("debug") | |
### src/native.cc | |
+ def make_macros(loc, content): | |
+ f = open(loc, 'w') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sys = require("sys"), | |
fs = require("fs"), | |
http = require("http"), | |
url = require("url"); | |
var base_chunk = '01234567890123456789'; | |
// Produce a very large response. | |
var chargen = http.createServer(function (req, res) { | |
var len = req.headers['x-len']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <node.h> | |
#include <sys/time.h> | |
using namespace v8; | |
using namespace node; | |
Handle<Value> | |
seconds(const Arguments& args) | |
{ | |
timeval t1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Consecutive get_monotonic_time statistics | |
for 1000000 invocations: | |
282 nsec ... 6 times | |
284 nsec ... 5049 times | |
285 nsec ... 67767 times | |
286 nsec ... 7659 times | |
288 nsec ... 481497 times | |
289 nsec ... 16496 times | |
290 nsec ... 21789 times | |
291 nsec ... 308581 times |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/node.cc b/src/node.cc | |
index 452c111..9395814 100644 | |
--- a/src/node.cc | |
+++ b/src/node.cc | |
@@ -1062,6 +1062,47 @@ static Handle<Value> CheckBreak(const Arguments& args) { | |
return Undefined(); | |
} | |
+ // monotonic time stamp recorded when Node app was started | |
+static double startup_time; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/node.cc b/src/node.cc | |
index 452c111..32911e2 100644 | |
--- a/src/node.cc | |
+++ b/src/node.cc | |
@@ -1062,6 +1062,53 @@ static Handle<Value> CheckBreak(const Arguments& args) { | |
return Undefined(); | |
} | |
+ // monotonic time stamp recorded when Node app was started | |
+static double startup_time; |
OlderNewer