Home | History | Annotate | Line # | Download | only in Examples
      1  1.1  christos The following are examples of running rb_objnew.d.  
      2  1.1  christos 
      3  1.1  christos The rb_objnew.d script reports the new Ruby objects created (by filename and
      4  1.1  christos class) while the script is tracing.   Here we see it running while 
      5  1.1  christos Code/Ruby/func_abc.rb is executed.
      6  1.1  christos 
      7  1.1  christos # rb_objnew.d
      8  1.1  christos Tracing... Hit Ctrl-C to end.
      9  1.1  christos ^C
     10  1.1  christos  FILE                     CLASS                                   COUNT
     11  1.1  christos  .                        NoMemoryError                               1
     12  1.1  christos  .                        SystemStackError                            1
     13  1.1  christos  .                        ThreadGroup                                 1
     14  1.1  christos  .                        fatal                                       1
     15  1.1  christos  .                        Object                                      3
     16  1.1  christos 
     17  1.1  christos Since this is a simple example, not many objects were allocated - a few
     18  1.1  christos for the ruby engine, and three of class Object. No file was associated
     19  1.1  christos with these allocations, as they may have been caused by Ruby engine startup,
     20  1.1  christos and not necessarily lines of code in the example program.
     21  1.1  christos 
     22