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

Method currentMemory

ij/src/main/java/ij/IJ.java:1019–1023  ·  view source on GitHub ↗

Returns the amount of memory currently being used by ImageJ.

()

Source from the content-addressed store, hash-verified

1017
1018 /** Returns the amount of memory currently being used by ImageJ. */
1019 public static long currentMemory() {
1020 long freeMem = Runtime.getRuntime().freeMemory();
1021 long totMem = Runtime.getRuntime().totalMemory();
1022 return totMem-freeMem;
1023 }
1024
1025 /** Returns the maximum amount of memory available to ImageJ or
1026 zero if ImageJ is unable to determine this limit. */

Callers 5

freeMemoryMethod · 0.95
doIJMethod · 0.95
getAvailableMemoryMethod · 0.95
updatePlotMethod · 0.95
createStackMethod · 0.95

Calls 2

freeMemoryMethod · 0.80
getRuntimeMethod · 0.45

Tested by

no test coverage detected