[ruby-cvs:51037] tmm1:r43893 (trunk): * gc.c: Expose details about last garbage collection via GC.stat.

tmm1 at ruby-lang.org tmm1 at ruby-lang.org
Thu Nov 28 16:40:39 JST 2013


tmm1	2013-11-28 16:40:35 +0900 (Thu, 28 Nov 2013)

  New Revision: 43893

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43893

  Log:
    * gc.c: Expose details about last garbage collection via GC.stat.
    * gc.c (gc_stat): Add :last_collection_flags for reason/trigger/type of
      last GC run.
    * gc.c (gc_prof_sweep_timer_stop): Record HAVE_FINALIZE GPR even
      without GC_PROFILE_MORE_DETAIL.
    * gc.c (gc_profile_flags): Add GC::Profiler.decode_flags to make sense
      of GC.stat[:last_collection_flags]
    * test/ruby/test_gc.rb (class TestGc): Test for above.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
    trunk/test/ruby/test_gc.rb


More information about the ruby-cvs mailing list