You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(73) |
Sep
(92) |
Oct
(9) |
Nov
(80) |
Dec
(60) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(92) |
Feb
(52) |
Mar
(71) |
Apr
(64) |
May
(53) |
Jun
(10) |
Jul
(111) |
Aug
(93) |
Sep
(134) |
Oct
|
Nov
|
Dec
|
From: Pavel V. <va...@us...> - 2002-07-15 21:45:09
|
Update of /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi In directory usw-pr-cvs1:/tmp/cvs-serv22677 Modified Files: VirtualMachineRef.java Log Message: method createSnapshot() accepts configuration class Index: VirtualMachineRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/VirtualMachineRef.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** VirtualMachineRef.java 2 Jul 2002 20:17:13 -0000 1.3 --- VirtualMachineRef.java 15 Jul 2002 21:45:06 -0000 1.4 *************** *** 23,27 **** public interface VirtualMachineRef extends VirtualMachineImageRef { Snapshot createSnapshot(); ! Snapshot createSnapshot( int filterMask); void suspendThreads(); void resumeThreads(); --- 23,27 ---- public interface VirtualMachineRef extends VirtualMachineImageRef { Snapshot createSnapshot(); ! Snapshot createSnapshot( Snapshot.Configuration conf ); void suspendThreads(); void resumeThreads(); *************** *** 101,104 **** --- 101,107 ---- /* * $Log$ + * Revision 1.4 2002/07/15 21:45:06 vachis + * method createSnapshot() accepts configuration class + * * Revision 1.3 2002/07/02 20:17:13 stolis * License added. |
From: Pavel V. <va...@us...> - 2002-07-15 21:41:01
|
Update of /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi In directory usw-pr-cvs1:/tmp/cvs-serv21377 Modified Files: Snapshot.java Log Message: Configuration class added Index: Snapshot.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/Snapshot.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Snapshot.java 2 Jul 2002 20:12:59 -0000 1.1 --- Snapshot.java 15 Jul 2002 21:40:58 -0000 1.2 *************** *** 31,34 **** --- 31,77 ---- */ public interface Snapshot extends VirtualMachineImageRef, Serializable { + + public static interface Configuration { + + //globals + /**Enables monitoring of Garbage Collector actions. */ + public void enableGCRuns( boolean enable ); + //public void enableArenas( boolean enable ); + /**Enables profiling of CPU. */ + public void enableCPU( boolean enable ); + /**Enables profiling of monitors. */ + public void enableMon( boolean enable ); + /**Enables profiling of allocations. */ + public void enableAlloc( boolean enable ); + + //roots + /** Sets which profilng modes will include distinguishing to types. + * Nowadays valid value of parameter is <code>Contstats.NONE </code>or + * <code>Contstats.ALLOC</code> + */ + public void includeTypes( int where ); + /** Sets which profilng modes will include distinguishing to thread. + * Valid value of parameter is any combination combination of <code> Contstats.CPU </code>, + * <code> Contstats.ALLOC </code> and <code> Contstats.MON </code> + */ + public void includeThread( int where ); + /** Sets granuality for give profilng mode. + * + *@param forWhat Profiling mode(s), combination of <code> Contstats.CPU </code>, + * <code> Contstats.ALLOC </code> and <code> Contstats.MON </code> + *@param granuality Granulity if <code> Constats.METHOD </code> or + * <code> Constats.TRACE </code> + */ + public void setGranuality( int forWhat, int granuality ); + + /** Sets simple trace filter for give profilng mode. + *@param forWhat Profiling mode(s), combination of <code> Contstats.CPU </code>, + * <code> Contstats.ALLOC </code> and <code> Contstats.MON </code> + *@param value Only tracess with grater value will be inlcuded in the snapshot. + */ + public void setSimpleTraceFilter( int forWhat, int value ); //alloc, mon, cpu + + //public void setRootFilter( int rootType, Filter filter ); //Thread, type, trace, method + } /** *************** *** 57,60 **** --- 100,106 ---- /* * $Log$ + * Revision 1.2 2002/07/15 21:40:58 vachis + * Configuration class added + * * Revision 1.1 2002/07/02 20:12:59 stolis * Snapshot. |
From: Pavel V. <va...@us...> - 2002-07-15 21:40:31
|
Update of /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi In directory usw-pr-cvs1:/tmp/cvs-serv21253 Modified Files: Constants.java Log Message: new ALL_MODES constant Index: Constants.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/Constants.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Constants.java 11 Jul 2002 16:11:23 -0000 1.1 --- Constants.java 15 Jul 2002 21:40:27 -0000 1.2 *************** *** 30,33 **** --- 30,34 ---- static final int ALLOC = 2; static final int MON = 4; + static final int ALL_MODES = Constants.CPU | Constants.MON | Constants.ALLOC; static final int TYPE = 8; |
From: Pavel V. <va...@us...> - 2002-07-15 21:04:04
|
Update of /cvsroot/javaprofiler/patches In directory usw-pr-cvs1:/tmp/cvs-serv6378 Added Files: readme.txt Log Message: readme for patches --- NEW FILE: readme.txt --- PATCHES TO NETBEANS IDE: ------------------------ 1) Compile openide directory. You have to add <NbDir>/lib/openide.jar to your CLASSPATH. Create jar file with name openide-javaprof.jar. 2) Compile java directory. You have to add former openide-javaprof.jar, <NbDir>/modules/java.jar and <NbDir>/lib/openide.jar to your CLASSPATH. Let the name of jar file is java-javaprof.jar The openide-javaprof.jar must be in CLASSPATH BEFORE <NbDir>/lib/openide.jar, that is crucial for successful compilation. It's difficult to garantee this if you are using netbeans IDE, because it has openide.jar added to system CLASSPATH. The easiest way is to use just javac e.g javac.exe -classpath .;d:\programs\netbeans\modules\java.jar;d:\programs\netbeans\lib\patches\openide-javaprofiler.jar;d:\programs\netbeans\lib\openide.jar org\netbeans\modules\java\JavaExecSupport.java 3) Copy openide-javaprof.jar to <NbDir>/lib/patches and than copy java-javaprof.jar to your <NbDir>/modules/patches/org-netbeans-modules-java directory. |
From: Lukas P. <pe...@us...> - 2002-07-15 15:40:18
|
Update of /cvsroot/javaprofiler/module In directory usw-pr-cvs1:/tmp/cvs-serv29504 Added Files: MANIFEST.MF Log Message: added separate manifest file --- NEW FILE: MANIFEST.MF --- Manifest-Version: 1.0 OpenIDE-Module-Name: Java Profiler OpenIDE-Module-Layer: net/sourceforge/javaprofiler/module/resources/mf-layer.xml Created-By: NetBeans OpenIDE-Module-Specification-Version: 1.0 OpenIDE-Module: net.sourceforge.javaprofiler/1 Name: net/sourceforge/javaprofiler/module/SnapshotDataLoader.class OpenIDE-Module-Class: Loader Name: net/sourceforge/javaprofiler/module/nodes/ProfilerNode.class Type: Environment OpenIDE-Module-Class: Node |
From: Lukas P. <pe...@us...> - 2002-07-15 11:20:25
|
Update of /cvsroot/javaprofiler/test/module In directory usw-pr-cvs1:/tmp/cvs-serv11628 Added Files: MainThreads.java Log Message: Test of a graphical component --- NEW FILE: MainThreads.java --- package net.sourceforge.javaprofiler.module.views; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.Timer; import java.util.TimerTask; import net.sourceforge.javaprofiler.jpiimpl.commun.*; import net.sourceforge.javaprofiler.jpiimpl.realtime.*; /** Example of using TimeSeriesGraph to show number of running threads. * Please supply the name of profiled computer as a command-line parameter. * Default: localhost * @author Lukas Petru */ public class MainThreads { static TimeSeriesGraph component; public static void main (String[] args) { connectAndRun(args); } private static void launchGui (final ImageR image, final IProf iprof) { JFrame frame=new JFrame("Main"); frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { iprof.stop(); System.exit(0); } }); component=new TimeSeriesGraph(); component.setBorder(BorderFactory.createLineBorder(Color.yellow)); component.setBackground(Color.white); frame.getContentPane().add(component, BorderLayout.NORTH); frame.pack(); frame.show(); // Using java.util.Timer instead that of swing, because we don't // want the task to run in the event-dispatching thread. Timer timer=new Timer(); TimerTask task=new TimerTask() { public void run() { final TimeSeriesModel m=component.getModel(); final int[] data=m.copyData(); // roll data System.arraycopy(data,1,data,0,data.length-1); image.refreshThreads(); // get last value int val=image.getThreads().size(); data[data.length-1]=val>0 ? val : 0; // set data in event-dispatching thread SwingUtilities.invokeLater(new Runnable() { public void run() { m.setData(data); } }); } }; timer.schedule(task, 1000, 500); } private static ImageR getImage(IProf iprof) { ImageR image=new ImageR(iprof, false); return image; } private static IProf connect (String hostName) { IProf iprof = new IProf(new CommunSetupSocket(CommunSetupSocket. CLIENT_MODE, hostName, 25595)); try { iprof.run(); return iprof; } catch (IProfException e) { System.out.println(e); return null; } } private static void connectAndRun(String[] arg) { String hostName = "localhost"; if (arg.length >= 1) hostName = arg[0]; System.out.println("host: " + hostName); IProf iprof = connect(hostName); if (iprof != null) { ImageR image=getImage(iprof); launchGui(image, iprof); } else System.out.println("Error connecting."); } } |
From: Lukas P. <pe...@us...> - 2002-07-15 11:18:34
|
Update of /cvsroot/javaprofiler/test/module In directory usw-pr-cvs1:/tmp/cvs-serv11358/module Log Message: Directory /cvsroot/javaprofiler/test/module added to the repository |
From: Lukas P. <pe...@us...> - 2002-07-15 11:16:33
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views In directory usw-pr-cvs1:/tmp/cvs-serv10532 Added Files: TimeSeriesGraph.java TimeSeriesModel.java Log Message: Graphical component --- NEW FILE: TimeSeriesGraph.java --- package net.sourceforge.javaprofiler.module.views; import javax.swing.*; import java.awt.*; import javax.swing.event.ChangeListener; import javax.swing.event.ChangeEvent; /** Draws values of a time series in a bar graph. * @author Lukas Petru */ public class TimeSeriesGraph extends JComponent implements ChangeListener { /** The model that holds time series data. */ private TimeSeriesModel model; /** This JLabel shows the maximum value of the graph. */ private JLabel maximum; /** This is the maximum value of the graph. */ private int maxValue; /** This JLabel shows the last value of the graph. */ private JLabel current; /** This is the last value shown in the graph. */ private int curValue; /** Constructs graph with default model. */ public TimeSeriesGraph() { setPreferredSize(new Dimension(40,40)); setOpaque(true); setModel(new TimeSeriesModel()); maximum=new JLabel("00"); add(maximum); maximum.setBackground(null); maximum.setOpaque(true); current=new JLabel("00"); add(current); current.setBackground(null); current.setOpaque(true); } /** Sets a new model. */ public void setModel(TimeSeriesModel seriesModel) { if (seriesModel==null) throw new RuntimeException("TimeSeriesModel must not be null"); TimeSeriesModel oldModel = getModel(); if (oldModel != null) { oldModel.removeChangeListener(this); } model=seriesModel; model.addChangeListener(this); } /** Returns current model. */ public TimeSeriesModel getModel() { return model; } /** Used for notification of a model data change. Internal function, not to be called by end users. */ public void stateChanged(ChangeEvent e) { repaint(); } /** Revalidates Label position. Called in case of size change, border change or label text change. */ private void revalidateLabel() { Insets insets = getInsets(); int mw=getWidth() - insets.left - insets.right; int mh=getHeight() - insets.top - insets.bottom; // maximum Dimension size=maximum.getPreferredSize(); int w=size.width; int h=size.height; if (w>mw) w=mw; if (h>mh) h=mh; maximum.setBounds(insets.left, insets.top, w, h); // current size=current.getPreferredSize(); w=size.width; h=size.height; if (w>mw) w=mw; if (h>mh) h=mh; current.setBounds(getWidth()-insets.right-w, insets.top, w, h); } /* Provides hook for revalidateLabel. */ public void revalidate() { revalidateLabel(); super.revalidate(); } /* Provides hook for revalidateLabel. */ public void setBounds(int x, int y, int width, int height) { Rectangle old=getBounds(); super.setBounds(x, y, width, height); if (! getBounds().equals(old)) revalidateLabel(); } /** Paints a bar graph. */ protected void paintComponent(Graphics g) { // draw background (component is always opaque) super.paintComponent(g); g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getHeight()); // compute usable area Insets insets = getInsets(); int currentWidth = getWidth() - insets.left - insets.right; int currentHeight = getHeight() - insets.top - insets.bottom; currentHeight -= current.getHeight(); int top=insets.top; int left=insets.left; // draw horizontal line g.setColor(getForeground()); int y1=insets.top + current.getHeight(); g.drawLine(insets.left, y1, currentWidth, y1); // retrieve data int[] data=model.getData(); // find largest value int max=1; for (int i=0; i<data.length; i++) { if (data[i] > max) max=data[i]; if (data[i] < 0) throw new RuntimeException("Illegal value in TimeSeriesModel"); } max=fineScale(max); if (maxValue != max) { maxValue=max; maximum.setText(String.valueOf(max)); revalidateLabel(); } int last=data[data.length-1]; if (curValue != last) { curValue=last; current.setText(String.valueOf(last)); revalidateLabel(); } final int sCnt=data.length; if (sCnt==0) throw new RuntimeException( "Array has zero length in TimeSeriesModel."); // draw final int advance=(currentWidth+1) / sCnt; int columnW=advance-1; if (columnW<1) columnW=1; int columnH; int x=getWidth() - insets.right - sCnt*advance + 1; final int y=getHeight() - insets.bottom; for (int i=0; i<sCnt; i++) { columnH=data[i]*currentHeight/max; g.fillRect(x, y-columnH, columnW, columnH); x+=advance; } } /** Returns round number greater or equal to argument. */ private int fineScale (int x) { int d=1; int i=x; while (i>=10) { i/=10; d*=10; } return (x+d-1)/d*d; } } --- NEW FILE: TimeSeriesModel.java --- package net.sourceforge.javaprofiler.module.views; import javax.swing.event.EventListenerList; import javax.swing.event.ChangeListener; import javax.swing.event.ChangeEvent; /** Holds data of a time series. Data are stored in an <code>int</code> array. * @author Lukas Petru */ public class TimeSeriesModel { /** Holds time series values. */ private int[] data; private transient ChangeEvent changeEvent = null; private EventListenerList listenerList = new EventListenerList(); public TimeSeriesModel() { // test data data=new int[20]; for (int i=0; i<10; i++) data[i]=i; for (int i=10; i<20; i++) data[i]=20-i; } /** Sets new time series values. */ public void setData(int[] series) { if (series==null) throw new IllegalArgumentException("null"); data=series; fireStateChanged(); } /** Returns current time series values. You must not modify the returned value. Returned value is not null. */ public int[] getData() { return data; } /** Returns a copy of time series values. You can freely modify returned value. */ public int[] copyData() { int[] r=new int[data.length]; System.arraycopy(data, 0, r, 0, data.length); return r; } // event firing /** * Adds a <code>ChangeListener</code> to the TimeSeriesModel. * * @param l the listener to add */ public void addChangeListener(ChangeListener l) { listenerList.add(ChangeListener.class, l); } /** * Removes a <code>ChangeListener</code> from the TimeSeriesModel. * * @param l the listener to remove */ public void removeChangeListener(ChangeListener l) { listenerList.remove(ChangeListener.class, l); } /** * Returns an array of all the change listeners * registered on this <code>TimeSeriesModel</code>. * * @return all of this model's <code>ChangeListener</code>s * or an empty * array if no change listeners are currently registered */ public ChangeListener[] getChangeListeners() { return (ChangeListener[])listenerList.getListeners( ChangeListener.class); } /** * Notifies all listeners that have registered interest for * notification on this event type. The event instance * is created lazily. * * @see EventListenerList */ protected void fireStateChanged() { // Guaranteed to return a non-null array Object[] listeners = listenerList.getListenerList(); // Process the listeners last to first, notifying // those that are interested in this event for (int i = listeners.length-2; i>=0; i-=2) { if (listeners[i]==ChangeListener.class) { // Lazily create the event: if (changeEvent == null) changeEvent = new ChangeEvent(this); ((ChangeListener)listeners[i+1]).stateChanged(changeEvent); } } } } |
From: Lukas P. <pe...@us...> - 2002-07-15 11:05:44
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views In directory usw-pr-cvs1:/tmp/cvs-serv8191/views Log Message: Directory /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views added to the repository |
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes In directory usw-pr-cvs1:/tmp/cvs-serv1722 Modified Files: SnapshotNode.java Added Files: AllocThreadMethodRefNode.java AllocThreadMethodsNode.java AllocThreadTraceRefNode.java AllocThreadTracesNode.java AllocTraceRefNode.java AllocTracesNode.java AllocTypeMethodRefNode.java AllocTypeMethodsNode.java AllocTypeThreadMethodRefNode.java AllocTypeThreadRefNode.java AllocTypeThreadTraceRefNode.java AllocTypeTraceRefNode.java AllocTypeTracesNode.java CPUThreadMethodRefNode.java CPUThreadMethodsNode.java CPUThreadTraceRefNode.java CPUThreadTracesNode.java CPUTraceRefNode.java CPUTracesNode.java CallTreeRefNode.java ClassRefNode.java ClassesNode.java FieldRefNode.java FieldsNode.java FrameRefNode.java FramesNode.java GCRunRefNode.java GCRunsNode.java MethodRefNode.java MethodsNode.java MonThreadMethodRefNode.java MonThreadMethodsNode.java MonThreadTraceRefNode.java MonThreadTracesNode.java MonTraceRefNode.java MonTracesNode.java ThreadGroupRefNode.java ThreadGroupsNode.java ThreadRefNode.java ThreadsNode.java TypeRefNode.java TypesNode.java Log Message: Nodes showing content of VirtualMahineImageRef. --- NEW FILE: AllocThreadMethodRefNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocThreadMethodRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocThreadMethodRef. * * @author Jan Stola */ public class AllocThreadMethodRefNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocThreadMethodRefNode.class); private AllocThreadMethodRef allocThreadMethod; public AllocThreadMethodRefNode(AllocThreadMethodRef allocThreadMethod) { super(new AllocThreadMethodRefChildren(allocThreadMethod)); this.allocThreadMethod=allocThreadMethod; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocThreadMethodRefNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName("PENDING"); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocThreadMethodRefNode.class); } public boolean canCopy() { return false; } protected Sheet createSheet() { Sheet sheet=super.createSheet(); Sheet.Set props=sheet.get(Sheet.PROPERTIES); if (props==null) { props=Sheet.createPropertiesSet(); sheet.put(props); } AllocStatProperty.addProperties(props, allocThreadMethod); return sheet; } /** * AllocThreadMethodRef children object. * * @author Jan Stola */ public static class AllocThreadMethodRefChildren extends Children.Keys { private AllocThreadMethodRef allocThreadMethod; public AllocThreadMethodRefChildren(AllocThreadMethodRef allocThreadMethod) { this.allocThreadMethod=allocThreadMethod; update(); } protected Node[] createNodes(Object key) { if ("component".equals(key)) { // type component return null; // return new Node[]{new ClassRefNode(bundle.getString("LBL_typeRefComponent")+' ', clazz)}; } else { // should not happen return null; } } public void update() { Collection keySet=new LinkedList(); // keySet.add("component"); setKeys(keySet); } } } /* * $Log: AllocThreadMethodRefNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocThreadMethodsNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocThreadMethodRef; import net.sourceforge.javaprofiler.jpi.MethodRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocThreadMethods. * * @author Jan Stola */ public class AllocThreadMethodsNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocThreadMethodsNode.class); private MethodRef method; public AllocThreadMethodsNode(MethodRef method) { super(new AllocThreadMethodsChildren(method)); this.method=method; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocThreadMethodsNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName(bundle.getString("LBL_allocThreadMethodsNode")); setShortDescription(bundle.getString("HINT_allocThreadMethodsNode")); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocThreadMethodsNode.class); } public boolean canCopy() { return false; } /** * AllocThreadMethods children object. * * @author Jan Stola */ public static class AllocThreadMethodsChildren extends Children.Keys { private MethodRef method=null; public AllocThreadMethodsChildren(MethodRef method) { this.method=method; update(); } protected Node[] createNodes(Object key) { if (key instanceof AllocThreadMethodRef) { // allocThreadMethod node return new Node[]{new AllocThreadMethodRefNode((AllocThreadMethodRef)key)}; } else { // should not happen return null; } } public void update() { setKeys(method.getAllocThreadMethods()); } } } /* * $Log: AllocThreadMethodsNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocThreadTraceRefNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocThreadTraceRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocThreadTraceRef. * * @author Jan Stola */ public class AllocThreadTraceRefNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocThreadTraceRefNode.class); private AllocThreadTraceRef allocThreadTrace; public AllocThreadTraceRefNode(AllocThreadTraceRef allocThreadTrace) { super(new AllocThreadTraceRefChildren(allocThreadTrace)); this.allocThreadTrace=allocThreadTrace; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocThreadTraceRefNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName("PENDING"); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocThreadTraceRefNode.class); } public boolean canCopy() { return false; } protected Sheet createSheet() { Sheet sheet=super.createSheet(); Sheet.Set props=sheet.get(Sheet.PROPERTIES); if (props==null) { props=Sheet.createPropertiesSet(); sheet.put(props); } AllocStatProperty.addProperties(props, allocThreadTrace); return sheet; } /** * AllocThreadTraceRef children object. * * @author Jan Stola */ public static class AllocThreadTraceRefChildren extends Children.Keys { private AllocThreadTraceRef allocThreadTrace; public AllocThreadTraceRefChildren(AllocThreadTraceRef allocThreadTrace) { this.allocThreadTrace=allocThreadTrace; update(); } protected Node[] createNodes(Object key) { if ("component".equals(key)) { // type component return null; // return new Node[]{new ClassRefNode(bundle.getString("LBL_typeRefComponent")+' ', clazz)}; } else { // should not happen return null; } } public void update() { Collection keySet=new LinkedList(); // keySet.add("component"); setKeys(keySet); } } } /* * $Log: AllocThreadTraceRefNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocThreadTracesNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocThreadTraceRef; import net.sourceforge.javaprofiler.jpi.AllocTraceRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocThreadTraces. * * @author Jan Stola */ public class AllocThreadTracesNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocThreadTracesNode.class); private AllocTraceRef allocTrace; public AllocThreadTracesNode(AllocTraceRef allocTrace) { super(new AllocThreadTracesChildren(allocTrace)); this.allocTrace=allocTrace; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocThreadTracesNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName(bundle.getString("LBL_allocThreadTracesNode")); setShortDescription(bundle.getString("HINT_allocThreadTracesNode")); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocThreadTracesNode.class); } public boolean canCopy() { return false; } /** * AllocThreadTraces children object. * * @author Jan Stola */ public static class AllocThreadTracesChildren extends Children.Keys { private AllocTraceRef allocTrace=null; public AllocThreadTracesChildren(AllocTraceRef allocTrace) { this.allocTrace=allocTrace; update(); } protected Node[] createNodes(Object key) { if (key instanceof AllocThreadTraceRef) { // allocThreadTrace node return new Node[]{new AllocThreadTraceRefNode((AllocThreadTraceRef)key)}; } else { // should not happen return null; } } public void update() { setKeys(allocTrace.getAllocThreadTraces()); } } } /* * $Log: AllocThreadTracesNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocTraceRefNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocTraceRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocTraceRef. * * @author Jan Stola */ public class AllocTraceRefNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocTraceRefNode.class); private AllocTraceRef allocTrace; public AllocTraceRefNode(String prefix, AllocTraceRef allocTrace) { super(new AllocTraceRefChildren(allocTrace)); this.allocTrace=allocTrace; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTraceRefNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName(prefix+"PENDING"); } public AllocTraceRefNode(AllocTraceRef allocTrace) { this("", allocTrace); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocTraceRefNode.class); } public boolean canCopy() { return false; } protected Sheet createSheet() { Sheet sheet=super.createSheet(); Sheet.Set props=sheet.get(Sheet.PROPERTIES); if (props==null) { props=Sheet.createPropertiesSet(); sheet.put(props); } AllocStatProperty.addProperties(props, allocTrace); return sheet; } /** * AllocTraceRef children object. * * @author Jan Stola */ public static class AllocTraceRefChildren extends Children.Keys { private AllocTraceRef allocTrace; public AllocTraceRefChildren(AllocTraceRef allocTrace) { this.allocTrace=allocTrace; update(); } protected Node[] createNodes(Object key) { if ("frames".equals(key)) { // frames node return new Node[]{new FramesNode(allocTrace)}; } else if ("method".equals(key)) { // method node return new Node[]{new MethodRefNode(allocTrace.getMethod())}; } else if ("siblingCPU".equals(key)) { // sibling CPU node return new Node[]{new CPUTraceRefNode(bundle.getString("LBL_allocTraceRefCPUSibling")+' ', allocTrace.getSiblingCPU())}; } else if ("siblingMon".equals(key)) { // sibling Mon node return new Node[]{new MonTraceRefNode(bundle.getString("LBL_allocTraceRefMonSibling")+' ', allocTrace.getSiblingMon())}; } else if ("allocThreadTraces".equals(key)) { // alloc thread traces node return new Node[]{new AllocThreadTracesNode(allocTrace)}; } else if ("allocTypeTraces".equals(key)) { // alloc type traces node return new Node[]{new AllocTypeTracesNode(allocTrace)}; } else { // should not happen return null; } } public void update() { Collection keySet=new LinkedList(); keySet.add("frames"); keySet.add("method"); keySet.add("siblingCPU"); keySet.add("siblingMon"); keySet.add("allocThreadTraces"); keySet.add("allocTypeTraces"); setKeys(keySet); } } } /* * $Log: AllocTraceRefNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocTracesNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.VirtualMachineImageRef; import net.sourceforge.javaprofiler.jpi.AllocTraceRef; import net.sourceforge.javaprofiler.jpi.MethodRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocTraces. * * @author Jan Stola */ public class AllocTracesNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocTracesNode.class); private VirtualMachineImageRef vm; private MethodRef method; public AllocTracesNode(VirtualMachineImageRef vm) { super(new AllocTracesChildren(vm)); this.vm=vm; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTracesNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName(bundle.getString("LBL_allocTracesNode")); setShortDescription(bundle.getString("HINT_allocTracesNode")); } public AllocTracesNode(MethodRef method) { super(new AllocTracesChildren(method)); this.method=method; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTracesNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName(bundle.getString("LBL_allocTracesNode")); setShortDescription(bundle.getString("HINT_allocTracesNode")); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocTracesNode.class); } public boolean canCopy() { return false; } /** * AllocTraces children object. * * @author Jan Stola */ public static class AllocTracesChildren extends Children.Keys { private VirtualMachineImageRef vm=null; private MethodRef method=null; public AllocTracesChildren(VirtualMachineImageRef vm) { this.vm=vm; update(); } public AllocTracesChildren(MethodRef method) { this.method=method; update(); } protected Node[] createNodes(Object key) { if (key instanceof AllocTraceRef) { // alloc trace node return new Node[]{new AllocTraceRefNode((AllocTraceRef)key)}; } else { // should not happen return null; } } public void update() { if (vm!=null) setKeys(vm.getAllocTraces()); if (method!=null) setKeys(method.getAllocTraces()); } } } /* * $Log: AllocTracesNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocTypeMethodRefNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocTypeMethodRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocTypeMethodRef. * * @author Jan Stola */ public class AllocTypeMethodRefNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocTypeMethodRefNode.class); private AllocTypeMethodRef allocTypeMethod; public AllocTypeMethodRefNode(AllocTypeMethodRef allocTypeMethod) { super(new AllocTypeMethodRefChildren(allocTypeMethod)); this.allocTypeMethod=allocTypeMethod; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTypeMethodRefNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName("PENDING"); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocTypeMethodRefNode.class); } public boolean canCopy() { return false; } protected Sheet createSheet() { Sheet sheet=super.createSheet(); Sheet.Set props=sheet.get(Sheet.PROPERTIES); if (props==null) { props=Sheet.createPropertiesSet(); sheet.put(props); } AllocStatProperty.addProperties(props, allocTypeMethod); return sheet; } /** * AllocTypeMethodRef children object. * * @author Jan Stola */ public static class AllocTypeMethodRefChildren extends Children.Keys { private AllocTypeMethodRef allocTypeMethod; public AllocTypeMethodRefChildren(AllocTypeMethodRef allocTypeMethod) { this.allocTypeMethod=allocTypeMethod; update(); } protected Node[] createNodes(Object key) { if ("component".equals(key)) { // type component return null; // return new Node[]{new ClassRefNode(bundle.getString("LBL_typeRefComponent")+' ', clazz)}; } else { // should not happen return null; } } public void update() { Collection keySet=new LinkedList(); // keySet.add("component"); setKeys(keySet); } } } /* * $Log: AllocTypeMethodRefNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocTypeMethodsNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocTypeMethodRef; import net.sourceforge.javaprofiler.jpi.MethodRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocTypeMethods. * * @author Jan Stola */ public class AllocTypeMethodsNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocTypeMethodsNode.class); private MethodRef method; public AllocTypeMethodsNode(MethodRef method) { super(new AllocTypeMethodsChildren(method)); this.method=method; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTypeMethodsNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName(bundle.getString("LBL_allocTypeMethodsNode")); setShortDescription(bundle.getString("HINT_allocTypeMethodsNode")); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocTypeMethodsNode.class); } public boolean canCopy() { return false; } /** * AllocTypeMethods children object. * * @author Jan Stola */ public static class AllocTypeMethodsChildren extends Children.Keys { private MethodRef method=null; public AllocTypeMethodsChildren(MethodRef method) { this.method=method; update(); } protected Node[] createNodes(Object key) { if (key instanceof AllocTypeMethodRef) { // allocTypeMethod node return new Node[]{new AllocTypeMethodRefNode((AllocTypeMethodRef)key)}; } else { // should not happen return null; } } public void update() { setKeys(method.getAllocTypeMethods()); } } } /* * $Log: AllocTypeMethodsNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocTypeThreadMethodRefNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocTypeThreadMethodRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocTypeThreadMethodRef. * * @author Jan Stola */ public class AllocTypeThreadMethodRefNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocTypeThreadMethodRefNode.class); private AllocTypeThreadMethodRef allocTypeThreadMethod; public AllocTypeThreadMethodRefNode(AllocTypeThreadMethodRef allocTypeThreadMethod) { super(new AllocTypeThreadMethodRefChildren(allocTypeThreadMethod)); this.allocTypeThreadMethod=allocTypeThreadMethod; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTypeThreadMethodRefNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName("PENDING"); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocTypeThreadMethodRefNode.class); } public boolean canCopy() { return false; } protected Sheet createSheet() { Sheet sheet=super.createSheet(); Sheet.Set props=sheet.get(Sheet.PROPERTIES); if (props==null) { props=Sheet.createPropertiesSet(); sheet.put(props); } AllocStatProperty.addProperties(props, allocTypeThreadMethod); return sheet; } /** * AllocTypeThreadMethodRef children object. * * @author Jan Stola */ public static class AllocTypeThreadMethodRefChildren extends Children.Keys { private AllocTypeThreadMethodRef allocTypeThreadMethod; public AllocTypeThreadMethodRefChildren(AllocTypeThreadMethodRef allocTypeThreadMethod) { this.allocTypeThreadMethod=allocTypeThreadMethod; update(); } protected Node[] createNodes(Object key) { if ("component".equals(key)) { // type component return null; // return new Node[]{new ClassRefNode(bundle.getString("LBL_typeRefComponent")+' ', clazz)}; } else { // should not happen return null; } } public void update() { Collection keySet=new LinkedList(); // keySet.add("component"); setKeys(keySet); } } } /* * $Log: AllocTypeThreadMethodRefNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocTypeThreadRefNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocTypeThreadRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocTypeThreadRef. * * @author Jan Stola */ public class AllocTypeThreadRefNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocTypeThreadRefNode.class); private AllocTypeThreadRef allocTypeThread; public AllocTypeThreadRefNode(AllocTypeThreadRef allocTypeThread) { super(new AllocTypeThreadRefChildren(allocTypeThread)); this.allocTypeThread=allocTypeThread; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTypeThreadRefNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName("PENDING"); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocTypeThreadRefNode.class); } public boolean canCopy() { return false; } protected Sheet createSheet() { Sheet sheet=super.createSheet(); Sheet.Set props=sheet.get(Sheet.PROPERTIES); if (props==null) { props=Sheet.createPropertiesSet(); sheet.put(props); } AllocStatProperty.addProperties(props, allocTypeThread); return sheet; } /** * AllocTypeThreadRef children object. * * @author Jan Stola */ public static class AllocTypeThreadRefChildren extends Children.Keys { private AllocTypeThreadRef allocTypeThread; public AllocTypeThreadRefChildren(AllocTypeThreadRef allocTypeThread) { this.allocTypeThread=allocTypeThread; update(); } protected Node[] createNodes(Object key) { if ("component".equals(key)) { // type component return null; // return new Node[]{new ClassRefNode(bundle.getString("LBL_typeRefComponent")+' ', clazz)}; } else { // should not happen return null; } } public void update() { Collection keySet=new LinkedList(); // keySet.add("component"); setKeys(keySet); } } } /* * $Log: AllocTypeThreadRefNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocTypeThreadTraceRefNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocTypeThreadTraceRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocTypeThreadTraceRef. * * @author Jan Stola */ public class AllocTypeThreadTraceRefNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocTypeThreadTraceRefNode.class); private AllocTypeThreadTraceRef allocTypeThreadTrace; public AllocTypeThreadTraceRefNode(AllocTypeThreadTraceRef allocTypeThreadTrace) { super(new AllocTypeThreadTraceRefChildren(allocTypeThreadTrace)); this.allocTypeThreadTrace=allocTypeThreadTrace; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTypeThreadTraceRefNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName("PENDING"); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocTypeThreadTraceRefNode.class); } public boolean canCopy() { return false; } protected Sheet createSheet() { Sheet sheet=super.createSheet(); Sheet.Set props=sheet.get(Sheet.PROPERTIES); if (props==null) { props=Sheet.createPropertiesSet(); sheet.put(props); } AllocStatProperty.addProperties(props, allocTypeThreadTrace); return sheet; } /** * AllocTypeThreadTraceRef children object. * * @author Jan Stola */ public static class AllocTypeThreadTraceRefChildren extends Children.Keys { private AllocTypeThreadTraceRef allocTypeThreadTrace; public AllocTypeThreadTraceRefChildren(AllocTypeThreadTraceRef allocTypeThreadTrace) { this.allocTypeThreadTrace=allocTypeThreadTrace; update(); } protected Node[] createNodes(Object key) { if ("component".equals(key)) { // type component return null; // return new Node[]{new ClassRefNode(bundle.getString("LBL_typeRefComponent")+' ', clazz)}; } else { // should not happen return null; } } public void update() { Collection keySet=new LinkedList(); // keySet.add("component"); setKeys(keySet); } } } /* * $Log: AllocTypeThreadTraceRefNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocTypeTraceRefNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocTypeTraceRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocTypeTraceRef. * * @author Jan Stola */ public class AllocTypeTraceRefNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocTypeTraceRefNode.class); private AllocTypeTraceRef allocTypeTrace; public AllocTypeTraceRefNode(AllocTypeTraceRef allocTypeTrace) { super(new AllocTypeTraceRefChildren(allocTypeTrace)); this.allocTypeTrace=allocTypeTrace; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTypeTraceRefNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName("PENDING"); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocTypeTraceRefNode.class); } public boolean canCopy() { return false; } protected Sheet createSheet() { Sheet sheet=super.createSheet(); Sheet.Set props=sheet.get(Sheet.PROPERTIES); if (props==null) { props=Sheet.createPropertiesSet(); sheet.put(props); } AllocStatProperty.addProperties(props, allocTypeTrace); return sheet; } /** * AllocTypeTraceRef children object. * * @author Jan Stola */ public static class AllocTypeTraceRefChildren extends Children.Keys { private AllocTypeTraceRef allocTypeTrace; public AllocTypeTraceRefChildren(AllocTypeTraceRef allocTypeTrace) { this.allocTypeTrace=allocTypeTrace; update(); } protected Node[] createNodes(Object key) { if ("component".equals(key)) { // type component return null; // return new Node[]{new ClassRefNode(bundle.getString("LBL_typeRefComponent")+' ', clazz)}; } else { // should not happen return null; } } public void update() { Collection keySet=new LinkedList(); // keySet.add("component"); setKeys(keySet); } } } /* * $Log: AllocTypeTraceRefNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocTypeTracesNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocTypeTraceRef; import net.sourceforge.javaprofiler.jpi.AllocTraceRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocTypeTraces. * * @author Jan Stola */ public class AllocTypeTracesNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocTypeTracesNode.class); private AllocTraceRef allocTrace; public AllocTypeTracesNode(AllocTraceRef allocTrace) { super(new AllocTypeTracesChildren(allocTrace)); this.allocTrace=allocTrace; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTypeTracesNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName(bundle.getString("LBL_allocTypeTracesNode")); setShortDescription(bundle.getString("HINT_allocTypeTracesNode")); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocTypeTracesNode.class); } public boolean canCopy() { return false; } /** * AllocTypeTraces children object. * * @author Jan Stola */ public static class AllocTypeTracesChildren extends Children.Keys { private AllocTraceRef allocTrace=null; public AllocTypeTracesChildren(AllocTraceRef allocTrace) { this.allocTrace=allocTrace; update(); } protected Node[] createNodes(Object key) { if (key instanceof AllocTypeTraceRef) { // allocTypeTrace node return new Node[]{new AllocTypeTraceRefNode((AllocTypeTraceRef)key)}; } else { // should not happen return null; } } public void update() { setKeys(allocTrace.getAllocTypeTraces()); } } } /* * $Log: AllocTypeTracesNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: CPUThreadMethodRefNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.CPUThreadMethodRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about CPUThreadMethodRef. * * @author Jan Stola */ public class CPUThreadMethodRefNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocThreadMethodRefNode.class); private CPUThreadMethodRef CPUThreadMethod; public CPUThreadMethodRefNode(CPUThreadMethodRef CPUThreadMethod) { super(new CPUThreadMethodRefChildren(CPUThreadMethod)); this.CPUThreadMethod=CPUThreadMethod; setIconBase("/net/sourceforge/javaprofiler/module/resources/CPUThreadMethodRefNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName("PENDING"); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(CPUThreadMethodRefNode.class); } public boolean canCopy() { return false; } protected Sheet createSheet() { Sheet sheet=super.createSheet(); Sheet.Set props=sheet.get(Sheet.PROPERTIES); if (props==null) { props=Sheet.createPropertiesSet(); sheet.put(props); } CPUStatProperty.addProperties(props, CPUThreadMethod); return sheet; } /** * CPUThreadMethodRef children object. * * @author Jan Stola */ public static class CPUThreadMethodRefChildren extends Children.Keys { private CPUThreadMethodRef CPUThreadMethod; public CPUThreadMethodRefChildren(CPUThreadMethodRef CPUThreadMethod) { this.CPUThreadMethod=CPUThreadMethod; update(); } protected Node[] createNodes(Object key) { if ("component".equals(key)) { // type component return null; // return new Node[]{new ClassRefNode(bundle.getString("LBL_typeRefComponent")+' ', clazz)}; } else { // should not happen return null; } } public void update() { Collection keySet=new LinkedList(); // keySet.add("component"); setKeys(keySet); } } } /* * $Log: CPUThreadMethodRefNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: CPUThreadMethodsNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.CPUThreadMethodRef; import net.sourceforge.javaprofiler.jpi.MethodRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about CPUThreadMethods. * * @author Jan Stola */ public class CPUThreadMethodsNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(CPUThreadMethodsNode.class); private MethodRef method; public CPUThreadMethodsNode(MethodRef method) { super(new CPUThreadMethodsChildren(method)); this.method=method; setIconBase("/net/sourceforge/javaprofiler/module/resources/CPUThreadMethodsNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName(bundle.getString("LBL_CPUThreadMethodsNode")); setShortDescription(bundle.getString("HINT_CPUThreadMethodsNode")); } protected SystemAction[] createActions() { re... [truncated message content] |
From: Jan S. <st...@us...> - 2002-07-14 18:14:53
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes In directory usw-pr-cvs1:/tmp/cvs-serv1165 Added Files: AllocStatProperty.java CPUStatProperty.java MonStatProperty.java Log Message: Common properties. --- NEW FILE: AllocStatProperty.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.nodes.*; import org.openide.util.NbBundle; import net.sourceforge.javaprofiler.jpi.AllocStat; /** * Properties of nodes that take data from object that implements AllocStat. * * @author Jan Stola */ public class AllocStatProperty { private static ResourceBundle bundle=NbBundle.getBundle(AllocStatProperty.class); public static class AllocStatLiveInstancesCount extends PropertySupport.ReadOnly { private AllocStat stat; public AllocStatLiveInstancesCount(AllocStat stat) { super("allocStatLiveInstancesCount", Long.class, bundle.getString("LBL_allocStatLiveInstancesCount"), bundle.getString("HINT_allocStatLiveInstancesCount")); this.stat=stat; } public Object getValue() { return new Long(stat.getLiveInstancesCount()); } } public static class AllocStatTotalInstancesCount extends PropertySupport.ReadOnly { private AllocStat stat; public AllocStatTotalInstancesCount(AllocStat stat) { super("allocStatTotalInstancesCount", Long.class, bundle.getString("LBL_allocStatTotalInstancesCount"), bundle.getString("HINT_allocStatTotalInstancesCount")); this.stat=stat; } public Object getValue() { return new Long(stat.getTotalInstancesCount()); } } public static class AllocStatLiveInstancesSize extends PropertySupport.ReadOnly { private AllocStat stat; public AllocStatLiveInstancesSize(AllocStat stat) { super("allocStatLiveInstancesSize", Long.class, bundle.getString("LBL_allocStatLiveInstancesSize"), bundle.getString("HINT_allocStatLiveInstancesSize")); this.stat=stat; } public Object getValue() { return new Long(stat.getLiveInstancesSize()); } } public static class AllocStatTotalInstancesSize extends PropertySupport.ReadOnly { private AllocStat stat; public AllocStatTotalInstancesSize(AllocStat stat) { super("allocStatTotalInstancesSize", Long.class, bundle.getString("LBL_allocStatTotalInstancesSize"), bundle.getString("HINT_allocStatTotalInstancesSize")); this.stat=stat; } public Object getValue() { return new Long(stat.getTotalInstancesSize()); } } public static void addProperties(Sheet.Set props, AllocStat stat) { props.put(new AllocStatLiveInstancesCount(stat)); props.put(new AllocStatTotalInstancesCount(stat)); props.put(new AllocStatLiveInstancesSize(stat)); props.put(new AllocStatTotalInstancesSize(stat)); } } /* * $Log: AllocStatProperty.java,v $ * Revision 1.1 2002/07/14 18:14:49 stolis * Common properties. * */ --- NEW FILE: CPUStatProperty.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.nodes.*; import org.openide.util.NbBundle; import net.sourceforge.javaprofiler.jpi.CPUStat; /** * Properties of nodes that take data from object that implements CPUStat. * * @author Jan Stola */ public class CPUStatProperty { private static ResourceBundle bundle=NbBundle.getBundle(CPUStatProperty.class); public static class CPUStatHits extends PropertySupport.ReadOnly { private CPUStat stat; public CPUStatHits(CPUStat stat) { super("CPUStatHits", Long.class, bundle.getString("LBL_CPUStatHits"), bundle.getString("HINT_CPUStatHits")); this.stat=stat; } public Object getValue() { return new Long(stat.getCPUHitsCount()); } } public static class CPUStatPureTime extends PropertySupport.ReadOnly { private CPUStat stat; public CPUStatPureTime(CPUStat stat) { super("CPUStatPureTime", Long.class, bundle.getString("LBL_CPUStatPureTime"), bundle.getString("HINT_CPUStatPureTime")); this.stat=stat; } public Object getValue() { return new Long(stat.getCPUPureTime()); } } public static void addProperties(Sheet.Set props, CPUStat stat) { props.put(new CPUStatHits(stat)); props.put(new CPUStatPureTime(stat)); } } /* * $Log: CPUStatProperty.java,v $ * Revision 1.1 2002/07/14 18:14:49 stolis * Common properties. * */ --- NEW FILE: MonStatProperty.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.nodes.*; import org.openide.util.NbBundle; import net.sourceforge.javaprofiler.jpi.MonStat; /** * Properties of nodes that take data from object that implements MonStat. * * @author Jan Stola */ public class MonStatProperty { private static ResourceBundle bundle=NbBundle.getBundle(MonStatProperty.class); public static class MonStatHits extends PropertySupport.ReadOnly { private MonStat stat; public MonStatHits(MonStat stat) { super("monStatHits", Long.class, bundle.getString("LBL_monStatHits"), bundle.getString("HINT_monStatHits")); this.stat=stat; } public Object getValue() { return new Long(stat.getMonHitsCount()); } } public static class MonStatPureTime extends PropertySupport.ReadOnly { private MonStat stat; public MonStatPureTime(MonStat stat) { super("monStatPureTime", Long.class, bundle.getString("LBL_monStatPureTime"), bundle.getString("HINT_monStatPureTime")); this.stat=stat; } public Object getValue() { return new Long(stat.getMonPureTime()); } } public static void addProperties(Sheet.Set props, MonStat stat) { props.put(new MonStatHits(stat)); props.put(new MonStatPureTime(stat)); } } /* * $Log: MonStatProperty.java,v $ * Revision 1.1 2002/07/14 18:14:49 stolis * Common properties. * */ |
From: Jan S. <st...@us...> - 2002-07-14 18:13:31
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes In directory usw-pr-cvs1:/tmp/cvs-serv822 Modified Files: Bundle.properties Log Message: Internacionalization of nodes. Index: Bundle.properties =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes/Bundle.properties,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** Bundle.properties 16 May 2002 12:00:42 -0000 1.5 --- Bundle.properties 14 Jul 2002 18:13:29 -0000 1.6 *************** *** 78,79 **** --- 78,323 ---- HINT_listenerLocation=Location on which the listener listens for connections. + + LBL_classesNode=Classes + + HINT_classesNode=Node showing loaded classes. + + LBL_classRefName=Name + + HINT_classRefName=Name of the class + + LBL_classRefSourceFileName=Source Filename + + HINT_classRefSourceFileName=Name of the source file of this class. + + LBL_fieldsNode=Fields + + HINT_fieldsNode=Fields of the class. + + LBL_fieldRefName=Name + + HINT_fieldRefName=Name of the field. + + LBL_fieldRefSignature=Signature + + HINT_fieldRefSignature=Signature of the field. + + LBL_fieldRefParentClass=Defining class + + HINT_fieldRefParentClass=Class in which this field is defined. + + LBL_fieldRefStatic=Static + + HINT_fieldRefStatic=Is this field static? + + LBL_methodsNode=Methods + + HINT_methodsNode=Methods of the class. + + LBL_methodRefName=Name + + HINT_methodRefName=Name of the method. + + LBL_methodRefSignature=Signature + + HINT_methodRefSignature=Signature of the method. + + LBL_methodRefParentClass=Defining class + + HINT_methodRefParentClass=Class in which this method is defined. + + LBL_methodRefStartLineNo=Start Line No. + + HINT_methodRefStartLineNo=First line no. of this method's source code. + + LBL_methodRefEndLineNo=End Line No. + + HINT_methodRefEndLineNo=Last line no. of this method's source code. + + LBL_threadGroupsNode=Thread Groups + + HINT_threadGroupsNode=Thread groups in the profiled VM. + + LBL_threadGroupRefName=Name + + HINT_threadGroupRefName=Name of the thread group. + + LBL_GCRunsNode=Garbage Collection + + HINT_GCRunsNode=Activity of garbage collector in the profiled VM. + + LBL_GCRunRefUsedObjectsCount=Used Objects + + HINT_GCRunRefUsedObjectsCount=Number of used objects. + + LBL_GCRunRefUsedSpace=Used Space + + HINT_GCRunRefUsedSpace=Amount of used space. + + LBL_GCRunRefTotalSpace=Total Space + + HINT_GCRunRefTotalSpace=Amount of total space. + + LBL_GCRunRefStartTime=Start Time + + HINT_GCRunRefStartTime=Start time of this GC run. + + LBL_GCRunRefEndTime=End Time + + HINT_GCRunRefEndTime=End time of this GC run. + + LBL_threadsNode=Threads + + HINT_threadsNode=Threads in the profiled VM. + + LBL_threadRefName=Name + + HINT_threadRefName=Name of the thread. + + LBL_threadRefStartTime=Start Time + + HINT_threadRefStartTime=Start time of the thread. + + LBL_threadRefEndTime=End Time + + HINT_threadRefEndTime=End time of the thread. + + LBL_typeRefName=Name + + HINT_typeRefName=Name of the type. + + LBL_typeRefArray=Array + + HINT_typeRefArray=Is this type array of objects? + + LBL_typeRefArrayOfPrimitives=Array of Primitives + + HINT_typeRefArrayOfPrimitives=Is this type array of primitive types? + + LBL_typesNode=Types + + HINT_typesNode=Types in the profiled VM. + + LBL_callTreeRefName=Name + + HINT_callTreeRefName=Name of the frame of this node. + + LBL_callTreeRefHits=Hits + + HINT_callTreeRefHits=How many times this method was hit. + + LBL_callTreeRefPureTime=Pure Time + + HINT_callTreeRefPureTime=Pure time consumed by this method. + + LBL_callTreeRefCumulativeTime=Cumulative Time + + HINT_callTreeRefCumulativeTime=Total time spent inside this method (including invocations of other methods). + + LBL_CPUStatHits=CPU Hits + + HINT_CPUStatHits=How many times this object was hit. + + LBL_CPUStatPureTime=CPU Pure Time + + HINT_CPUStatPureTime=Pure Time consumed by this object. + + LBL_monStatHits=Monitor Hits + + HINT_monStatHits=How many times this object was hit by monitor. + + LBL_monStatPureTime=Monitor Pure Time + + HINT_monStatPureTime=Pure Time spent in the monitor on this object. + + LBL_allocStatLiveInstancesCount=Live Instances + + HINT_allocStatLiveInstancesCount=Live instances the profiled VM. + + LBL_allocStatTotalInstancesCount=Total Instances + + HINT_allocStatTotalInstancesCount=Total number of instances in the profiled VM. + + LBL_allocStatLiveInstancesSize=Live Instances Size + + HINT_allocStatLiveInstancesSize=Size of all live instances in the profiled VM. + + LBL_allocStatTotalInstancesSize=Total Instances Size + + HINT_allocStatTotalInstancesSize=Size of all instances created in the profiled VM. + + LBL_typeRefComponent=Component: + + LBL_frameRefMethod=Method + + HINT_frameRefMethod=Method of this frame. + + LBL_frameRefLineNo=Line Number + + HINT_frameRefLineNo=Line number of this frame. + + LBL_frameRefCaller=Caller: + + LBL_monTracesNode=Monitor Traces + + HINT_monTracesNode=Monitor traces from the profiled VM. + + LBL_allocTracesNode=Allocation Traces + + HINT_allocTracesNode=Allocation traces from the profiled VM. + + LBL_CPUTracesNode=CPU Traces + + HINT_CPUTracesNode=CPU traces from the profiled VM. + + LBL_fieldRefParent=Parent: + + LBL_methodRefParent=Parent: + + LBL_allocTypeMethodsNode=AllocTypeMethods + + HINT_allocTypeMethodsNode=AllocTypeMethods + + LBL_allocThreadMethodsNode=AllocThreadMethods + + HINT_allocThreadMethodsNode=AllocThreadMethods + + LBL_CPUThreadMethodsNode=CPUThreadMethods + + HINT_CPUThreadMethodsNode=CPUThreadMethods + + LBL_monThreadMethodsNode=MonThreadMethods + + HINT_monThreadMethodsNode=MonThreadMethods + + LBL_framesNode=Frames + + HINT_framesNode=Frames of this trace. + + LBL_allocTraceRefCPUSibling=CPU Sibling: + + LBL_allocTraceRefMonSibling=Mon Sibling: + + LBL_CPUTraceRefAllocSibling=Alloc Sibling: + + LBL_CPUTraceRefMonSibling=Mon Sibling: + + LBL_monTraceRefAllocSibling=Alloc Sibling: + + LBL_monTraceRefCPUSibling=CPU Sibling: + + LBL_allocThreadTracesNode=AllocThreadTraces + + HINT_allocThreadTracesNode=AllocThreadTraces + + LBL_CPUThreadTracesNode=CPUThreadTraces + + HINT_CPUThreadTracesNode=CPUThreadTraces + + LBL_monThreadTracesNode=MonThreadTraces + + HINT_monThreadTracesNode=MonThreadTraces + + LBL_allocTypeTracesNode=AllocTypeTraces + + HINT_allocTypeTracesNode=AllocTypeTraces |
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/resources In directory usw-pr-cvs1:/tmp/cvs-serv32738 Added Files: AllocThreadMethodRefNodeIcon.gif AllocThreadMethodRefNodeIcon32.gif AllocThreadMethodsNodeIcon.gif AllocThreadMethodsNodeIcon32.gif AllocThreadTraceRefNodeIcon.gif AllocThreadTraceRefNodeIcon32.gif AllocThreadTracesNodeIcon.gif AllocThreadTracesNodeIcon32.gif AllocTraceRefNodeIcon.gif AllocTraceRefNodeIcon32.gif AllocTracesNodeIcon.gif AllocTracesNodeIcon32.gif AllocTypeMethodRefNodeIcon.gif AllocTypeMethodRefNodeIcon32.gif AllocTypeMethodsNodeIcon.gif AllocTypeMethodsNodeIcon32.gif AllocTypeThreadMethodRefNodeIcon.gif AllocTypeThreadMethodRefNodeIcon32.gif AllocTypeThreadRefNodeIcon.gif AllocTypeThreadRefNodeIcon32.gif AllocTypeThreadTraceRefNodeIcon.gif AllocTypeThreadTraceRefNodeIcon32.gif AllocTypeTraceRefNodeIcon.gif AllocTypeTraceRefNodeIcon32.gif AllocTypeTracesNodeIcon.gif AllocTypeTracesRefNodeIcon32.gif CPUThreadMethodRefNodeIcon.gif CPUThreadMethodRefNodeIcon32.gif CPUThreadMethodsNodeIcon.gif CPUThreadMethodsNodeIcon32.gif CPUThreadTraceRefNodeIcon.gif CPUThreadTraceRefNodeIcon32.gif CPUThreadTracesNodeIcon.gif CPUThreadTracesNodeIcon32.gif CPUTraceRefNodeIcon.gif CPUTraceRefNodeIcon32.gif CPUTracesNodeIcon.gif CPUTracesNodeIcon32.gif CallTreeRefNodeIcon.gif CallTreeRefNodeIcon32.gif ClassRefNodeIcon.gif ClassRefNodeIcon32.gif ClassesNodeIcon.gif ClassesNodeIcon32.gif FieldRefNodeIcon.gif FieldRefNodeIcon32.gif FieldsNodeIcon.gif FieldsNodeIcon32.gif FrameRefNodeIcon.gif FrameRefNodeIcon32.gif FramesNodeIcon.gif FramesNodeIcon32.gif GCRunRefNodeIcon.gif GCRunRefNodeIcon32.gif GCRunsNodeIcon.gif GCRunsNodeIcon32.gif MethodRefNodeIcon.gif MethodRefNodeIcon32.gif MethodsNodeIcon.gif MethodsNodeIcon32.gif MonThreadMethodRefNodeIcon.gif MonThreadMethodRefNodeIcon32.gif MonThreadMethodsNodeIcon.gif MonThreadMethodsNodeIcon32.gif MonThreadTraceRefNodeIcon.gif MonThreadTraceRefNodeIcon32.gif MonThreadTracesNodeIcon.gif MonThreadTracesNodeIcon32.gif MonTraceRefNodeIcon.gif MonTraceRefNodeIcon32.gif MonTracesNodeIcon.gif MonTracesNodeIcon32.gif ThreadGroupRefNodeIcon.gif ThreadGroupRefNodeIcon32.gif ThreadGroupsNodeIcon.gif ThreadGroupsNodeIcon32.gif ThreadRefNodeIcon.gif ThreadRefNodeIcon32.gif ThreadsNodeIcon.gif ThreadsNodeIcon32.gif TypeRefNodeIcon.gif TypeRefNodeIcon32.gif TypesNodeIcon.gif TypesNodeIcon32.gif Log Message: Temporary icons for nodes. --- NEW FILE: AllocThreadMethodRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: AllocThreadMethodRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: AllocThreadMethodsNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: AllocThreadMethodsNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: AllocThreadTraceRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: AllocThreadTraceRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: AllocThreadTracesNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: AllocThreadTracesNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: AllocTraceRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: AllocTraceRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: AllocTracesNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: AllocTracesNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: AllocTypeMethodRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: AllocTypeMethodRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: AllocTypeMethodsNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: AllocTypeMethodsNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: AllocTypeThreadMethodRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: AllocTypeThreadMethodRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: AllocTypeThreadRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: AllocTypeThreadRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: AllocTypeThreadTraceRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: AllocTypeThreadTraceRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: AllocTypeTraceRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: AllocTypeTraceRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: AllocTypeTracesNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: AllocTypeTracesRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: CPUThreadMethodRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: CPUThreadMethodRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: CPUThreadMethodsNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: CPUThreadMethodsNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: CPUThreadTraceRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: CPUThreadTraceRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: CPUThreadTracesNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: CPUThreadTracesNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: CPUTraceRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: CPUTraceRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: CPUTracesNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: CPUTracesNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: CallTreeRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: CallTreeRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: ClassRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: ClassRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: ClassesNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: ClassesNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: FieldRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: FieldRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: FieldsNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: FieldsNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: FrameRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: FrameRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: FramesNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: FramesNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: GCRunRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: GCRunRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: GCRunsNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: GCRunsNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: MethodRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: MethodRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: MethodsNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: MethodsNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: MonThreadMethodRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: MonThreadMethodRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: MonThreadMethodsNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: MonThreadMethodsNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: MonThreadTraceRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: MonThreadTraceRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: MonThreadTracesNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: MonThreadTracesNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: MonTraceRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: MonTraceRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: MonTracesNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: MonTracesNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: ThreadGroupRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: ThreadGroupRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: ThreadGroupsNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: ThreadGroupsNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: ThreadRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: ThreadRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: ThreadsNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: ThreadsNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: TypeRefNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: TypeRefNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ --- NEW FILE: TypesNodeIcon.gif --- GIF89a Å×@TCQcq=fïtBN8X«gËD --- NEW FILE: TypesNodeIcon32.gif --- GIF89a ~H,TVmh 9 b-r*UG44 9]:z¬* g«3¢¤¯¹<µÀ®i&Æ& ÉÊËÌ |
From: Jan S. <st...@us...> - 2002-07-14 18:05:00
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes In directory usw-pr-cvs1:/tmp/cvs-serv31589 Modified Files: ListenerNode.java SessionNode.java Log Message: Resource bundle is static, not instance field. Index: ListenerNode.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes/ListenerNode.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** ListenerNode.java 16 May 2002 11:58:45 -0000 1.1 --- ListenerNode.java 14 Jul 2002 18:04:57 -0000 1.2 *************** *** 42,46 **** public class ListenerNode extends AbstractNode implements ConListenerCookie { private ConListener listener; ! private ResourceBundle bundle=NbBundle.getBundle(ListenerNode.class); public ListenerNode(ConListener listener) { --- 42,46 ---- public class ListenerNode extends AbstractNode implements ConListenerCookie { private ConListener listener; ! private static ResourceBundle bundle=NbBundle.getBundle(ListenerNode.class); public ListenerNode(ConListener listener) { *************** *** 98,101 **** --- 98,104 ---- /* * $Log$ + * Revision 1.2 2002/07/14 18:04:57 stolis + * Resource bundle is static, not instance field. + * * Revision 1.1 2002/05/16 11:58:45 stolis * Listener node class. Index: SessionNode.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes/SessionNode.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** SessionNode.java 26 Feb 2002 00:56:24 -0000 1.3 --- SessionNode.java 14 Jul 2002 18:04:57 -0000 1.4 *************** *** 42,46 **** public class SessionNode extends AbstractNode implements SessionCookie { private Session session; ! private ResourceBundle bundle=NbBundle.getBundle(SessionNode.class); public SessionNode(Session session) { --- 42,46 ---- public class SessionNode extends AbstractNode implements SessionCookie { private Session session; ! private static ResourceBundle bundle=NbBundle.getBundle(SessionNode.class); public SessionNode(Session session) { *************** *** 156,159 **** --- 156,162 ---- /* * $Log$ + * Revision 1.4 2002/07/14 18:04:57 stolis + * Resource bundle is static, not instance field. + * * Revision 1.3 2002/02/26 00:56:24 stolis * Refactoring of create snapshot action. |
From: Jan S. <st...@us...> - 2002-07-14 17:59:46
|
Update of /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi In directory usw-pr-cvs1:/tmp/cvs-serv30534/NET/sourceforge/javaprofiler/JPI Modified Files: GCRunRef.java Log Message: Obsolete comment removed. Index: GCRunRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/GCRunRef.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** GCRunRef.java 2 Jul 2002 20:17:13 -0000 1.2 --- GCRunRef.java 14 Jul 2002 17:59:41 -0000 1.3 *************** *** 31,39 **** } - //add method - //List VirtualMachineImage.getGCRuns() - /* * $Log$ * Revision 1.2 2002/07/02 20:17:13 stolis * License added. --- 31,39 ---- } /* * $Log$ + * Revision 1.3 2002/07/14 17:59:41 stolis + * Obsolete comment removed. + * * Revision 1.2 2002/07/02 20:17:13 stolis * License added. |
From: Pavel V. <va...@us...> - 2002-07-11 18:43:00
|
Update of /cvsroot/javaprofiler/test/snapshot In directory usw-pr-cvs1:/tmp/cvs-serv7539 Added Files: TestSnap2.java runsnap2.bat Log Message: Test of a snapshot. It uses connectors and VirtualMachine to create the snapshot. --- NEW FILE: TestSnap2.java --- //java -Xrun\Project\javaprof\library\src\profiler\profiler:commun_type=socket Notepad /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"); you may not use this file except * in compliance with the License. A copy of the License is available * at http://www.sun.com/ * * The Original Code is the Java Profiler module. The Initial Developers * of the Original Code are Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. * * Portions created by Jan Stola are Copyright (C) 2000-2001. * All Rights Reserved. * * Portions created by Pavel Vacha are Copyright (C) 2000-2001. * All Rights Reserved. * * Portions created by Michal Pise are Copyright (C) 2000-2001. * All Rights Reserved. * * Portions created by Petr Luner are Copyright (C) 2000-2001. * All Rights Reserved. * * Portions created by Lukas Petru are Copyright (C) 2000-2001. * All Rights Reserved. * * Portions created by Marek Przeczek are Copyright (C) 2000-2001. * All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ import java.lang.*; import java.util.*; import net.sourceforge.javaprofiler.jpi.*; import net.sourceforge.javaprofiler.jpi.connect.*; import net.sourceforge.javaprofiler.jpiimpl.connect.*; /** Creates snapshot using connectors. */ public class TestSnap2 { public void getSnapShot( VirtualMachineRef vm ) { /* SnapshotImpl.Configuration conf = new SnapshotImpl.Configuration(); conf.withCPU = true; conf.withAlloc = true; conf.withMon = true; conf.withArenas = true; conf.withGC = true; conf.withFields = true; conf.withCPUTraces = true; conf.withMonTraces = true; conf.withAllocTraces = true; conf.withCPUThreads = true; conf.withMonThreads = true; conf.withAllocThreads = true; conf.withTypes = true; conf.withCallTree = true; //only traces with more hits than this will be extracted conf.CPUTraces_MinVal = IProf.NO_OPTIONAL_ARG; //2; //only traces with more allocations than this will be extracted conf.AllocTraces_MinVal = IProf.NO_OPTIONAL_ARG; //2; //only traces with more hits than this will be extracted conf.MonTraces_MinVal = IProf.NO_OPTIONAL_ARG; //2; if ( !conf.isValid() ) System.err.print( "Error in snapshot configuration!" ); */ long start = System.currentTimeMillis(); Snapshot mirror = vm.createSnapshot(); System.out.println( mirror.time() ); long end = System.currentTimeMillis(); System.out.println( "\n\nTime TestSnap: " + (end - start) ); } public void runTest() { Bootstrap.virtualMachineManager().defaultConnector(); try { Connector con = new SocketAttachConnector(); Map args = con.defaultArguments(); ((Connector.IntegerArgument) args.get("port")).setValue(25595); ((Connector.Argument) args.get("host")).setValue("localhost"); VirtualMachineRef vm= (new SocketAttachConnector()).connect( args ); System.out.println( "Ready" ); getSnapShot( vm ); } catch( Exception e) { System.err.println( "an error occurred, exception:"); System.err.println( e.getClass().getName()); e.printStackTrace(); } } public static void main( String[] arg) { // let's run the test (new TestSnap2()).runTest(); } }; //GetCurtime --- NEW FILE: runsnap2.bat --- SET JAVA_HOME=d:\programs\j2sdk1.4.0 rem **************************** rem SET CLASSPATH=..\..\jpiimpl;..\..\interface;.\;%CLASSPATH% SET CLASSPATH=..\..\jpiimpl\jpiimpl.jar;.\;%CLASSPATH% set path=%JAVA_HOME%\bin;%path%;..\..\library\src2 java TestSnap2 |
From: Pavel V. <va...@us...> - 2002-07-11 18:21:42
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data In directory usw-pr-cvs1:/tmp/cvs-serv31708 Modified Files: SnapshotImpl.java Log Message: no message Index: SnapshotImpl.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/SnapshotImpl.java,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -r1.25 -r1.26 *** SnapshotImpl.java 4 Jul 2002 18:00:31 -0000 1.25 --- SnapshotImpl.java 11 Jul 2002 18:21:37 -0000 1.26 *************** *** 186,193 **** ////////////////////////////////////////////////////////////////////////// ! // implementation of VirtualMachineImage interface ////////////////////////////////////////////////////////////////////////// ! //------------------------ maybe /** --- 186,193 ---- ////////////////////////////////////////////////////////////////////////// ! // implementation of Snapshot interface ////////////////////////////////////////////////////////////////////////// ! //------------------------ Snapshot /** *************** *** 223,238 **** } ! /** ! * Returns size (in bytes) of allocated memory in the mirrored virtual ! * machine. ! * ! * @return size (in bytes) of allocated memory in the mirrored virtual ! * machine. ! */ ! public long totalMemory() { ! //PENDING ! return 0; ! } ! /** * Gets name of this snapshot. --- 223,227 ---- } ! /** * Gets name of this snapshot. *************** *** 255,259 **** //} ! //------------------------ interafacee /** --- 244,262 ---- //} ! ////////////////////////////////////////////////////////////////////////// ! // implementation of VirtualMachineImageRef interface ! ////////////////////////////////////////////////////////////////////////// ! ! /** ! * Returns size (in bytes) of allocated memory in the mirrored virtual ! * machine. ! * ! * @return size (in bytes) of allocated memory in the mirrored virtual ! * machine. ! */ ! public long totalMemory() { ! //PENDING ! return 0; ! } /** *************** *** 1149,1152 **** --- 1152,1158 ---- /* * $Log$ + * Revision 1.26 2002/07/11 18:21:37 vachis + * no message + * * Revision 1.25 2002/07/04 18:00:31 stolis * Implements Snapshot instead of VirtualMachineImageRef. |
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime In directory usw-pr-cvs1:/tmp/cvs-serv29691 Modified Files: AllocThreadMethodR.java AllocThreadTraceR.java AllocTraceR.java AllocTypeMethodR.java AllocTypeR.java AllocTypeThreadMethodR.java AllocTypeThreadR.java AllocTypeThreadTraceR.java AllocTypeTraceR.java CPUThreadMethodR.java CPUThreadTraceR.java CPUTraceR.java MethodR.java MonThreadMethodR.java MonThreadTraceR.java MonTraceR.java ThreadR.java Log Message: implemented alloc-cpu-mon-listeners. Index: AllocThreadMethodR.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime/AllocThreadMethodR.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** AllocThreadMethodR.java 2 Jul 2002 20:27:02 -0000 1.7 --- AllocThreadMethodR.java 11 Jul 2002 18:17:23 -0000 1.8 *************** *** 36,39 **** --- 36,40 ---- import java.util.*; + import javax.swing.event.EventListenerList; import net.sourceforge.javaprofiler.jpi.*; import net.sourceforge.javaprofiler.jpiimpl.commun.IProf; *************** *** 75,78 **** --- 76,83 ---- allocThreadTraces); + /** A list of event listeners for this component. */ + protected EventListenerList listenerList = new EventListenerList(); + protected transient AllocStatEvent allocEvent; + /** Constructs multi-rooted object * @param typeId Identification of <code>AllocTypeR</code> object. Should *************** *** 271,278 **** */ void setData(IProf.sAllocStatData allocData) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; } --- 276,289 ---- */ void setData(IProf.sAllocStatData allocData) { ! if (numLiveInstances!=allocData.allocNumInstancesLive || ! numTotalInstances!=allocData.allocNumInstancesTotal || ! sizeLiveInstances!=allocData.allocSizeInstancesLive || ! sizeTotalInstances!=allocData.allocSizeInstancesTotal) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; ! fireAllocStatChanged(); ! } } *************** *** 316,319 **** --- 327,332 ---- return getThreadR() + "-" + getLocation(); } + + // ---------- listeners public void removeChildrenListener(int type, ChildrenListener listener) { *************** *** 325,335 **** } ! public void removeAllocStatListener(AllocStatListener listener) { ! // PENDING } ! public void addAllocStatListener(AllocStatListener listener) { ! // PENDING } } --- 338,376 ---- } ! /** ! * Removes an <code>AllocStatListener</code> from this object. ! * @param l the listener to be removed ! */ ! public void removeAllocStatListener(AllocStatListener l) { ! listenerList.remove(AllocStatListener.class, l); } ! /** ! * Adds an <code>AllocStatListener</code> to this object. ! * @param l the listener to be added ! */ ! public void addAllocStatListener(AllocStatListener l) { ! listenerList.add(AllocStatListener.class, l); } + /** + * Notifies all listeners that have registered interest for + * notification on this event type. The event instance + * is lazily created. + */ + protected void fireAllocStatChanged() { + // Guaranteed to return a non-null array + Object[] listeners = listenerList.getListenerList(); + // Process the listeners last to first, notifying + // those that are interested in this event + for (int i = listeners.length-2; i>=0; i-=2) { + if (listeners[i]==AllocStatListener.class) { + // Lazily create the event: + if (allocEvent == null) + allocEvent = new AllocStatEvent(this); + ((AllocStatListener)listeners[i+1]).allocStatChanged( + allocEvent); + } + } + } } Index: AllocThreadTraceR.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime/AllocThreadTraceR.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** AllocThreadTraceR.java 2 Jul 2002 20:27:02 -0000 1.6 --- AllocThreadTraceR.java 11 Jul 2002 18:17:23 -0000 1.7 *************** *** 36,39 **** --- 36,40 ---- import java.util.*; + import javax.swing.event.EventListenerList; import net.sourceforge.javaprofiler.jpi.*; import net.sourceforge.javaprofiler.jpiimpl.commun.IProf; *************** *** 73,76 **** --- 74,81 ---- allocTypeThreadTraces); + /** A list of event listeners for this component. */ + protected EventListenerList listenerList = new EventListenerList(); + protected transient AllocStatEvent allocEvent; + /** Constructs multi-rooted object * @param typeId Identification of <code>AllocTypeR</code> object. Should *************** *** 271,278 **** */ void setData(IProf.sAllocStatData allocData) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; } --- 276,289 ---- */ void setData(IProf.sAllocStatData allocData) { ! if (numLiveInstances!=allocData.allocNumInstancesLive || ! numTotalInstances!=allocData.allocNumInstancesTotal || ! sizeLiveInstances!=allocData.allocSizeInstancesLive || ! sizeTotalInstances!=allocData.allocSizeInstancesTotal) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; ! fireAllocStatChanged(); ! } } *************** *** 319,322 **** --- 330,335 ---- } + // ---------- listeners + public void removeChildrenListener(int type, ChildrenListener listener) { // PENDING *************** *** 327,337 **** } ! public void removeAllocStatListener(AllocStatListener listener) { ! // PENDING } ! public void addAllocStatListener(AllocStatListener listener) { ! // PENDING } } --- 340,378 ---- } ! /** ! * Removes an <code>AllocStatListener</code> from this object. ! * @param l the listener to be removed ! */ ! public void removeAllocStatListener(AllocStatListener l) { ! listenerList.remove(AllocStatListener.class, l); } ! /** ! * Adds an <code>AllocStatListener</code> to this object. ! * @param l the listener to be added ! */ ! public void addAllocStatListener(AllocStatListener l) { ! listenerList.add(AllocStatListener.class, l); } + /** + * Notifies all listeners that have registered interest for + * notification on this event type. The event instance + * is lazily created. + */ + protected void fireAllocStatChanged() { + // Guaranteed to return a non-null array + Object[] listeners = listenerList.getListenerList(); + // Process the listeners last to first, notifying + // those that are interested in this event + for (int i = listeners.length-2; i>=0; i-=2) { + if (listeners[i]==AllocStatListener.class) { + // Lazily create the event: + if (allocEvent == null) + allocEvent = new AllocStatEvent(this); + ((AllocStatListener)listeners[i+1]).allocStatChanged( + allocEvent); + } + } + } } Index: AllocTraceR.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime/AllocTraceR.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** AllocTraceR.java 2 Jul 2002 20:27:02 -0000 1.7 --- AllocTraceR.java 11 Jul 2002 18:17:23 -0000 1.8 *************** *** 36,39 **** --- 36,40 ---- import java.util.*; + import javax.swing.event.EventListenerList; import net.sourceforge.javaprofiler.jpi.*; import net.sourceforge.javaprofiler.jpiimpl.commun.IProf; *************** *** 77,80 **** --- 78,85 ---- allocThreadTraces); + /** A list of event listeners for this component. */ + protected EventListenerList listenerList = new EventListenerList(); + protected transient AllocStatEvent allocEvent; + /** Constructs new object with info. * @param sid Object with data from communication layer. *************** *** 267,274 **** */ void setData(IProf.sAllocStatData allocData) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; } --- 272,285 ---- */ void setData(IProf.sAllocStatData allocData) { ! if (numLiveInstances!=allocData.allocNumInstancesLive || ! numTotalInstances!=allocData.allocNumInstancesTotal || ! sizeLiveInstances!=allocData.allocSizeInstancesLive || ! sizeTotalInstances!=allocData.allocSizeInstancesTotal) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; ! fireAllocStatChanged(); ! } } *************** *** 319,322 **** --- 330,335 ---- } + // ---------- listeners + public void removeChildrenListener(int type, ChildrenListener listener) { // PENDING *************** *** 327,337 **** } ! public void removeAllocStatListener(AllocStatListener listener) { ! // PENDING } ! public void addAllocStatListener(AllocStatListener listener) { ! // PENDING } } --- 340,378 ---- } ! /** ! * Removes an <code>AllocStatListener</code> from this object. ! * @param l the listener to be removed ! */ ! public void removeAllocStatListener(AllocStatListener l) { ! listenerList.remove(AllocStatListener.class, l); } ! /** ! * Adds an <code>AllocStatListener</code> to this object. ! * @param l the listener to be added ! */ ! public void addAllocStatListener(AllocStatListener l) { ! listenerList.add(AllocStatListener.class, l); } + /** + * Notifies all listeners that have registered interest for + * notification on this event type. The event instance + * is lazily created. + */ + protected void fireAllocStatChanged() { + // Guaranteed to return a non-null array + Object[] listeners = listenerList.getListenerList(); + // Process the listeners last to first, notifying + // those that are interested in this event + for (int i = listeners.length-2; i>=0; i-=2) { + if (listeners[i]==AllocStatListener.class) { + // Lazily create the event: + if (allocEvent == null) + allocEvent = new AllocStatEvent(this); + ((AllocStatListener)listeners[i+1]).allocStatChanged( + allocEvent); + } + } + } } Index: AllocTypeMethodR.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime/AllocTypeMethodR.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** AllocTypeMethodR.java 2 Jul 2002 20:27:02 -0000 1.7 --- AllocTypeMethodR.java 11 Jul 2002 18:17:23 -0000 1.8 *************** *** 36,39 **** --- 36,40 ---- import java.util.*; + import javax.swing.event.EventListenerList; import net.sourceforge.javaprofiler.jpi.*; import net.sourceforge.javaprofiler.jpiimpl.commun.IProf; *************** *** 73,76 **** --- 74,81 ---- allocTypeThreadMethods); + /** A list of event listeners for this component. */ + protected EventListenerList listenerList = new EventListenerList(); + protected transient AllocStatEvent allocEvent; + /** Constructs multi-rooted object * @param typeId Identification of <code>AllocTypeR</code> object. Should *************** *** 261,268 **** */ void setData(IProf.sAllocStatData allocData) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; } --- 266,279 ---- */ void setData(IProf.sAllocStatData allocData) { ! if (numLiveInstances!=allocData.allocNumInstancesLive || ! numTotalInstances!=allocData.allocNumInstancesTotal || ! sizeLiveInstances!=allocData.allocSizeInstancesLive || ! sizeTotalInstances!=allocData.allocSizeInstancesTotal) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; ! fireAllocStatChanged(); ! } } *************** *** 289,292 **** --- 300,305 ---- } + // ---------- listeners + public void removeChildrenListener(int type, ChildrenListener listener) { // PENDING *************** *** 297,307 **** } ! public void removeAllocStatListener(AllocStatListener listener) { ! // PENDING } ! public void addAllocStatListener(AllocStatListener listener) { ! // PENDING } } --- 310,348 ---- } ! /** ! * Removes an <code>AllocStatListener</code> from this object. ! * @param l the listener to be removed ! */ ! public void removeAllocStatListener(AllocStatListener l) { ! listenerList.remove(AllocStatListener.class, l); } ! /** ! * Adds an <code>AllocStatListener</code> to this object. ! * @param l the listener to be added ! */ ! public void addAllocStatListener(AllocStatListener l) { ! listenerList.add(AllocStatListener.class, l); } + /** + * Notifies all listeners that have registered interest for + * notification on this event type. The event instance + * is lazily created. + */ + protected void fireAllocStatChanged() { + // Guaranteed to return a non-null array + Object[] listeners = listenerList.getListenerList(); + // Process the listeners last to first, notifying + // those that are interested in this event + for (int i = listeners.length-2; i>=0; i-=2) { + if (listeners[i]==AllocStatListener.class) { + // Lazily create the event: + if (allocEvent == null) + allocEvent = new AllocStatEvent(this); + ((AllocStatListener)listeners[i+1]).allocStatChanged( + allocEvent); + } + } + } } Index: AllocTypeR.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime/AllocTypeR.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** AllocTypeR.java 2 Jul 2002 20:27:02 -0000 1.5 --- AllocTypeR.java 11 Jul 2002 18:17:23 -0000 1.6 *************** *** 36,39 **** --- 36,40 ---- import java.util.*; + import javax.swing.event.EventListenerList; import net.sourceforge.javaprofiler.jpi.*; import net.sourceforge.javaprofiler.jpiimpl.commun.IProf; *************** *** 77,80 **** --- 78,85 ---- allocTypeThreads); + /** A list of event listeners for this component. */ + protected EventListenerList listenerList = new EventListenerList(); + protected transient AllocStatEvent allocEvent; + /** This constructor will find it's component class on its own through * RtImage. *************** *** 340,347 **** */ void setData(IProf.sAllocStatData allocData) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; } --- 345,358 ---- */ void setData(IProf.sAllocStatData allocData) { ! if (numLiveInstances!=allocData.allocNumInstancesLive || ! numTotalInstances!=allocData.allocNumInstancesTotal || ! sizeLiveInstances!=allocData.allocSizeInstancesLive || ! sizeTotalInstances!=allocData.allocSizeInstancesTotal) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; ! fireAllocStatChanged(); ! } } *************** *** 380,383 **** --- 391,396 ---- } + // ---------- listeners + public void removeChildrenListener(int type, ChildrenListener listener) { // PENDING *************** *** 388,398 **** } ! public void addAllocStatListener(AllocStatListener listener) { ! // PENDING } ! public void removeAllocStatListener(AllocStatListener listener) { ! // PENDING } } --- 401,439 ---- } ! /** ! * Removes an <code>AllocStatListener</code> from this object. ! * @param l the listener to be removed ! */ ! public void removeAllocStatListener(AllocStatListener l) { ! listenerList.remove(AllocStatListener.class, l); } ! /** ! * Adds an <code>AllocStatListener</code> to this object. ! * @param l the listener to be added ! */ ! public void addAllocStatListener(AllocStatListener l) { ! listenerList.add(AllocStatListener.class, l); } + /** + * Notifies all listeners that have registered interest for + * notification on this event type. The event instance + * is lazily created. + */ + protected void fireAllocStatChanged() { + // Guaranteed to return a non-null array + Object[] listeners = listenerList.getListenerList(); + // Process the listeners last to first, notifying + // those that are interested in this event + for (int i = listeners.length-2; i>=0; i-=2) { + if (listeners[i]==AllocStatListener.class) { + // Lazily create the event: + if (allocEvent == null) + allocEvent = new AllocStatEvent(this); + ((AllocStatListener)listeners[i+1]).allocStatChanged( + allocEvent); + } + } + } } Index: AllocTypeThreadMethodR.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime/AllocTypeThreadMethodR.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** AllocTypeThreadMethodR.java 2 Jul 2002 20:27:02 -0000 1.7 --- AllocTypeThreadMethodR.java 11 Jul 2002 18:17:23 -0000 1.8 *************** *** 36,39 **** --- 36,40 ---- import java.util.*; + import javax.swing.event.EventListenerList; import net.sourceforge.javaprofiler.jpi.*; import net.sourceforge.javaprofiler.jpiimpl.commun.IProf; *************** *** 76,79 **** --- 77,84 ---- allocTypeThreadTraces); + /** A list of event listeners for this component. */ + protected EventListenerList listenerList = new EventListenerList(); + protected transient AllocStatEvent allocEvent; + /** Constructs multi-rooted object * @param typeId Identification of <code>AllocTypeR</code> object. Should *************** *** 306,313 **** */ void setData(IProf.sAllocStatData allocData) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; } --- 311,324 ---- */ void setData(IProf.sAllocStatData allocData) { ! if (numLiveInstances!=allocData.allocNumInstancesLive || ! numTotalInstances!=allocData.allocNumInstancesTotal || ! sizeLiveInstances!=allocData.allocSizeInstancesLive || ! sizeTotalInstances!=allocData.allocSizeInstancesTotal) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; ! fireAllocStatChanged(); ! } } *************** *** 328,331 **** --- 339,344 ---- } + // ---------- listeners + public void removeChildrenListener(int type, ChildrenListener listener) { // PENDING *************** *** 336,346 **** } ! public void removeAllocStatListener(AllocStatListener listener) { ! // PENDING } ! public void addAllocStatListener(AllocStatListener listener) { ! // PENDING } } --- 349,387 ---- } ! /** ! * Removes an <code>AllocStatListener</code> from this object. ! * @param l the listener to be removed ! */ ! public void removeAllocStatListener(AllocStatListener l) { ! listenerList.remove(AllocStatListener.class, l); } ! /** ! * Adds an <code>AllocStatListener</code> to this object. ! * @param l the listener to be added ! */ ! public void addAllocStatListener(AllocStatListener l) { ! listenerList.add(AllocStatListener.class, l); } + /** + * Notifies all listeners that have registered interest for + * notification on this event type. The event instance + * is lazily created. + */ + protected void fireAllocStatChanged() { + // Guaranteed to return a non-null array + Object[] listeners = listenerList.getListenerList(); + // Process the listeners last to first, notifying + // those that are interested in this event + for (int i = listeners.length-2; i>=0; i-=2) { + if (listeners[i]==AllocStatListener.class) { + // Lazily create the event: + if (allocEvent == null) + allocEvent = new AllocStatEvent(this); + ((AllocStatListener)listeners[i+1]).allocStatChanged( + allocEvent); + } + } + } } Index: AllocTypeThreadR.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime/AllocTypeThreadR.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** AllocTypeThreadR.java 2 Jul 2002 20:27:02 -0000 1.8 --- AllocTypeThreadR.java 11 Jul 2002 18:17:23 -0000 1.9 *************** *** 36,39 **** --- 36,40 ---- import java.util.*; + import javax.swing.event.EventListenerList; import net.sourceforge.javaprofiler.jpi.*; import net.sourceforge.javaprofiler.jpiimpl.commun.IProf; *************** *** 73,76 **** --- 74,81 ---- allocTypeThreadTraces); + /** A list of event listeners for this component. */ + protected EventListenerList listenerList = new EventListenerList(); + protected transient AllocStatEvent allocEvent; + /** Constructs multi-rooted object * @param typeId Identification of <code>AllocTypeR</code> object. Should *************** *** 268,275 **** */ void setData(IProf.sAllocStatData allocData) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; } --- 273,286 ---- */ void setData(IProf.sAllocStatData allocData) { ! if (numLiveInstances!=allocData.allocNumInstancesLive || ! numTotalInstances!=allocData.allocNumInstancesTotal || ! sizeLiveInstances!=allocData.allocSizeInstancesLive || ! sizeTotalInstances!=allocData.allocSizeInstancesTotal) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; ! fireAllocStatChanged(); ! } } *************** *** 304,307 **** --- 315,320 ---- } + // ---------- listeners + public void removeChildrenListener(int type, ChildrenListener listener) { // PENDING *************** *** 312,322 **** } ! public void removeAllocStatListener(AllocStatListener listener) { ! // PENDING } ! public void addAllocStatListener(AllocStatListener listener) { ! // PENDING } } --- 325,363 ---- } ! /** ! * Removes an <code>AllocStatListener</code> from this object. ! * @param l the listener to be removed ! */ ! public void removeAllocStatListener(AllocStatListener l) { ! listenerList.remove(AllocStatListener.class, l); } ! /** ! * Adds an <code>AllocStatListener</code> to this object. ! * @param l the listener to be added ! */ ! public void addAllocStatListener(AllocStatListener l) { ! listenerList.add(AllocStatListener.class, l); } + /** + * Notifies all listeners that have registered interest for + * notification on this event type. The event instance + * is lazily created. + */ + protected void fireAllocStatChanged() { + // Guaranteed to return a non-null array + Object[] listeners = listenerList.getListenerList(); + // Process the listeners last to first, notifying + // those that are interested in this event + for (int i = listeners.length-2; i>=0; i-=2) { + if (listeners[i]==AllocStatListener.class) { + // Lazily create the event: + if (allocEvent == null) + allocEvent = new AllocStatEvent(this); + ((AllocStatListener)listeners[i+1]).allocStatChanged( + allocEvent); + } + } + } } Index: AllocTypeThreadTraceR.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime/AllocTypeThreadTraceR.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** AllocTypeThreadTraceR.java 2 Jul 2002 20:27:02 -0000 1.6 --- AllocTypeThreadTraceR.java 11 Jul 2002 18:17:23 -0000 1.7 *************** *** 36,39 **** --- 36,40 ---- import java.util.*; + import javax.swing.event.EventListenerList; import net.sourceforge.javaprofiler.jpi.*; import net.sourceforge.javaprofiler.jpiimpl.commun.IProf; *************** *** 70,73 **** --- 71,78 ---- private long sizeTotalInstances; + /** A list of event listeners for this component. */ + protected EventListenerList listenerList = new EventListenerList(); + protected transient AllocStatEvent allocEvent; + /** Constructs multi-rooted object * @param typeId Identification of <code>AllocTypeR</code> object. Should *************** *** 294,301 **** */ void setData(IProf.sAllocStatData allocData) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; } --- 299,312 ---- */ void setData(IProf.sAllocStatData allocData) { ! if (numLiveInstances!=allocData.allocNumInstancesLive || ! numTotalInstances!=allocData.allocNumInstancesTotal || ! sizeLiveInstances!=allocData.allocSizeInstancesLive || ! sizeTotalInstances!=allocData.allocSizeInstancesTotal) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; ! fireAllocStatChanged(); ! } } *************** *** 316,326 **** } ! public void removeAllocStatListener(AllocStatListener listener) { ! // PENDING } ! public void addAllocStatListener(AllocStatListener listener) { ! // PENDING } } --- 327,367 ---- } ! // ---------- listeners ! ! /** ! * Removes an <code>AllocStatListener</code> from this object. ! * @param l the listener to be removed ! */ ! public void removeAllocStatListener(AllocStatListener l) { ! listenerList.remove(AllocStatListener.class, l); } ! /** ! * Adds an <code>AllocStatListener</code> to this object. ! * @param l the listener to be added ! */ ! public void addAllocStatListener(AllocStatListener l) { ! listenerList.add(AllocStatListener.class, l); } + /** + * Notifies all listeners that have registered interest for + * notification on this event type. The event instance + * is lazily created. + */ + protected void fireAllocStatChanged() { + // Guaranteed to return a non-null array + Object[] listeners = listenerList.getListenerList(); + // Process the listeners last to first, notifying + // those that are interested in this event + for (int i = listeners.length-2; i>=0; i-=2) { + if (listeners[i]==AllocStatListener.class) { + // Lazily create the event: + if (allocEvent == null) + allocEvent = new AllocStatEvent(this); + ((AllocStatListener)listeners[i+1]).allocStatChanged( + allocEvent); + } + } + } } Index: AllocTypeTraceR.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime/AllocTypeTraceR.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** AllocTypeTraceR.java 2 Jul 2002 20:27:02 -0000 1.7 --- AllocTypeTraceR.java 11 Jul 2002 18:17:23 -0000 1.8 *************** *** 36,39 **** --- 36,40 ---- import java.util.*; + import javax.swing.event.EventListenerList; import net.sourceforge.javaprofiler.jpi.*; import net.sourceforge.javaprofiler.jpiimpl.commun.IProf; *************** *** 72,75 **** --- 73,80 ---- allocTypeThreadTraces); + /** A list of event listeners for this component. */ + protected EventListenerList listenerList = new EventListenerList(); + protected transient AllocStatEvent allocEvent; + /** Constructs multi-rooted object * @param typeId Identification of <code>AllocTypeR</code> object. Should *************** *** 270,277 **** */ void setData(IProf.sAllocStatData allocData) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; } --- 275,288 ---- */ void setData(IProf.sAllocStatData allocData) { ! if (numLiveInstances!=allocData.allocNumInstancesLive || ! numTotalInstances!=allocData.allocNumInstancesTotal || ! sizeLiveInstances!=allocData.allocSizeInstancesLive || ! sizeTotalInstances!=allocData.allocSizeInstancesTotal) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; ! fireAllocStatChanged(); ! } } *************** *** 299,302 **** --- 310,315 ---- } + // ---------- listeners + public void removeChildrenListener(int type, ChildrenListener listener) { // PENDING *************** *** 307,317 **** } ! public void addAllocStatListener( AllocStatListener listener) { ! // PENDING } ! public void removeAllocStatListener( AllocStatListener listener) { ! // PENDING } - } --- 320,358 ---- } ! /** ! * Removes an <code>AllocStatListener</code> from this object. ! * @param l the listener to be removed ! */ ! public void removeAllocStatListener(AllocStatListener l) { ! listenerList.remove(AllocStatListener.class, l); } ! /** ! * Adds an <code>AllocStatListener</code> to this object. ! * @param l the listener to be added ! */ ! public void addAllocStatListener(AllocStatListener l) { ! listenerList.add(AllocStatListener.class, l); ! } ! ! /** ! * Notifies all listeners that have registered interest for ! * notification on this event type. The event instance ! * is lazily created. ! */ ! protected void fireAllocStatChanged() { ! // Guaranteed to return a non-null array ! Object[] listeners = listenerList.getListenerList(); ! // Process the listeners last to first, notifying ! // those that are interested in this event ! for (int i = listeners.length-2; i>=0; i-=2) { ! if (listeners[i]==AllocStatListener.class) { ! // Lazily create the event: ! if (allocEvent == null) ! allocEvent = new AllocStatEvent(this); ! ((AllocStatListener)listeners[i+1]).allocStatChanged( ! allocEvent); ! } ! } } } Index: CPUThreadMethodR.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime/CPUThreadMethodR.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** CPUThreadMethodR.java 2 Jul 2002 20:27:02 -0000 1.5 --- CPUThreadMethodR.java 11 Jul 2002 18:17:23 -0000 1.6 *************** *** 36,39 **** --- 36,40 ---- import java.util.*; + import javax.swing.event.EventListenerList; import net.sourceforge.javaprofiler.jpi.*; import net.sourceforge.javaprofiler.jpiimpl.commun.IProf; *************** *** 70,73 **** --- 71,78 ---- cpuThreadTraces); + /** A list of event listeners for this component. */ + protected EventListenerList listenerList = new EventListenerList(); + protected transient CPUStatEvent CPUEvent; + /** Constructs multi-rooted object * @param typeId Identification of <code>AllocTypeR</code> object. Should *************** *** 242,247 **** */ void setData(IProf.sCpuStatData cpuData) { ! hits=cpuData.hits; ! pureTime=cpuData.pureTime; } --- 247,256 ---- */ void setData(IProf.sCpuStatData cpuData) { ! if (hits!=cpuData.hits || ! pureTime!=cpuData.pureTime) { ! hits=cpuData.hits; ! pureTime=cpuData.pureTime; ! fireCPUStatChanged(); ! } } *************** *** 280,283 **** --- 289,294 ---- } + // ---------- listeners + public void removeChildrenListener(int type, ChildrenListener listener) { // PENDING *************** *** 288,298 **** } ! public void addCPUStatListener(CPUStatListener listener) { ! // PENDING } ! public void removeCPUStatListener(CPUStatListener listener) { ! // PENDING } } --- 299,337 ---- } ! /** ! * Removes an <code>CPUStatListener</code> from this object. ! * @param l the listener to be removed ! */ ! public void removeCPUStatListener(CPUStatListener l) { ! listenerList.remove(CPUStatListener.class, l); } ! /** ! * Adds an <code>CPUStatListener</code> to this object. ! * @param l the listener to be added ! */ ! public void addCPUStatListener(CPUStatListener l) { ! listenerList.add(CPUStatListener.class, l); } + /** + * Notifies all listeners that have registered interest for + * notification on this event type. The event instance + * is lazily created. + */ + protected void fireCPUStatChanged() { + // Guaranteed to return a non-null array + Object[] listeners = listenerList.getListenerList(); + // Process the listeners last to first, notifying + // those that are interested in this event + for (int i = listeners.length-2; i>=0; i-=2) { + if (listeners[i]==CPUStatListener.class) { + // Lazily create the event: + if (CPUEvent == null) + CPUEvent = new CPUStatEvent(this); + ((CPUStatListener)listeners[i+1]).CPUStatChanged( + CPUEvent); + } + } + } } Index: CPUThreadTraceR.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime/CPUThreadTraceR.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** CPUThreadTraceR.java 2 Jul 2002 20:27:02 -0000 1.5 --- CPUThreadTraceR.java 11 Jul 2002 18:17:23 -0000 1.6 *************** *** 36,39 **** --- 36,40 ---- import java.util.*; + import javax.swing.event.EventListenerList; import net.sourceforge.javaprofiler.jpi.*; import net.sourceforge.javaprofiler.jpiimpl.commun.IProf; *************** *** 64,67 **** --- 65,72 ---- private long pureTime; + /** A list of event listeners for this component. */ + protected EventListenerList listenerList = new EventListenerList(); + protected transient CPUStatEvent CPUEvent; + /** Constructs multi-rooted object * @param typeId Identification of <code>AllocTypeR</code> object. Should *************** *** 239,244 **** */ void setData(IProf.sCpuStatData cpuData) { ! hits=cpuData.hits; ! pureTime=cpuData.pureTime; } --- 244,253 ---- */ void setData(IProf.sCpuStatData cpuData) { ! if (hits!=cpuData.hits || ! pureTime!=cpuData.pureTime) { ! hits=cpuData.hits; ! pureTime=cpuData.pureTime; ! fireCPUStatChanged(); ! } } *************** *** 279,289 **** } ! public void addCPUStatListener(CPUStatListener listener) { ! // PENDING } ! public void removeCPUStatListener(CPUStatListener listener) { ! // PENDING } } --- 288,328 ---- } ! // ---------- listeners ! ! /** ! * Removes an <code>CPUStatListener</code> from this object. ! * @param l the listener to be removed ! */ ! public void removeCPUStatListener(CPUStatListener l) { ! listenerList.remove(CPUStatListener.class, l); } ! /** ! * Adds an <code>CPUStatListener</code> to this object. ! * @param l the listener to be added ! */ ! public void addCPUStatListener(CPUStatListener l) { ! listenerList.add(CPUStatListener.class, l); } + /** + * Notifies all listeners that have registered interest for + * notification on this event type. The event instance + * is lazily created. + */ + protected void fireCPUStatChanged() { + // Guaranteed to return a non-null array + Object[] listeners = listenerList.getListenerList(); + // Process the listeners last to first, notifying + // those that are interested in this event + for (int i = listeners.length-2; i>=0; i-=2) { + if (listeners[i]==CPUStatListener.class) { + // Lazily create the event: + if (CPUEvent == null) + CPUEvent = new CPUStatEvent(this); + ((CPUStatListener)listeners[i+1]).CPUStatChanged( + CPUEvent); + } + } + } } Index: CPUTraceR.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime/CPUTraceR.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** CPUTraceR.java 2 Jul 2002 20:27:02 -0000 1.6 --- CPUTraceR.java 11 Jul 2002 18:17:23 -0000 1.7 *************** *** 36,39 **** --- 36,40 ---- import java.util.*; + import javax.swing.event.EventListenerList; import net.sourceforge.javaprofiler.jpi.*; import net.sourceforge.javaprofiler.jpiimpl.commun.IProf; *************** *** 72,75 **** --- 73,80 ---- cpuThreadTraces); + /** A list of event listeners for this component. */ + protected EventListenerList listenerList = new EventListenerList(); + protected transient CPUStatEvent CPUEvent; + /** Constructs new object with info. * @param sid Object with data from communication layer. *************** *** 233,238 **** */ void setData(IProf.sCpuStatData cpuData) { ! hits=cpuData.hits; ! pureTime=cpuData.pureTime; } --- 238,247 ---- */ void setData(IProf.sCpuStatData cpuData) { ! if (hits!=cpuData.hits || ! pureTime!=cpuData.pureTime) { ! hits=cpuData.hits; ! pureTime=cpuData.pureTime; ! fireCPUStatChanged(); ! } } *************** *** 277,280 **** --- 286,291 ---- } + // ---------- listeners + public void removeChildrenListener(int type, ChildrenListener listener) { // PENDING *************** *** 285,295 **** } ! public void addCPUStatListener(CPUStatListener listener) { ! // PENDING } ! public void removeCPUStatListener(CPUStatListener listener) { ! // PENDING } ! } --- 296,334 ---- } ! /** ! * Removes an <code>CPUStatListener</code> from this object. ! * @param l the listener to be removed ! */ ! public void removeCPUStatListener(CPUStatListener l) { ! listenerList.remove(CPUStatListener.class, l); } ! /** ! * Adds an <code>CPUStatListener</code> to this object. ! * @param l the listener to be added ! */ ! public void addCPUStatListener(CPUStatListener l) { ! listenerList.add(CPUStatListener.class, l); } ! /** ! * Notifies all listeners that have registered interest for ! * notification on this event type. The event instance ! * is lazily created. ! */ ! protected void fireCPUStatChanged() { ! // Guaranteed to return a non-null array ! Object[] listeners = listenerList.getListenerList(); ! // Process the listeners last to first, notifying ! // those that are interested in this event ! for (int i = listeners.length-2; i>=0; i-=2) { ! if (listeners[i]==CPUStatListener.class) { ! // Lazily create the event: ! if (CPUEvent == null) ! CPUEvent = new CPUStatEvent(this); ! ((CPUStatListener)listeners[i+1]).CPUStatChanged( ! CPUEvent); ! } ! } ! } ! } \ No newline at end of file Index: MethodR.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime/MethodR.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** MethodR.java 2 Jul 2002 20:27:02 -0000 1.7 --- MethodR.java 11 Jul 2002 18:17:23 -0000 1.8 *************** *** 36,39 **** --- 36,40 ---- import java.util.*; + import javax.swing.event.EventListenerList; import net.sourceforge.javaprofiler.jpi.*; import net.sourceforge.javaprofiler.jpiimpl.commun.IProf; *************** *** 98,101 **** --- 99,108 ---- monThreadMethods); + /** A list of event listeners for this component. */ + protected EventListenerList listenerList = new EventListenerList(); + protected transient AllocStatEvent allocEvent; + protected transient CPUStatEvent CPUEvent; + protected transient MonStatEvent monEvent; + /** Constructs new object with info. * @param sid Object with data from communication layer. *************** *** 413,420 **** */ void setData(IProf.sAllocStatData allocData) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; } --- 420,433 ---- */ void setData(IProf.sAllocStatData allocData) { ! if (numLiveInstances!=allocData.allocNumInstancesLive || ! numTotalInstances!=allocData.allocNumInstancesTotal || ! sizeLiveInstances!=allocData.allocSizeInstancesLive || ! sizeTotalInstances!=allocData.allocSizeInstancesTotal) { ! numLiveInstances=allocData.allocNumInstancesLive; ! numTotalInstances=allocData.allocNumInstancesTotal; ! sizeLiveInstances=allocData.allocSizeInstancesLive; ! sizeTotalInstances=allocData.allocSizeInstancesTotal; ! fireAllocStatChanged(); ! } } *************** *** 423,428 **** */ void setData(IProf.sCpuStatData cpuData) { ! hits=cpuData.hits; ! pureTime=cpuData.pureTime; } --- 436,445 ---- */ void setData(IProf.sCpuStatData cpuData) { ! if (hits!=cpuData.hits || ! pureTime!=cpuData.pureTime) { ! hits=cpuData.hits; ! pureTime=cpuData.pureTime; ! fireCPUStatChanged(); ! } } *************** *** 431,436 **** */ void setData(IProf.sMonStatData monData) { ! monitorHits=monData.hits; ! time=monData.time; } --- 448,457 ---- */ void setData(IProf.sMonStatData monData) { ! if (monitorHits!=monData.hits || ! time!=monData.time) { ! monitorHits=monData.hits; ! time=monData.time; ! fireMonStatChanged(); ! } } *************** *** 477,480 **** --- 498,503 ---- } + // ---------- listeners + public void removeChildrenListener(int type, ChildrenListener listener) { // PENDING *************** *** 485,511 **** } ! public void addAllocStatListener(AllocStatListener listener) { ! // PENDING } ! public void removeAllocStatListener(AllocStatListener listener) { ! // PENDING } ! public void removeMonStatListener(MonStatListener listener) { ! // PENDING } ! public void addCPUStatListener(CPUStatListener listener) { ! // PENDING } ! public void removeCPUStatListener(CPUStatListener listener) { ! // PENDING } ! public void addMonStatListener(MonStatListener listener) { ! // PENDING } } --- 508,620 ---- } ! /** ! * Removes an <code>AllocStatListener</code> from this object. ! * @param l the listener to be removed ! */ ! public void removeAllocStatListener(AllocStatListener l) { ! listenerList.remove(AllocStatListener.class, l); } ! /** ! * Adds an <code>AllocStatListener</code> to this object. ! * @param l the listener to be added ! */ ! public void addAllocStatListener(AllocStatListener l) { ! listenerList.add(AllocStatListener.class, l); } ! /** ! * Notifies all listeners that have registered interest for ! * notification on this event type. The event instance ! * is lazily created. ! */ ! protected void fireAllocStatChanged() { ! // Guaranteed to return a non-null array ! Object[] listeners = listenerList.getListenerList(); ! // Process the listeners last to first, notifying ! // those that are interested in this event ! for (int i = listeners.length-2; i>=0; i-=2) { ! if (listeners[i]==AllocStatListener.class) { ! // Lazily create the event: ! if (allocEvent == null) ! allocEvent = new AllocStatEvent(this); ! ((AllocStatListener)listeners[i+1]).allocStatChanged( ! allocEvent); ! } ! } } ! /** ! * Removes an <code>CPUStatListener</code> from this object. ! * @param l the listener to be removed ! */ ! public void removeCPUStatListener(CPUStatListener l) { ! listenerList.remove(CPUStatListener.class, l); } ! /** ! * Adds an <code>CPUStatListener</code> to this object. ! * @param l the listener to be added ! */ ! public void addCPUStatListener(CPUStatListener l) { ! listenerList.add(CPUStatListener.class, l); } ! /** ! * Notifies all listeners that have registered interest for ! * notification on this event type. The event instance ! * is lazily created. ! */ ! protected void fireCPUStatChanged() { ! // Guaranteed to return a non-null array ! Object[] listeners = listenerList.getListenerList(); ! // Process the listeners last to first, notifying ! // those that are interested in this event ! for (int i = listeners.length-2; i>=0; i-=2) { ! if (listeners[i]==CPUStatListener.class) { ! // Lazily create the event: ! if (CPUEvent == null) ! CPUEvent = new CPUStatEvent(this); ! ((CPUStatListener)listeners[i+1]).CPUStatChanged( ! CPUEvent); ! } ! } ! } ! ! /** ! * Removes an <code>MonStatListener</code> from this object. ! * @param l the listener to be removed ! */ ! public void removeMonStatListener(MonStatListener l) { ! listenerList.remove(MonStatListener.class, l); } + /** + * Adds an <code>MonStatListener</code> to this object. + * @param l the listener to be added + */ + public void addMonStatListener(MonStatListener l) { + listenerList.add(MonStatListener.class, l); + } + + /** + * Notifies all listeners that have registered interest for + * notification on this event type. The event instance + * is lazily created. + */ + protected void fireMonStatChanged() { + // Guaranteed to return a non-null array + Object[] listeners = listenerList.getListenerList(); + // Process the listeners last to first, notifying + // those that are interested in this event + for (int i = listeners.length-2; i>=0; i-=2) { + if (listeners[i]==MonStatListener.class) { + // Lazily create the event: + if (monEvent == null) + monEvent = new MonStatEvent(this); + ((MonStatListener)listeners[i+1]).monStatChanged( + monEvent); + } + } + } } Index: MonThreadMethodR.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime/MonThreadMethodR.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** MonThreadMethodR.java 2 Jul 2002 20:27:02 -0000 1.5 --- MonThreadMethodR.java 11 Jul 2002 18:17:23 -0000 1.6 *************** *** 36,39 **** --- 36,40 ---- import java.util.*; + import javax.swing.event.EventListenerList; import net.sourceforge.javaprofiler.jpi.*; import net.sourceforge.javaprofiler.jpiimpl.commun.IProf; *************** *** 70,73 **** --- 71,78 ---- monThreadTraces); + /** A list of event listeners for this component. */ + protected EventListenerList listenerList = new EventListenerList(); + protected transient MonStatEvent monEvent; + /** Constructs multi-rooted object * @param typeId Identification of <code>AllocTypeR</code> object. Should *************** *** 242,247 **** */ void setData(IProf.sMonStatData monData) { ! monitorHits=monData.hits; ! time=monData.time; } --- 247,256 ---- */ void setData(IProf.sMonStatData monData) { ! if (monitorHits!=monData.hits || ! time!=monData.time) { ! monitorHits=monData.hits; ! time=monData.time; ! fireMonStatChanged(); ! } } *************** *** 280,283 **** --- 289,294 ---- } + // ---------- listeners + public void removeChildrenListener(int type, ChildrenListener listener) { // PENDING *************** *** 288,298 **** } ! public void addMonStatListener(MonStatListener listener) { ! // PENDING } ! public void removeMonStatListener(MonStatListener listener) { ! // PENDING } } --- 299,337 ---- } ! /** ! * Removes an <code>MonStatListener</code> from this object. ! * @param l the listener to be removed ! */ ! public void removeMonStatListener(MonStatListener l) { ! listenerList.remove(MonStatListener.class, l); } ! /** ! * Adds an <code>MonStatListener</code> to this object. ! * @param l the listener to be added ! */ ! public void addMonStatListener(MonStatListener l) { ! listenerList.add(MonStatListener.class, l); } + /** + * Notifies all listeners that have registered interest for + * notification on this event type. The event instance + * is lazily created. + */ + protected void fireMonStatChanged() { + // Guaranteed to return a non-null array + Object[] listeners = listenerList.getListenerList(); + // Process the listeners last to first, notifying + // those that are interested in this event + for (int i = listeners.length-2; i>=0; i-=2) { + if (listeners[i]==MonStatListener.class) { + // Lazily create the event: + if (monEvent == null) + monEvent = new MonStatEvent(this); + ((MonStatListener)listeners[i+1]).monStatChanged( + monEvent); + } + } + } } Index: MonThreadTraceR.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime/MonThreadTraceR.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** MonThreadTraceR.java 2 Jul 2002 20:27:02 -0000 1.5 --- MonThreadTraceR.java 11 Jul 2002 18:17:23 -0000 1.6 *************** *** 36,39 **** --- 36,40 ---- import java.util.*; + import javax.swing.event.EventListenerList; import net.sourceforge.javaprofiler.jpi.*; import net.sourceforge.javaprofiler.jpiimpl.commun.IProf; *************** *** 64,67 **** --- 65,72 ---- private long time; + /** A list of event listeners for this component. */ + protected EventListenerList listenerList = new EventListenerList(); + protected transient MonStatEvent monEvent; + /** Constructs multi-rooted object * @param typeId Identification of <code>AllocTypeR</code> object. Should *************** *** 239,244 **** */ void setData(IProf.sMonStatData monData) { ! monitorHits=monData.hits; ! time=monData.time; } --- 244,253 ---- */ void setData(IProf.sMonStatData monData) { ! if (monitorHits!=monData.hits || ! time!=monData.time) { ! monitorHits=monData.hits; ! time=monData.time; ! fireMonStatChanged(); ! } } *************** *** 279,289 **** } ! public void addMonStatListener(MonStatListener listener) { ! // PENDING } ! public void removeMonStatListener(MonStatListener listener) { ! // PENDING } } --- 288,328 ---- } ! // ---------- listeners ! ! /** ! * Removes an <code>MonStatListener</code> from this object. ! * @param l the listener to be removed ! */ ! public void removeMonStatListener(MonStatListener l) { ! listenerList.remove(MonStatListener.class, l); } ! /** ! * Adds an <code>MonStatListener</code> to this object. ! * @param l the listener to be added ! */ ! public void addMonStatListener(MonStatListener l) { ! listenerList.add(MonStatListener.class, l); } + /** + * Notifies all listeners that have registered interest for + * notification on this event type. The event instance + * is lazily created. + */ + protected void fireMonStatChanged() { + // Guaranteed to return a non-null array + Object[] listeners = listenerList.getListenerList(); + // Process the listeners last to first, notifying + // those that are interested in this event + for (int i = listeners.length-2; i>=0; i-=2) { + if (listeners[i]==MonStatListener.class) { + // Lazily create the event: + if (monEvent == null) + monEvent = new MonStatEvent(this); + ((MonStatListener)listeners[i+1]).monStatChanged( + monEvent); + } + } + } } Index: MonTraceR.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime/MonTraceR.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** MonTr... [truncated message content] |
From: Pavel V. <va...@us...> - 2002-07-11 16:11:28
|
Update of /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi In directory usw-pr-cvs1:/tmp/cvs-serv14553 Added Files: Constants.java Log Message: Constants used in JPI --- NEW FILE: Constants.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.jpi; /** * Constants used in JPI * @author Pavel Vacha */ public interface Constants { static final int NONE = 0; static final int CPU = 1; static final int ALLOC = 2; static final int MON = 4; static final int TYPE = 8; static final int THREAD = 16; static final int METHOD = 32; static final int TRACE = 64; static final int CLASS = 128; static final int THREADGROUP = 256; static final int GCRUN = 512; static final int CALLTREE = 1024; static final int FRAME = 2048; static final int FIELD = 4096; static final int CPU_TRACE = CPU | TRACE; static final int ALLOC_TRACE = ALLOC | TRACE; static final int MON_TRACE = MON | TRACE; static final int CPU_THREAD_METHOD = CPU | THREAD | METHOD; static final int ALLOC_THREAD_METHOD = ALLOC | THREAD | METHOD; static final int MON_THREAD_METHOD = MON | THREAD | METHOD; static final int CPU_THREAD_TRACE = CPU | THREAD | TRACE; static final int ALLOC_THREAD_TRACE = ALLOC | THREAD | TRACE; static final int MON_THREAD_TRACE = MON | THREAD | TRACE; static final int ALLOC_TYPE_METHOD = ALLOC | TYPE | METHOD; static final int ALLOC_TYPE_TRACE = ALLOC | TYPE | TRACE; static final int ALLOC_TYPE_THREAD = ALLOC | TYPE | THREAD; static final int ALLOC_TYPE_THREAD_METHOD = ALLOC | TYPE | THREAD | METHOD; static final int ALLOC_TYPE_THREAD_TRACE = ALLOC | TYPE | THREAD | TRACE; } |
From: Lukas P. <pe...@us...> - 2002-07-10 14:52:59
|
Update of /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi In directory usw-pr-cvs1:/tmp/cvs-serv14451 Modified Files: AllocStatListener.java MonStatListener.java Log Message: method names now start with lower case letter Index: AllocStatListener.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/AllocStatListener.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** AllocStatListener.java 10 Jul 2002 14:24:16 -0000 1.4 --- AllocStatListener.java 10 Jul 2002 14:52:54 -0000 1.5 *************** *** 22,30 **** public interface AllocStatListener extends java.util.EventListener { ! void AllocStatChanged( AllocStatEvent event); } /* * $Log$ * Revision 1.4 2002/07/10 14:24:16 petrul * listeners now extend java.util.EventListener --- 22,33 ---- public interface AllocStatListener extends java.util.EventListener { ! void allocStatChanged( AllocStatEvent event); } /* * $Log$ + * Revision 1.5 2002/07/10 14:52:54 petrul + * method names now start with lower case letter + * * Revision 1.4 2002/07/10 14:24:16 petrul * listeners now extend java.util.EventListener Index: MonStatListener.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/MonStatListener.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** MonStatListener.java 10 Jul 2002 14:24:16 -0000 1.4 --- MonStatListener.java 10 Jul 2002 14:52:54 -0000 1.5 *************** *** 22,30 **** public interface MonStatListener extends java.util.EventListener { ! void MonStatChanged( MonStatEvent event); } /* * $Log$ * Revision 1.4 2002/07/10 14:24:16 petrul * listeners now extend java.util.EventListener --- 22,33 ---- public interface MonStatListener extends java.util.EventListener { ! void monStatChanged( MonStatEvent event); } /* * $Log$ + * Revision 1.5 2002/07/10 14:52:54 petrul + * method names now start with lower case letter + * * Revision 1.4 2002/07/10 14:24:16 petrul * listeners now extend java.util.EventListener |
From: Lukas P. <pe...@us...> - 2002-07-10 14:24:21
|
Update of /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi In directory usw-pr-cvs1:/tmp/cvs-serv4794 Modified Files: AllocStatListener.java CPUStatListener.java ChildrenListener.java MonStatListener.java Log Message: listeners now extend java.util.EventListener Index: AllocStatListener.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/AllocStatListener.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** AllocStatListener.java 2 Jul 2002 20:18:29 -0000 1.3 --- AllocStatListener.java 10 Jul 2002 14:24:16 -0000 1.4 *************** *** 21,25 **** package net.sourceforge.javaprofiler.jpi; ! public interface AllocStatListener { void AllocStatChanged( AllocStatEvent event); } --- 21,25 ---- package net.sourceforge.javaprofiler.jpi; ! public interface AllocStatListener extends java.util.EventListener { void AllocStatChanged( AllocStatEvent event); } *************** *** 27,30 **** --- 27,33 ---- /* * $Log$ + * Revision 1.4 2002/07/10 14:24:16 petrul + * listeners now extend java.util.EventListener + * * Revision 1.3 2002/07/02 20:18:29 stolis * License added. Index: CPUStatListener.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/CPUStatListener.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** CPUStatListener.java 2 Jul 2002 20:17:13 -0000 1.3 --- CPUStatListener.java 10 Jul 2002 14:24:16 -0000 1.4 *************** *** 21,25 **** package net.sourceforge.javaprofiler.jpi; ! public interface CPUStatListener { void CPUStatChanged( CPUStatEvent event); } --- 21,25 ---- package net.sourceforge.javaprofiler.jpi; ! public interface CPUStatListener extends java.util.EventListener { void CPUStatChanged( CPUStatEvent event); } *************** *** 27,30 **** --- 27,33 ---- /* * $Log$ + * Revision 1.4 2002/07/10 14:24:16 petrul + * listeners now extend java.util.EventListener + * * Revision 1.3 2002/07/02 20:17:13 stolis * License added. Index: ChildrenListener.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/ChildrenListener.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** ChildrenListener.java 2 Jul 2002 20:17:14 -0000 1.3 --- ChildrenListener.java 10 Jul 2002 14:24:16 -0000 1.4 *************** *** 21,25 **** package net.sourceforge.javaprofiler.jpi; ! public interface ChildrenListener { void childrenAdded( ChildrenEvent event); void childrenChanged( ChildrenEvent event); --- 21,25 ---- package net.sourceforge.javaprofiler.jpi; ! public interface ChildrenListener extends java.util.EventListener { void childrenAdded( ChildrenEvent event); void childrenChanged( ChildrenEvent event); *************** *** 28,31 **** --- 28,34 ---- /* * $Log$ + * Revision 1.4 2002/07/10 14:24:16 petrul + * listeners now extend java.util.EventListener + * * Revision 1.3 2002/07/02 20:17:14 stolis * License added. Index: MonStatListener.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/MonStatListener.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** MonStatListener.java 2 Jul 2002 20:17:13 -0000 1.3 --- MonStatListener.java 10 Jul 2002 14:24:16 -0000 1.4 *************** *** 21,25 **** package net.sourceforge.javaprofiler.jpi; ! public interface MonStatListener { void MonStatChanged( MonStatEvent event); } --- 21,25 ---- package net.sourceforge.javaprofiler.jpi; ! public interface MonStatListener extends java.util.EventListener { void MonStatChanged( MonStatEvent event); } *************** *** 27,30 **** --- 27,33 ---- /* * $Log$ + * Revision 1.4 2002/07/10 14:24:16 petrul + * listeners now extend java.util.EventListener + * * Revision 1.3 2002/07/02 20:17:13 stolis * License added. |
From: Jan S. <st...@us...> - 2002-07-04 18:21:15
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions In directory usw-pr-cvs1:/tmp/cvs-serv11761/net/sourceforge/javaprofiler/module/actions Modified Files: AttachPanel.java Log Message: Changes forced by new API. Index: AttachPanel.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/AttachPanel.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** AttachPanel.java 16 May 2002 12:14:26 -0000 1.2 --- AttachPanel.java 4 Jul 2002 18:21:12 -0000 1.3 *************** *** 32,36 **** import net.sourceforge.javaprofiler.jpi.Bootstrap; ! import net.sourceforge.javaprofiler.jpi.VirtualMachine; import net.sourceforge.javaprofiler.jpi.connect.*; import net.sourceforge.javaprofiler.module.data.Session; --- 32,36 ---- import net.sourceforge.javaprofiler.jpi.Bootstrap; ! import net.sourceforge.javaprofiler.jpi.VirtualMachineRef; import net.sourceforge.javaprofiler.jpi.connect.*; import net.sourceforge.javaprofiler.module.data.Session; *************** *** 157,161 **** args.put(key, arg); } ! VirtualMachine vm=connector.connect(args); return new Session(vm, true, name.deleteCharAt(name.length()-1).toString()); } --- 157,161 ---- args.put(key, arg); } ! VirtualMachineRef vm=connector.connect(args); return new Session(vm, true, name.deleteCharAt(name.length()-1).toString()); } *************** *** 186,189 **** --- 186,192 ---- /* * $Log$ + * Revision 1.3 2002/07/04 18:21:12 stolis + * Changes forced by new API. + * * Revision 1.2 2002/05/16 12:14:26 stolis * Attach panel generalized for both attach and listen connectors. |
From: Jan S. <st...@us...> - 2002-07-04 18:21:15
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/data In directory usw-pr-cvs1:/tmp/cvs-serv11761/net/sourceforge/javaprofiler/module/data Modified Files: Session.java Log Message: Changes forced by new API. Index: Session.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/data/Session.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** Session.java 26 Feb 2002 00:49:14 -0000 1.2 --- Session.java 4 Jul 2002 18:21:12 -0000 1.3 *************** *** 26,30 **** import net.sourceforge.javaprofiler.jpi.Snapshot; ! import net.sourceforge.javaprofiler.jpi.VirtualMachine; /** --- 26,30 ---- import net.sourceforge.javaprofiler.jpi.Snapshot; ! import net.sourceforge.javaprofiler.jpi.VirtualMachineRef; /** *************** *** 39,43 **** private boolean remote; /** Mirror of the virtual machine. */ ! private VirtualMachine vm; /** No. of snapshots created from this session. */ private int snapshots=0; --- 39,43 ---- private boolean remote; /** Mirror of the virtual machine. */ ! private VirtualMachineRef vm; /** No. of snapshots created from this session. */ private int snapshots=0; *************** *** 48,52 **** * @param vm mirror of the virtual machine. */ ! public Session(VirtualMachine vm, boolean remote, String name) { this.vm=vm; this.remote=remote; --- 48,52 ---- * @param vm mirror of the virtual machine. */ ! public Session(VirtualMachineRef vm, boolean remote, String name) { this.vm=vm; this.remote=remote; *************** *** 78,82 **** * @return mirror of the virtual machine. */ ! public VirtualMachine getVM() { return vm; } --- 78,82 ---- * @return mirror of the virtual machine. */ ! public VirtualMachineRef getVM() { return vm; } *************** *** 98,101 **** --- 98,104 ---- /* * $Log$ + * Revision 1.3 2002/07/04 18:21:12 stolis + * Changes forced by new API. + * * Revision 1.2 2002/02/26 00:49:14 stolis * Refactoring of Create snapshot action. |
From: Jan S. <st...@us...> - 2002-07-04 18:20:53
|
Update of /cvsroot/javaprofiler/module In directory usw-pr-cvs1:/tmp/cvs-serv11659 Modified Files: javaprofiler.jarContent Log Message: Changes forced by new API. Index: javaprofiler.jarContent =================================================================== RCS file: /cvsroot/javaprofiler/module/javaprofiler.jarContent,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 Binary files /tmp/cvsGocCwt and /tmp/cvs6LQwVM differ |
From: Jan S. <st...@us...> - 2002-07-04 18:15:53
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect In directory usw-pr-cvs1:/tmp/cvs-serv9690/net/sourceforge/javaprofiler/jpiimpl/connect Modified Files: SocketListenConnector.java SocketLaunchConnector.java SocketAttachConnector.java ShmemListenConnector.java ShmemLaunchConnector.java ShmemAttachConnector.java Log Message: Connectors use new API. Index: SocketListenConnector.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect/SocketListenConnector.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** SocketListenConnector.java 16 May 2002 11:41:25 -0000 1.4 --- SocketListenConnector.java 4 Jul 2002 18:15:46 -0000 1.5 *************** *** 25,29 **** import java.util.Iterator; import java.util.ResourceBundle; ! import net.sourceforge.javaprofiler.jpi.VirtualMachine; import net.sourceforge.javaprofiler.jpi.connect.*; import net.sourceforge.javaprofiler.jpiimpl.commun.*; --- 25,29 ---- import java.util.Iterator; import java.util.ResourceBundle; ! import net.sourceforge.javaprofiler.jpi.VirtualMachineRef; import net.sourceforge.javaprofiler.jpi.connect.*; import net.sourceforge.javaprofiler.jpiimpl.commun.*; *************** *** 41,45 **** * Listens for connections initiated by other VMs. */ ! public VirtualMachine connect(Map arguments) throws IllegalConnectorArgumentsException, ConnectingException { int port=-1; Connector.Argument invalid=null; --- 41,45 ---- * Listens for connections initiated by other VMs. */ ! public VirtualMachineRef connect(Map arguments) throws IllegalConnectorArgumentsException, ConnectingException { int port=-1; Connector.Argument invalid=null; *************** *** 128,131 **** --- 128,134 ---- /* * $Log$ + * Revision 1.5 2002/07/04 18:15:46 stolis + * Connectors use new API. + * * Revision 1.4 2002/05/16 11:41:25 stolis * First version of listening connector. Index: SocketLaunchConnector.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect/SocketLaunchConnector.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** SocketLaunchConnector.java 16 May 2002 11:40:36 -0000 1.4 --- SocketLaunchConnector.java 4 Jul 2002 18:15:46 -0000 1.5 *************** *** 26,30 **** import java.util.Iterator; import java.util.ResourceBundle; ! import net.sourceforge.javaprofiler.jpi.VirtualMachine; import net.sourceforge.javaprofiler.jpi.connect.*; import net.sourceforge.javaprofiler.jpiimpl.VirtualMachineImpl; --- 26,30 ---- import java.util.Iterator; import java.util.ResourceBundle; ! import net.sourceforge.javaprofiler.jpi.VirtualMachineRef; import net.sourceforge.javaprofiler.jpi.connect.*; import net.sourceforge.javaprofiler.jpiimpl.VirtualMachineImpl; *************** *** 64,68 **** * Launches the VM and connects to it through socket. */ ! public VirtualMachine connect(Map args) throws IllegalConnectorArgumentsException, ConnectingException { String quote=null; String launcher=null; --- 64,68 ---- * Launches the VM and connects to it through socket. */ ! public VirtualMachineRef connect(Map args) throws IllegalConnectorArgumentsException, ConnectingException { String quote=null; String launcher=null; *************** *** 184,187 **** --- 184,190 ---- /* * $Log$ + * Revision 1.5 2002/07/04 18:15:46 stolis + * Connectors use new API. + * * Revision 1.4 2002/05/16 11:40:36 stolis * First version of launching connectors. Index: SocketAttachConnector.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect/SocketAttachConnector.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** SocketAttachConnector.java 16 May 2002 11:45:17 -0000 1.5 --- SocketAttachConnector.java 4 Jul 2002 18:15:46 -0000 1.6 *************** *** 25,29 **** import java.util.Iterator; import java.util.ResourceBundle; ! import net.sourceforge.javaprofiler.jpi.VirtualMachine; import net.sourceforge.javaprofiler.jpi.connect.*; import net.sourceforge.javaprofiler.jpiimpl.VirtualMachineImpl; --- 25,29 ---- import java.util.Iterator; import java.util.ResourceBundle; ! import net.sourceforge.javaprofiler.jpi.VirtualMachineRef; import net.sourceforge.javaprofiler.jpi.connect.*; import net.sourceforge.javaprofiler.jpiimpl.VirtualMachineImpl; *************** *** 41,45 **** * Attaches to VM using socket. */ ! public VirtualMachine connect(Map arguments) throws IllegalConnectorArgumentsException, ConnectingException { String host="localhost"; int port=-1; --- 41,45 ---- * Attaches to VM using socket. */ ! public VirtualMachineRef connect(Map arguments) throws IllegalConnectorArgumentsException, ConnectingException { String host="localhost"; int port=-1; *************** *** 139,142 **** --- 139,145 ---- /* * $Log$ + * Revision 1.6 2002/07/04 18:15:46 stolis + * Connectors use new API. + * * Revision 1.5 2002/05/16 11:45:17 stolis * Some messages internacionalized. Index: ShmemListenConnector.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect/ShmemListenConnector.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** ShmemListenConnector.java 14 Oct 2001 21:56:31 -0000 1.3 --- ShmemListenConnector.java 4 Jul 2002 18:15:46 -0000 1.4 *************** *** 25,29 **** import java.util.Iterator; import java.util.ResourceBundle; ! import net.sourceforge.javaprofiler.jpi.VirtualMachine; import net.sourceforge.javaprofiler.jpi.connect.*; import net.sourceforge.javaprofiler.jpiimpl.commun.*; --- 25,29 ---- import java.util.Iterator; import java.util.ResourceBundle; ! import net.sourceforge.javaprofiler.jpi.VirtualMachineRef; import net.sourceforge.javaprofiler.jpi.connect.*; import net.sourceforge.javaprofiler.jpiimpl.commun.*; *************** *** 40,44 **** * Listens for connections initiated by other VMs. */ ! public VirtualMachine connect(Map arguments) throws IllegalConnectorArgumentsException, ConnectingException { String address=null; Iterator iter=arguments.keySet().iterator(); --- 40,44 ---- * Listens for connections initiated by other VMs. */ ! public VirtualMachineRef connect(Map arguments) throws IllegalConnectorArgumentsException, ConnectingException { String address=null; Iterator iter=arguments.keySet().iterator(); *************** *** 124,127 **** --- 124,130 ---- /* * $Log$ + * Revision 1.4 2002/07/04 18:15:46 stolis + * Connectors use new API. + * * Revision 1.3 2001/10/14 21:56:31 stolis * Connectors updated. Index: ShmemLaunchConnector.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect/ShmemLaunchConnector.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** ShmemLaunchConnector.java 16 May 2002 11:40:36 -0000 1.4 --- ShmemLaunchConnector.java 4 Jul 2002 18:15:46 -0000 1.5 *************** *** 26,30 **** import java.util.Iterator; import java.util.ResourceBundle; ! import net.sourceforge.javaprofiler.jpi.VirtualMachine; import net.sourceforge.javaprofiler.jpi.connect.*; import net.sourceforge.javaprofiler.jpiimpl.VirtualMachineImpl; --- 26,30 ---- import java.util.Iterator; import java.util.ResourceBundle; ! import net.sourceforge.javaprofiler.jpi.VirtualMachineRef; import net.sourceforge.javaprofiler.jpi.connect.*; import net.sourceforge.javaprofiler.jpiimpl.VirtualMachineImpl; *************** *** 45,49 **** * Launches the VM and connects to it through socket. */ ! public VirtualMachine connect(Map args) throws IllegalConnectorArgumentsException, ConnectingException { String quote=null; String launcher=null; --- 45,49 ---- * Launches the VM and connects to it through socket. */ ! public VirtualMachineRef connect(Map args) throws IllegalConnectorArgumentsException, ConnectingException { String quote=null; String launcher=null; *************** *** 182,185 **** --- 182,188 ---- /* * $Log$ + * Revision 1.5 2002/07/04 18:15:46 stolis + * Connectors use new API. + * * Revision 1.4 2002/05/16 11:40:36 stolis * First version of launching connectors. Index: ShmemAttachConnector.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect/ShmemAttachConnector.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** ShmemAttachConnector.java 16 May 2002 11:45:17 -0000 1.5 --- ShmemAttachConnector.java 4 Jul 2002 18:15:46 -0000 1.6 *************** *** 25,29 **** import java.util.Iterator; import java.util.ResourceBundle; ! import net.sourceforge.javaprofiler.jpi.VirtualMachine; import net.sourceforge.javaprofiler.jpi.connect.*; import net.sourceforge.javaprofiler.jpiimpl.VirtualMachineImpl; --- 25,29 ---- import java.util.Iterator; import java.util.ResourceBundle; ! import net.sourceforge.javaprofiler.jpi.VirtualMachineRef; import net.sourceforge.javaprofiler.jpi.connect.*; import net.sourceforge.javaprofiler.jpiimpl.VirtualMachineImpl; *************** *** 41,45 **** * Attaches to VM using shared memory. */ ! public VirtualMachine connect(Map arguments) throws IllegalConnectorArgumentsException, ConnectingException { String address=null; Iterator iter=arguments.keySet().iterator(); --- 41,45 ---- * Attaches to VM using shared memory. */ ! public VirtualMachineRef connect(Map arguments) throws IllegalConnectorArgumentsException, ConnectingException { String address=null; Iterator iter=arguments.keySet().iterator(); *************** *** 128,131 **** --- 128,134 ---- /* * $Log$ + * Revision 1.6 2002/07/04 18:15:46 stolis + * Connectors use new API. + * * Revision 1.5 2002/05/16 11:45:17 stolis * Some messages internacionalized. |