MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / maxMemory

Method maxMemory

ij/src/main/java/ij/IJ.java:1027–1034  ·  view source on GitHub ↗

Returns the maximum amount of memory available to ImageJ or zero if ImageJ is unable to determine this limit.

()

Source from the content-addressed store, hash-verified

1025 /** Returns the maximum amount of memory available to ImageJ or
1026 zero if ImageJ is unable to determine this limit. */
1027 public static long maxMemory() {
1028 if (maxMemory==0L) {
1029 Memory mem = new Memory();
1030 maxMemory = mem.getMemorySetting();
1031 if (maxMemory==0L) maxMemory = mem.maxMemory();
1032 }
1033 return maxMemory;
1034 }
1035
1036 public static void showTime(ImagePlus imp, long start, String str) {
1037 showTime(imp, start, str, 1);

Callers 9

freeMemoryMethod · 0.95
doIJMethod · 0.95
runMethod · 0.95
getAvailableMemoryMethod · 0.95
MemoryMonitorClass · 0.95
createStackMethod · 0.95
outOfMemoryMethod · 0.45

Calls 2

getMemorySettingMethod · 0.95
maxMemoryMethod · 0.95

Tested by 1