public String getInfo() { return version()+System.getProperty("os.name")+" "+System.getProperty("os.version")+"; "+IJ.freeMemory(); }
public String getInfo() { return version()+System.getProperty("os.name")+" "+System.getProperty("os.version")+"; "+IJ.freeMemory(); }
/** Returns the names of all variables and functions with human-readable annotations */ public String[] getVariables() { int nImages = WindowManager.getImageCount(); if (nImages>0) showDebugFunctions = true; int nFunctions = showDebugFunctions?3:0; String[] variables = new String[topOfStack+1+nFunctions]; if (showDebugFunctions) { String title = null; if (nImages>0) { ImagePlus imp = WindowManager.getCurrentImage(); if (imp!=null) title = imp.getTitle(); } if (debugMode==Debugger.STEP) System.gc(); variables[0] = "Memory\t" + IJ.freeMemory(); variables[1] = "nImages()\t" + nImages; variables[2] = "getTitle()\t" + (title!=null?"\""+title+"\"":""); } String name; int index = nFunctions; for (int i=0; i<=topOfStack; i++) { name = pgm.table[stack[i].symTabIndex].str; if (i<=topOfGlobals) name += " (g)"; variables[index++] = name + "\t" + stack[i]; } return variables; }
public void mousePressed(MouseEvent e) { Undo.reset(); if (!Prefs.noClickToGC) System.gc(); IJ.showStatus(version()+IJ.freeMemory()); if (IJ.debugMode) IJ.log("Windows: "+WindowManager.getWindowCount()); }
/** Returns the names of all variables and functions with human-readable annotations */ public String[] getVariables() { int nImages = WindowManager.getImageCount(); if (nImages>0) showDebugFunctions = true; int nFunctions = showDebugFunctions?3:0; String[] variables = new String[topOfStack+1+nFunctions]; if (showDebugFunctions) { String title = null; if (nImages>0) { ImagePlus imp = WindowManager.getCurrentImage(); if (imp!=null) title = imp.getTitle(); } if (debugMode==Debugger.STEP) System.gc(); variables[0] = "Memory\t" + IJ.freeMemory(); variables[1] = "nImages()\t" + nImages; variables[2] = "getTitle()\t" + (title!=null?"\""+title+"\"":""); } String name; int index = nFunctions; for (int i=0; i<=topOfStack; i++) { name = pgm.table[stack[i].symTabIndex].str; if (i<=topOfGlobals) name += " (g)"; variables[index++] = name + "\t" + stack[i]; } return variables; }
public void mousePressed(MouseEvent e) { Undo.reset(); if (!Prefs.noClickToGC) System.gc(); IJ.showStatus(version()+IJ.freeMemory()); if (IJ.debugMode) IJ.log("Windows: "+WindowManager.getWindowCount()); }
if (verbose) { System.out.println("ImageJ> Version:" + IJ.getVersion()); System.out.println("ImageJ> Memory:" + IJ.freeMemory() ); System.out.println("ImageJ> Directory plugins: " + (IJ.getDirectory("plugins")==null?"Not specified":IJ.getDirectory("plugins"))); System.out.println("ImageJ> Directory macros: " + (IJ.getDirectory("macros")==null?"Not specified":IJ.getDirectory("macros")));
list.add(" Current dir: "+OpenDialog.getDefaultDirectory()); list.add(" Sample images dir: "+Prefs.getImagesURL()); list.add(" Memory in use: "+IJ.freeMemory()); Dimension d = IJ.getScreenSize(); list.add(" Screen size: " + d.width + "x" + d.height);
list.add(" Current dir: "+OpenDialog.getDefaultDirectory()); list.add(" Sample images dir: "+Prefs.getImagesURL()); list.add(" Memory in use: "+IJ.freeMemory()); Dimension d = IJ.getScreenSize(); list.add(" Screen size: " + d.width + "x" + d.height);
IJ.log(getStringArg()); else if (name.equals("freeMemory")) {interp.getParens(); return IJ.freeMemory();} else if (name.equals("currentMemory")) {interp.getParens(); return ""+IJ.currentMemory();}
IJ.log(getStringArg()); else if (name.equals("freeMemory")) {interp.getParens(); return IJ.freeMemory();} else if (name.equals("currentMemory")) {interp.getParens(); return ""+IJ.currentMemory();}
String freeMemory = IJ.freeMemory(); System.out.println("free memory is: "+freeMemory);
text[3] = IJ.URL; text[4] = "Java "+System.getProperty("java.version")+(IJ.is64Bit()?" (64-bit)":" (32-bit)"); text[5] = IJ.freeMemory(); text[6] = "ImageJ is in the public domain"; ImageProcessor ip = null;
text[3] = IJ.URL; text[4] = "Java "+System.getProperty("java.version")+(IJ.is64Bit()?" (64-bit)":" (32-bit)"); text[5] = IJ.freeMemory(); text[6] = "ImageJ is in the public domain"; ImageProcessor ip = null;
+ size2+" stack.\n \n" + "Memory available: "+available/(1024*1024)+"MB\n" + "Memory in use: "+IJ.freeMemory()+"\n \n" + "More information can be found in the \"Memory\"\n" + "sections of the ImageJ installation notes at\n"
+ size2+" stack.\n \n" + "Memory available: "+available/(1024*1024)+"MB\n" + "Memory in use: "+IJ.freeMemory()+"\n \n" + "More information can be found in the \"Memory\"\n" + "sections of the ImageJ installation notes at\n"