1*c29d5175SchristosThe following are examples of running js_stat.d 2*c29d5175Schristos 3*c29d5175SchristosHere is the result after running the program Code/JavaScript/func_clock.html. 4*c29d5175Schristos 5*c29d5175Schristos# js_stat.d 6*c29d5175SchristosTIME EXEC/s FUNC/s OBJNEW/s OBJFRE/s 7*c29d5175Schristos2007 Sep 23 23:04:59 1 9 1 0 8*c29d5175Schristos2007 Sep 23 23:05:00 1 9 1 0 9*c29d5175Schristos2007 Sep 23 23:05:01 1 9 1 0 10*c29d5175Schristos2007 Sep 23 23:05:02 1 6 1 0 11*c29d5175Schristos2007 Sep 23 23:05:03 0 3 0 0 12*c29d5175Schristos2007 Sep 23 23:05:04 1 9 1 0 13*c29d5175Schristos2007 Sep 23 23:05:05 1 9 1 0 14*c29d5175Schristos2007 Sep 23 23:05:06 1 9 1 0 15*c29d5175Schristos^C 16*c29d5175Schristos 17*c29d5175SchristosWe can see that at 2007 Sep 23 23:05:02 there was one JavaScript program 18*c29d5175Schristosexecuted, six functions called, one new object created and no objects freed. 19*c29d5175Schristos 20*c29d5175Schristos 21*c29d5175SchristosHere is the result after running the program Code/JavaScript/func_slow.html. 22*c29d5175SchristosThis also includes browser JavaScript. 23*c29d5175Schristos 24*c29d5175Schristos# js_stat.d 25*c29d5175SchristosTIME EXEC/s FUNC/s OBJNEW/s OBJFRE/s 26*c29d5175Schristos2007 Sep 23 23:05:48 1 124 41 0 27*c29d5175Schristos2007 Sep 23 23:05:49 1 29 19 0 28*c29d5175Schristos2007 Sep 23 23:05:50 1 29 25 0 29*c29d5175Schristos2007 Sep 23 23:05:51 1 670 497 0 30*c29d5175Schristos2007 Sep 23 23:05:52 0 62 11 0 31*c29d5175Schristos2007 Sep 23 23:05:53 0 0 6 617 32*c29d5175Schristos2007 Sep 23 23:05:54 0 0 0 0 33*c29d5175Schristos2007 Sep 23 23:05:55 0 0 0 0 34*c29d5175Schristos^C 35*c29d5175Schristos 36