/[eiffelstudio]/FreeELKS/trunk/library/kernel/gc_info.e
ViewVC logotype

Diff of /FreeELKS/trunk/library/kernel/gc_info.e

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 91476 by ericb, Sun Feb 26 21:58:36 2006 UTC revision 91477 by ericb, Sun Jan 14 09:47:13 2007 UTC
# Line 1  Line 1 
1  indexing  indexing
2    
3          description: "[          description: "[
4                  Garbage collector statistics.                          Garbage collector statistics.
5                  This class may be used as ancestor by classes needing its facilities.                          This class may be used as ancestor by classes needing its facilities.
6                  Time accounting is relevant only if `enable_time_accounting'                          Time accounting is relevant only if `enable_time_accounting'
7                  (from MEMORY) has been called.                          (from MEMORY) has been called.
8                  ]"                  ]"
9          library: "Free implementation of ELKS library"          library: "Free implementation of ELKS library"
10          copyright: "Copyright (c) 1986-2004, Eiffel Software and others"          copyright: "Copyright (c) 1986-2004, Eiffel Software and others"
# Line 38  feature -- Initialization Line 39  feature -- Initialization
39                  ensure                  ensure
40                          type_set: type = memory                          type_set: type = memory
41                  end                  end
42                    
43          update (memory: INTEGER) is          update (memory: INTEGER) is
44                          -- Fill in statistics for `memory' type                          -- Fill in statistics for `memory' type
45                  require                  require
# Line 184  feature {NONE} -- Implementation Line 185  feature {NONE} -- Implementation
185                          -- statistics frozen at the time of this call.                          -- statistics frozen at the time of this call.
186                  external                  external
187                          "C use %"eif_memory.h%""                          "C use %"eif_memory.h%""
188                    alias
189                            "eif_gc_stat"
190                  end                  end
191    
192          structure_size: INTEGER is          structure_size: INTEGER is
# Line 191  feature {NONE} -- Implementation Line 194  feature {NONE} -- Implementation
194                  do                  do
195                          Result := c_sizeof_gacstat                          Result := c_sizeof_gacstat
196                  end                  end
197                    
198  feature {NONE} -- C externals  feature {NONE} -- C externals
199    
200          c_sizeof_gacstat: INTEGER is          c_sizeof_gacstat: INTEGER is
# Line 209  feature {NONE} -- C externals Line 212  feature {NONE} -- C externals
212                  alias                  alias
213                          "return ((struct gacstat *) $a_ptr)->count;"                          "return ((struct gacstat *) $a_ptr)->count;"
214                  end                  end
215                    
216          c_mem_used (a_ptr: POINTER): INTEGER is          c_mem_used (a_ptr: POINTER): INTEGER is
217                          -- Access `mem_used' data member of `a_ptr' struct.                          -- Access `mem_used' data member of `a_ptr' struct.
218                  external                  external

Legend:
Removed from v.91476  
changed lines
  Added in v.91477

  ViewVC Help
Powered by ViewVC 1.1.23