note
	description: "[
		Garbage collector statistics.
		This class may be used as ancestor by classes needing its facilities.
		Time accounting is relevant only if enable_time_accounting 
		(from MEMORY) has been called.
	]"
	library: "Free implementation of ELKS library"
	status: "See notice at end of class."
	legal: "See notice at end of class."
	date: "$Date: 2017-12-26 18:35:31 +0000 (Tue, 26 Dec 2017) $"
	revision: "$Revision: 101217 $"

class interface
	GC_INFO

create 
	make

feature -- Initialization

	make (memory: INTEGER_32)
			-- Fill in statistics for memory type
		require
			memory_valid: memory = Incremental_collector or memory = Full_collector
		ensure
			type_set: type = memory

	update (memory: INTEGER_32)
			-- Fill in statistics for memory type
		require
			memory_valid: memory = Incremental_collector or memory = Full_collector
		ensure
			type_set: type = memory
	
feature -- Access

	type: INTEGER_32
			-- Collector type (Full, Collect),
			-- for type before last call to update

	cycle_count: INTEGER_32
			-- Number of collection cycles for type
			-- before last call to update

	memory_used: INTEGER_32
			-- Total number of bytes used (counting overhead)
			-- after last cycle for type before last
			-- call to update

	collected: INTEGER_32
			-- Number of bytes collected by the last cycle,
			-- for type before last call to update

	collected_average: INTEGER_32
			-- Average number of bytes collected by a cycle,
			-- for type before last call to update

	real_time: INTEGER_32
			-- Real time in centi-seconds used by last cycle
			-- for type, before last call to update;
			-- this may not be accurate on systems which do not
			-- provide a sub-second accuracy clock (typically
			-- provided on BSD).

	real_time_average: INTEGER_32
			-- Average amount of real time, in centi-seconds,
			-- spent in collection cycle,
			-- for type before last call to update

	real_interval_time: INTEGER_32
			-- Real interval time (as opposed to CPU time) between
			-- two automatically raised cycles, in centi-seconds,
			-- for type before last call to update

	real_interval_time_average: INTEGER_32
			-- Average real interval time between two automatic
			-- cycles, in centi-seconds,
			-- for type before last call to update

	cpu_total_time: REAL_64
			-- Amount of application CPU time, in seconds, for type before last call to update

	cpu_time: REAL_64
			-- Amount of CPU time, in seconds, spent in cycle,
			-- for type before last call to update

	cpu_time_average: REAL_64
			-- Average amount of CPU time spent in cycle,
			-- in seconds, for type before last call to update

	cpu_interval_time: REAL_64
			-- Amount of CPU time elapsed since between last
			-- and penultimate cycles for type before
			-- last call to update

	cpu_interval_time_average: REAL_64
			-- Average amount of CPU time between two cycles,
			-- for type before last call to update

	sys_total_time: REAL_64
			-- Amount of application kernel time, in seconds, for type before last call to update

	sys_time: REAL_64
			-- Amount of kernel time, in seconds, spent in cycle,
			-- for type before last call to update

	sys_time_average: REAL_64
			-- Average amount of kernel time spent in cycle,
			-- for type before last call to update

	sys_interval_time: REAL_64
			-- Amount of kernel time elapsed since between
			-- the last and the penultimate cycle,
			-- for type before last call to update

	sys_interval_time_average: REAL_64
			-- Average amount of kernel time between two cycles,
			-- for type before last call to update
	
feature -- Implementation

	structure_size: INTEGER_32
			-- Size of underlying C structure.
	
note
	copyright: "Copyright (c) 1984-2017, Eiffel Software and others"
	license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
	source: "[
		Eiffel Software
		5949 Hollister Ave., Goleta, CA 93117 USA
		Telephone 805-685-1006, Fax 805-685-6869
		Website http://www.eiffel.com
		Customer support http://support.eiffel.com
	]"

end -- class GC_INFO

Generated by ISE EiffelStudio