Skip to content

Commit

Permalink
Fix hilight bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mape committed Aug 2, 2010
1 parent b713050 commit 004b4b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/nodeprofile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ process.addListener('SIGINT', function () {});

var logName = 'profile-'+Date.now()+Math.floor(Math.random()*10000)+'.log';

var command = 'node --prof --logfile='+logName+' '+process.ARGV[2];
var command = 'node --prof --log-snapshot-positions --logfile='+logName+' '+process.ARGV[2];

console.log('Running: '+command);

Expand Down Expand Up @@ -45,7 +45,7 @@ function colorFormat(profileLog) {
newLog.push(style(33, line));
} else if (line.match(/^[^ ]/)) {
newLog.push(style(37, line));
} else if (line.match(/^ [^ ]/)) {
} else if (line.match(/^ [^ 0-9]/)) {
newLog.push(style(35, line));
} else {
newLog.push(line.replace(/ *([^ ]+)/, function(match){return style(31, match);})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "profile",
"description": "A script that makes profiling node.js apps easier.",
"version": "0.0.3",
"version": "0.0.4",
"author" : "Mathias Pettersson <mape@mape.me>",
"bin": { "nodeprofile": "./bin/nodeprofile" },
"engines": { "node": ">= 0.1.100" },
Expand Down

0 comments on commit 004b4b7

Please sign in to comment.