diff options
| author | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-25 11:10:39 +0000 |
|---|---|---|
| committer | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-25 11:10:39 +0000 |
| commit | 3dea88f3e5a67c24a3c37db0c0561f761f68107a (patch) | |
| tree | cfbeae6ea50bf0bfe230884a003a3a8df2b0f405 | |
| parent | ff25801e9b4535e729398e87b3410049aa4d91d2 (diff) | |
* gc.c (gc_profile_result): bug fix. The millisecond is 1/1000.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | gc.c | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Sat Oct 25 20:05:22 2008 Narihiro Nakamura <authorNari@gmail.com> + + * gc.c (gc_profile_result): bug fix. The millisecond is 1/1000. + Sat Oct 25 11:12:40 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp> * ruby.c (usage): updated the description of -E option. @@ -2724,7 +2724,7 @@ gc_profile_result(void) NUM2INT(rb_hash_aref(r, ID2SYM(rb_intern("HEAP_USE_SIZE")))), NUM2INT(rb_hash_aref(r, ID2SYM(rb_intern("HEAP_TOTAL_SIZE")))), NUM2INT(rb_hash_aref(r, ID2SYM(rb_intern("HEAP_TOTAL_OBJECTS")))), - NUM2DBL(rb_hash_aref(r, ID2SYM(rb_intern("GC_TIME"))))*100); + NUM2DBL(rb_hash_aref(r, ID2SYM(rb_intern("GC_TIME"))))*1000); } #if GC_PROFILE_MORE_DETAIL rb_str_cat2(result, "\n\n"); @@ -2737,8 +2737,8 @@ gc_profile_result(void) NUM2INT(rb_hash_aref(r, ID2SYM(rb_intern("ALLOCATE_LIMIT")))), NUM2INT(rb_hash_aref(r, ID2SYM(rb_intern("HEAP_USE_SLOTS")))), rb_hash_aref(r, ID2SYM(rb_intern("HAVE_FINALIZE")))? "true" : "false", - NUM2DBL(rb_hash_aref(r, ID2SYM(rb_intern("GC_MARK_TIME"))))*100, - NUM2DBL(rb_hash_aref(r, ID2SYM(rb_intern("GC_SWEEP_TIME"))))*100); + NUM2DBL(rb_hash_aref(r, ID2SYM(rb_intern("GC_MARK_TIME"))))*1000, + NUM2DBL(rb_hash_aref(r, ID2SYM(rb_intern("GC_SWEEP_TIME"))))*1000); } #endif } |
