1The following examples are the results of running the js_who.d script while 2various JavaScript events happen. 3 4A JavaScript program that behaves like a clock is frequently used by these 5examples, since it can be left running in the background without browser 6input. Browser input, such as hitting the reload button or using menus, 7triggers many other JavaScript events since much of the browser uses 8JavaScript. This makes for interesting longer examples, but would be 9overwhelming for example #1. 10 11In the first example, we can see what happens when we run this program, 12Code/JavaScript/func_clock.html 13 14# js_who.d 15Tracing... Hit Ctrl-C to end. 16^C 17 PID UID FUNCS FILE 18 10530 100 18 file:///export/home/brendan/Lang/JavaScript/func_clock.html 19 20 21The second example is more complex, the reason for this is that the program 22Code/Javascript/func_slow.html was loaded in the browser, and the reload 23button was pressed. This output captured the many browser events that occured 24when moving the mouse pointer to do so. 25 26# js_who.d 27Tracing... Hit Ctrl-C to end. 28^C 29 PID UID FUNCS FILE 30 10530 100 2 chrome://firebug/content/views/css.js 31 10530 100 2 chrome://firebug/content/views/dom.js 32 10530 100 2 chrome://firebug/content/views/events.js 33 10530 100 2 chrome://firebug/content/views/layout.js 34 10530 100 2 chrome://firebug/content/views/source.js 35 10530 100 2 chrome://firebug/content/views/style.js 36 10530 100 2 chrome://global/content/bindings/scrollbar.xml 37 10530 100 3 chrome://global/content/bindings/general.xml 38 10530 100 3 chrome://global/content/bindings/tabbox.xml 39 10530 100 3 chrome://global/content/bindings/text.xml 40 10530 100 4 chrome://browser/content/utilityOverlay.js 41 10530 100 5 chrome://firebug/content/views/view.js 42 10530 100 6 file:///export/home/brendan/Lang/JavaScript/func_slow.html 43 10530 100 7 chrome://global/content/bindings/textbox.xml 44 10530 100 7 chrome://global/content/bindings/tree.xml 45 10530 100 10 chrome://reporter/content/reporterOverlay.js 46 10530 100 12 XStringBundle 47 10530 100 14 chrome://global/content/bindings/progressmeter.xml 48 10530 100 18 file:///export/home/brendan/Lang/JavaScript/func_clock.html 49 10530 100 19 chrome://firebug/content/utils.js 50 10530 100 30 chrome://webdeveloper/content/common/preferences.js 51 10530 100 43 chrome://global/content/bindings/browser.xml 52 10530 100 44 chrome://global/content/bindings/tabbrowser.xml 53 10530 100 72 chrome://global/content/bindings/button.xml 54 10530 100 88 chrome://global/content/bindings/autocomplete.xml 55 10530 100 110 chrome://browser/content/browser.js 56 10530 100 121 chrome://webdeveloper/content/webdeveloper.js 57 10530 100 133 chrome://firebug/content/firebug.js 58 10530 100 162 chrome://global/content/globalOverlay.js 59 60