ij.plugin
Class MemoryMonitor

java.lang.Object
  extended by ij.plugin.MemoryMonitor
All Implemented Interfaces:
PlugIn

public class MemoryMonitor
extends java.lang.Object
implements PlugIn

This plugin continuously plots ImageJ's memory utilization. It could also be used as a starting point for a video acquisition plugin. Hold down the alt/option key when selecting the Monitor Memory command and the plugin will use a 640x480 window and display the frame rate. Click on the status bar in the ImageJ window to force the JVM to do garbage collection.


Field Summary
(package private)  long elapsedTime
           
(package private)  long fps
           
(package private)  int frames
           
(package private)  int height
           
(package private)  ij.gui.ImageCanvas ic
           
(package private)  int index
           
(package private)  ImageProcessor ip
           
(package private)  int max
           
(package private)  long maxMemory
           
(package private)  float[] mem
           
(package private)  long startTime
           
(package private)  long value
           
(package private)  int width
           
 
Constructor Summary
MemoryMonitor()
           
 
Method Summary
 void run(java.lang.String arg)
          This method is called when the plugin is loaded.
(package private)  void showValue()
           
(package private)  void updatePixels()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

width

int width

height

int height

fps

long fps

startTime

long startTime

elapsedTime

long elapsedTime

ip

ImageProcessor ip

frames

int frames

ic

ij.gui.ImageCanvas ic

mem

float[] mem

index

int index

value

long value

max

int max

maxMemory

long maxMemory
Constructor Detail

MemoryMonitor

public MemoryMonitor()
Method Detail

run

public void run(java.lang.String arg)
Description copied from interface: PlugIn
This method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt.

Specified by:
run in interface PlugIn

showValue

void showValue()

updatePixels

void updatePixels()