Performs some garbage collection. GC behavior in Java is a pretty complex task. Still, garbage collection gets more probable when being called several times. @param count number of times to execute garbage collection
(final int count)
| 134 | * @param count number of times to execute garbage collection |
| 135 | */ |
| 136 | public static void gc(final int count) { |
| 137 | for(int c = 0; c < count; ++c) System.gc(); |
| 138 | } |
| 139 | |
| 140 | /** |
| 141 | * Returns the current memory consumption in bytes. |