summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-04 10:47:39 +0000
committernari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-04 10:47:39 +0000
commitc56ef25cf9b6d923f2af45e536c121388c3aab75 (patch)
tree9ae8f8529c4667710a95be8be4f0b7cb996b73f6 /gc.c
parent49e9f42703e4d67ab3a2e9657efe83b297e87b01 (diff)
* gc.c (gc_profile_record_get): to static function.
(gc_profile_result): ditto. (gc_profile_report): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gc.c b/gc.c
index c7d458af93..6ed9bbc6f9 100644
--- a/gc.c
+++ b/gc.c
@@ -2682,7 +2682,7 @@ gc_malloc_allocations(VALUE self)
}
#endif
-VALUE
+static VALUE
gc_profile_record_get(void)
{
VALUE prof;
@@ -2729,14 +2729,15 @@ gc_profile_record_get(void)
* 1 0.012 159240 212940 10647 0.00000000000001530000
*/
-VALUE
+static VALUE
gc_profile_result(void)
{
rb_objspace_t *objspace = &rb_objspace;
- VALUE record = gc_profile_record_get();
+ VALUE record;
VALUE result;
int i;
+ record = gc_profile_record_get();
if (objspace->profile.run && objspace->profile.count) {
result = rb_sprintf("GC %d invokes.\n", NUM2INT(gc_count(0)));
rb_str_cat2(result, "Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC Time(ms)\n");
@@ -2780,7 +2781,7 @@ gc_profile_result(void)
*
*/
-VALUE
+static VALUE
gc_profile_report(int argc, VALUE *argv, VALUE self)
{
VALUE out;