mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* 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
This commit is contained in:
		
							parent
							
								
									49e9f42703
								
							
						
					
					
						commit
						c56ef25cf9
					
				
					 2 changed files with 11 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,9 @@
 | 
			
		|||
Thu Sep  4 19:40:50 2008  Narihiro Nakamura  <authorNari@gmail.com>
 | 
			
		||||
 | 
			
		||||
	* gc.c (gc_profile_record_get): to static function.
 | 
			
		||||
	(gc_profile_result): ditto.
 | 
			
		||||
	(gc_profile_report): ditto.
 | 
			
		||||
 | 
			
		||||
Thu Sep  4 19:20:24 2008  Tanaka Akira  <akr@fsij.org>
 | 
			
		||||
 | 
			
		||||
	* include/ruby/io.h (rb_io_enc_t): rename flags to ecflags.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										9
									
								
								gc.c
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue