We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ae27df commit a826936Copy full SHA for a826936
gc/mmtk.c
@@ -1128,7 +1128,14 @@ rb_gc_impl_get_total_time(void *objspace_ptr)
1128
return objspace->total_gc_time;
1129
}
1130
1131
-size_t rb_gc_impl_gc_count(void *objspace_ptr) { }
+size_t
1132
+rb_gc_impl_gc_count(void *objspace_ptr)
1133
+{
1134
+ struct objspace *objspace = objspace_ptr;
1135
+
1136
+ return objspace->gc_count;
1137
+}
1138
1139
VALUE rb_gc_impl_latest_gc_info(void *objspace_ptr, VALUE key) { }
1140
1141
enum gc_stat_sym {
0 commit comments