jfig.utils
Class MemoryUsageTest

java.lang.Object
  extended byjfig.utils.MemoryUsageTest
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class MemoryUsageTest
extends java.lang.Object
implements java.awt.event.ActionListener


Field Summary
(package private) static java.lang.String S_ATTRIBS
           
(package private) static java.lang.String S_DOUBLE
           
(package private) static java.lang.String S_POINTS
           
(package private) static java.lang.String S_POLYS
           
(package private) static java.lang.String S_SPLINES
           
(package private) static java.lang.String S_TEXTS
           
(package private)  java.util.Vector storage
           
(package private)  java.awt.TextField tf
           
 
Constructor Summary
MemoryUsageTest()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void allocDoubles()
           
 void allocFigAttribs()
           
 void allocFigPolylines()
           
 void allocFigTexts()
           
 void allocFigXSplines()
           
 void allocPoints()
           
 int getCount()
           
 long getTotalMemory()
           
static void main(java.lang.String[] argv)
           
static void msg(java.lang.String s)
           
 void printMemoryUsage(int count, long bytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

S_POINTS

static final java.lang.String S_POINTS
See Also:
Constant Field Values

S_DOUBLE

static final java.lang.String S_DOUBLE
See Also:
Constant Field Values

S_ATTRIBS

static final java.lang.String S_ATTRIBS
See Also:
Constant Field Values

S_TEXTS

static final java.lang.String S_TEXTS
See Also:
Constant Field Values

S_POLYS

static final java.lang.String S_POLYS
See Also:
Constant Field Values

S_SPLINES

static final java.lang.String S_SPLINES
See Also:
Constant Field Values

tf

java.awt.TextField tf

storage

java.util.Vector storage
Constructor Detail

MemoryUsageTest

public MemoryUsageTest()
Method Detail

allocPoints

public void allocPoints()

allocDoubles

public void allocDoubles()

allocFigAttribs

public void allocFigAttribs()

allocFigTexts

public void allocFigTexts()

allocFigPolylines

public void allocFigPolylines()

allocFigXSplines

public void allocFigXSplines()

getCount

public int getCount()

getTotalMemory

public long getTotalMemory()

printMemoryUsage

public void printMemoryUsage(int count,
                             long bytes)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

msg

public static void msg(java.lang.String s)

main

public static void main(java.lang.String[] argv)