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