Permalink
Browse files

better example output

  • Loading branch information...
1 parent ab261e1 commit d15e51f0a90950cf7b692d70864c3a8572a4e11e @substack committed Jul 18, 2011
Showing with 19 additions and 2 deletions.
  1. +16 −1 README.markdown
  2. +3 −1 example/top/run.js
View
@@ -40,7 +40,9 @@ b.run({
})
.forEach(function (key) {
var count = counts[key];
- console.log(count.times + ' ' + count.node.source());
+ console.log(
+ count.times + ' : ' + count.node.source()
+ );
})
;
}
@@ -72,6 +74,19 @@ var iv = setInterval(function () {
output:
+ $ node example/top/run.js
+ 279 : i<30
+ 270 : nop()
+ 270 : nop();
+ 270 : i++
+ 18 : boop();
+ 10 : ++times
+ 10 : ++times===10
+ 1 : setInterval(function(){if(++times===10){clearInterval(iv);end()}else boop()},100)
+ 1 : clearInterval(iv);
+ 1 : clearInterval(iv)
+ 1 : end();
+ 1 : end()
methods
=======
View
@@ -22,7 +22,9 @@ b.run({
})
.forEach(function (key) {
var count = counts[key];
- console.log(count.times + ' ' + count.node.source());
+ console.log(
+ count.times + ' : ' + count.node.source()
+ );
})
;
}

0 comments on commit d15e51f

Please sign in to comment.