xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/js_stat_example.txt (revision c29d51755812ace2e87aeefdb06cb2b4dac7087a)
1The following are examples of running js_stat.d
2
3Here is the result after running the program Code/JavaScript/func_clock.html.
4
5# js_stat.d
6TIME                   EXEC/s   FUNC/s OBJNEW/s OBJFRE/s
72007 Sep 23 23:04:59        1        9        1        0
82007 Sep 23 23:05:00        1        9        1        0
92007 Sep 23 23:05:01        1        9        1        0
102007 Sep 23 23:05:02        1        6        1        0
112007 Sep 23 23:05:03        0        3        0        0
122007 Sep 23 23:05:04        1        9        1        0
132007 Sep 23 23:05:05        1        9        1        0
142007 Sep 23 23:05:06        1        9        1        0
15^C
16
17We can see that at 2007 Sep 23 23:05:02 there was one JavaScript program
18executed, six functions called, one new object created and no objects freed.
19
20
21Here is the result after running the program Code/JavaScript/func_slow.html.
22This also includes browser JavaScript.
23
24# js_stat.d
25TIME                   EXEC/s   FUNC/s OBJNEW/s OBJFRE/s
262007 Sep 23 23:05:48        1      124       41        0
272007 Sep 23 23:05:49        1       29       19        0
282007 Sep 23 23:05:50        1       29       25        0
292007 Sep 23 23:05:51        1      670      497        0
302007 Sep 23 23:05:52        0       62       11        0
312007 Sep 23 23:05:53        0        0        6      617
322007 Sep 23 23:05:54        0        0        0        0
332007 Sep 23 23:05:55        0        0        0        0
34^C
35
36