void function ( long arg0 ) { for ( long loc0 = 0 ; loc0 < arg0 ; ++ loc0 ) { heapSpace . add ( ( Object ) new byte [ ONE_MB ] ) ; } }
increase heap usage by current process by the given amount . this is done by creating objects each of size 1mb . concode_field_sep long targetHeapUsageInMB concode_elem_sep ArrayList<Object> heapSpace concode_elem_sep String HEAP_EMULATION_PROGRESS_INTERVAL concode_elem_sep boolean enabled concode_elem_sep float heapLoadRatio concode_elem_sep float DEFAULT_MIN_FREE_HEAP_RATIO concode_elem_sep float minFreeHeapRatio concode_elem_sep String MIN_HEAP_FREE_RATIO concode_elem_sep HeapUsageEmulatorCore emulatorCore concode_elem_sep int ONE_MB concode_elem_sep float DEFAULT_EMULATION_PROGRESS_INTERVAL concode_elem_sep float prevEmulationProgress concode_elem_sep float DEFAULT_HEAP_LOAD_RATIO concode_elem_sep Progressive progress concode_elem_sep float emulationInterval concode_elem_sep String HEAP_LOAD_RATIO concode_field_sep long getTotalHeapUsageInMB concode_elem_sep void reset concode_elem_sep void reset concode_elem_sep long getMaxHeapUsageInMB concode_elem_sep void initialize concode_elem_sep void initialize concode_elem_sep void initialize concode_elem_sep void emulate concode_elem_sep float getProgress