Home | History | Annotate | Line # | Download | only in Examples
      1 The following are examples of the results of running js_objnew.d.  
      2 
      3 It reports on the class type of new objects created. 
      4 
      5 Here we can see it running on the program Code/JavaScript/func_clock.html.
      6 
      7 # js_objnew.d 
      8 Tracing... Hit Ctrl-C to end.
      9 ^C
     10  FILE                     CLASS                                   COUNT
     11  func_clock.html          Date                                        2
     12 
     13 The results are very simple, func_clock.html caused two new objects to be
     14 created, both of type 'Date'.
     15 
     16 
     17 Here is a more complicated example, running on the program
     18 Code/JavaScript/func_slow.html, with the results of that plus JavaScript caused 
     19 by hitting reload on the browser.
     20 
     21 
     22 # js_objnew.d 
     23 Tracing... Hit Ctrl-C to end.
     24 ^C
     25  FILE                     CLASS                                   COUNT
     26  <null>                   BarProp                                     1
     27  <null>                   CSSStyleDeclaration                         1
     28  <null>                   Global Scope Polluter                       1
     29  <null>                   HTMLBodyElement                             1
     30  <null>                   HTMLDocument                                1
     31  <null>                   HTMLHtmlElement                             1
     32  <null>                   NodeList                                    1
     33  <null>                   StyleSheetList                              1
     34  <null>                   TreeSelection                               1
     35  <null>                   Window                                      1
     36  <null>                   XULCommandDispatcher                        1
     37  <null>                   chrome://global/content/bindings/popup.xml#popup 8c35c92        1
     38  <null>                   chrome://global/content/bindings/popup.xml#popup 8fb299a        1
     39  <null>                   chrome://global/content/bindings/scrollbar.xml#scrollbar 8fb2ea2        1
     40  <null>                   nsXPCComponents_Classes                     1
     41  <null>                   xpcTempGlobalClass                          1
     42  autocomplete.xml         Object                                      1
     43  browser.js               Array                                       1
     44  browser.js               Object                                      1
     45  browser.js               XPC_WN_NoMods_Proto_JSClass                 1
     46  browser.js               nsJSCID                                     1
     47  consoleAPI.js            Call                                        1
     48  firebug.js               Constructor                                 1
     49  firebug.js               Location                                    1
     50  firebug.js               Object                                      1
     51  firebug.js               XPC_WN_ModsAllowed_Proto_JSClass            1
     52  func_slow.html           Function                                    1
     53  popup.xml                Array                                       1
     54  preferences.js           nsJSCID                                     1
     55  tabbrowser.xml           Array                                       1
     56  tabbrowser.xml           String                                      1
     57  webdeveloper.js          Array                                       1
     58  webdeveloper.js          String                                      1
     59  <null>                   BoxObject                                   2
     60  <null>                   JSOptions                                   2
     61  <null>                   JavaArray                                   2
     62  <null>                   JavaClass                                   2
     63  <null>                   JavaMember                                  2
     64  <null>                   JavaObject                                  2
     65  <null>                   PageTransitionEvent                         2
     66  autocomplete.xml         Function                                    2
     67  firebug.js               XPC_WN_NoMods_Proto_JSClass                 2
     68  reporterOverlay.js       Function                                    2
     69  tree.xml                 Function                                    2
     70  <null>                   Array                                       3
     71  <null>                   DOM Constructor.prototype                   3
     72  <null>                   With                                        3
     73  <null>                   XPC_WN_NoMods_Proto_JSClass                 3
     74  <null>                   nsXPCComponents                             3
     75  globalOverlay.js         Function                                    3
     76  scrollbar.xml            String                                      3
     77  utils.js                 Array                                       3
     78  utils.js                 String                                      3
     79  browser.js               Call                                        4
     80  func_clock.html          Date                                        4
     81  webdeveloper.js          Function                                    4
     82  <null>                   XPCNativeWrapper                            5
     83  browser.js               String                                      6
     84  <null>                   Object                                      7
     85  tabbrowser.xml           Function                                    7
     86  <null>                   XPC_WN_ModsAllowed_Proto_JSClass            8
     87  <null>                   Constructor                                 9
     88  browser.xml              Function                                    9
     89  firebug.js               Function                                   10
     90  <null>                   MouseEvent                                 12
     91  <null>                   XPCWrappedNative_NoHelper                  13
     92  <null>                   KeyboardEvent                              14
     93  <null>                   XULElement                                 16
     94  <null>                   Event                                      29
     95  browser.js               Function                                   33
     96  consoleAPI.js            Function                                   33
     97  <null>                   JavaPackage                                41
     98  scrollbar.xml            Function                                   61
     99  <null>                   Function                                  211
    100 
    101