aboutsummaryrefslogtreecommitdiffstats
path: root/debug_counter.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-26 07:28:04 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-26 07:28:04 +0000
commitee819b0ddb0cbeb9c587e743204988b2e05e7c5d (patch)
tree7904e336b0b07c422cf4d56946d80fd28f7ba735 /debug_counter.h
parentbc2d493e0dd63e3a7d99a4acf77dbc6386cc6f56 (diff)
downloadruby-ee819b0ddb0cbeb9c587e743204988b2e05e7c5d.tar.gz
add some debug counters.
* debug_counter.h: new debug counters obj_promote, obj_wb_unprotect and obj_struct_(ptr|embed) are added. * gc.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'debug_counter.h')
-rw-r--r--debug_counter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/debug_counter.h b/debug_counter.h
index 83da2aa765..35e75d06f7 100644
--- a/debug_counter.h
+++ b/debug_counter.h
@@ -81,6 +81,8 @@ RB_DEBUG_COUNTER(lvar_set_slowpath)
* * obj_newobj_slowpath: newobj with slowpath counts
* * obj_newobj_wb_unprotected: newobj for wb_unprotecte.
* * obj_free: obj_free() counts
+ * * obj_promote: promoted counts (oldgen)
+ * * obj_wb_unprotect: wb unprotect counts
*
* * obj_[type]_[attr]: free'ed counts for each type.
* * [type]
@@ -88,6 +90,7 @@ RB_DEBUG_COUNTER(lvar_set_slowpath)
* * _str: T_STRING
* * _ary: T_ARRAY
* * _hash: T_HASH
+ * * _struct: T_STRUCT
*
* * [attr]
* * _ptr: R?? is not embed.
@@ -105,6 +108,8 @@ RB_DEBUG_COUNTER(obj_newobj)
RB_DEBUG_COUNTER(obj_newobj_slowpath)
RB_DEBUG_COUNTER(obj_newobj_wb_unprotected)
RB_DEBUG_COUNTER(obj_free)
+RB_DEBUG_COUNTER(obj_promote)
+RB_DEBUG_COUNTER(obj_wb_unprotect)
RB_DEBUG_COUNTER(obj_obj_ptr)
RB_DEBUG_COUNTER(obj_obj_embed)
@@ -123,6 +128,9 @@ RB_DEBUG_COUNTER(obj_hash_under4)
RB_DEBUG_COUNTER(obj_hash_ge4)
RB_DEBUG_COUNTER(obj_hash_ge8)
+RB_DEBUG_COUNTER(obj_struct_ptr)
+RB_DEBUG_COUNTER(obj_struct_embed)
+
/* heap function counts
*
* * heap_xmalloc/realloc/xfree: call counts