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