Skip to content

Commit f1370ff

Browse files
committed
More refactoring; Initial RPC service implementaion, see #529
1 parent 5606cb1 commit f1370ff

File tree

15 files changed

+472
-144
lines changed

15 files changed

+472
-144
lines changed

bench/prof.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
var fs = require("fs"),
2-
path = require("path");
1+
var fs = require("fs"),
2+
path = require("path");
33

44
// A profiling stub to measure encoding / decoding performance using benchmark data.
55

@@ -14,7 +14,7 @@ if (process.execArgv.indexOf("--prof") < 0) {
1414
console.log("cleaning up old logs ...");
1515
var child_process = require("child_process");
1616
var logRe = /^isolate\-[0-9A-F]+\-v8\.log$/;
17-
fs.readdirSync(process.cwd()).forEach(function(file) {
17+
fs.readdirSync(process.cwd()).forEach(function readdirSync_it(file) {
1818
if (logRe.test(file))
1919
fs.unlink(file);
2020
});
@@ -24,13 +24,13 @@ if (process.execArgv.indexOf("--prof") < 0) {
2424
stdio: 'inherit'
2525
});
2626
console.log("processing profile ...");
27-
fs.readdirSync(process.cwd()).forEach(function(file) {
27+
fs.readdirSync(process.cwd()).forEach(function readdirSync_it(file) {
2828
if (logRe.test(file)) {
2929
child_process.execSync("node --prof-process " + file, {
3030
cwd: process.cwd(),
3131
stdio: 'inherit'
3232
});
33-
fs.unlink(file);
33+
// fs.unlink(file);
3434
}
3535
});
3636
console.log("done.");

0 commit comments

Comments
 (0)