[ruby-cvs:71933] ko1:r64841 (trunk): refactoring debug_counter.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Wed Sep 26 03:13:30 JST 2018


ko1	2018-09-26 03:13:29 +0900 (Wed, 26 Sep 2018)

  New Revision: 64841

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64841

  Log:
    refactoring debug_counter.
    
    * debug_counter.h: add comments for each counters.
    
    * debug_counter.h: add some counters (see added comments for details).
      * obj_newobj
      * obj_newobj_slowpath
      * obj_newobj_wb_unprotected
      * obj_hash_empty
      * obj_hash_under4
      * obj_hash_ge4
      * obj_hash_ge8
      * heap_xmalloc
      * heap_xrealloc
      * heap_xfree
    
    * gc.c: add some debug counters (see the above list).
    
    * debug_counter.c (rb_debug_counter_show_results): accept
      a header message.
    
    * signal.c (ruby_default_signal): show debug counter results
      and malloc info (rb_malloc_info_show_results()) before
      SIGNAL exit.

  Modified files:
    trunk/debug_counter.c
    trunk/debug_counter.h
    trunk/gc.c
    trunk/signal.c


More information about the ruby-cvs mailing list