| java.lang.Object org.eclipse.ui.internal.ide.application.IDEIdleHelper
IDEIdleHelper | class IDEIdleHelper (Code) | | The idle helper detects when the system is idle in order to perform garbage
collection in a way that minimizes impact on responsiveness of the UI.
The algorithm for determining when to perform a garbage collection
is as follows:
- Never gc if there is a test harness present
- Don't gc if background jobs are running
- Don't gc if the keyboard or mouse have been active within IDLE_INTERVAL
- Don't gc if there has been a GC within the minimum gc interval (system property PROP_GC_INTERVAL)
- After a gc, don't gc again until (duration * GC_DELAY_MULTIPLIER) has elapsed.
For example, if a GC takes 100ms and the multiplier is 60, don't gc for at least five seconds
- Never gc again if any single gc takes longer than system property PROP_GC_MAX
|
Field Summary | |
protected IWorkbenchConfigurer | configurer |
Constructor Summary | |
| IDEIdleHelper(IWorkbenchConfigurer aConfigurer) |
Method Summary | |
void | shutdown() Shuts down the idle helper, removing any installed listeners, etc. |
configurer | protected IWorkbenchConfigurer configurer(Code) | | |
IDEIdleHelper | IDEIdleHelper(IWorkbenchConfigurer aConfigurer)(Code) | | Creates and initializes the idle handler
Parameters: aConfigurer - The workbench configurer. |
shutdown | void shutdown()(Code) | | Shuts down the idle helper, removing any installed listeners, etc.
|
|
|