Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

better example output

  • Loading branch information...
commit d15e51f0a90950cf7b692d70864c3a8572a4e11e 1 parent ab261e1
James Halliday authored July 18, 2011
17  README.markdown
Source Rendered
@@ -40,7 +40,9 @@ b.run({
40 40
             })
41 41
             .forEach(function (key) {
42 42
                 var count = counts[key];
43  
-                console.log(count.times + ' ' + count.node.source());
  43
+                console.log(
  44
+                    count.times + ' : ' + count.node.source()
  45
+                );
44 46
             })
45 47
         ;
46 48
     }
@@ -72,6 +74,19 @@ var iv = setInterval(function () {
72 74
 
73 75
 output:
74 76
 
  77
+    $ node example/top/run.js 
  78
+    279 : i<30
  79
+    270 : nop()
  80
+    270 : nop();
  81
+    270 : i++
  82
+    18 : boop();
  83
+    10 : ++times
  84
+    10 : ++times===10
  85
+    1 : setInterval(function(){if(++times===10){clearInterval(iv);end()}else boop()},100)
  86
+    1 : clearInterval(iv);
  87
+    1 : clearInterval(iv)
  88
+    1 : end();
  89
+    1 : end()
75 90
 
76 91
 methods
77 92
 =======
4  example/top/run.js
@@ -22,7 +22,9 @@ b.run({
22 22
             })
23 23
             .forEach(function (key) {
24 24
                 var count = counts[key];
25  
-                console.log(count.times + ' ' + count.node.source());
  25
+                console.log(
  26
+                    count.times + ' : ' + count.node.source()
  27
+                );
26 28
             })
27 29
         ;
28 30
     }

0 notes on commit d15e51f

Please sign in to comment.
Something went wrong with that request. Please try again.