note description: "The objects whichs the whole Memory Analyzer System all use" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class MA_SYSTEM_UTIL_SINGLETON inherit MA_SINGLETON_FACTORY feature -- System functions collect -- Perform a GC cycle. do memory.full_collect memory.full_coalesce memory.full_collect end toggle_gc (a_button: EV_TOOL_BAR_TOGGLE_BUTTON) -- Disable or enable GC require a_button_not_void: a_button /= Void do if a_button.is_selected then memory.collection_off a_button.set_pixmap (icons.gabage_clean_disable_icon) a_button.set_tooltip ("Enable GC") else memory.collection_on a_button.set_pixmap (icons.gabage_clean_enable_icon) a_button.set_tooltip ("Disable GC") end ensure collection_state_changed: old memory.collecting implies not memory.collecting button_pixmap_changed: a_button.pixmap /= old a_button.pixmap button_tooltip_changed: a_button.tooltip /= old a_button.tooltip end note copyright: "Copyright (c) 1984-2006, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end