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: Lukas P. <pe...@us...> - 2002-08-07 18:10:22
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views
In directory usw-pr-cvs1:/tmp/cvs-serv4694
Modified Files:
TimeSeriesGraph.java
Log Message:
added axis label
Index: TimeSeriesGraph.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views/TimeSeriesGraph.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** TimeSeriesGraph.java 30 Jul 2002 12:20:46 -0000 1.3
--- TimeSeriesGraph.java 7 Aug 2002 17:41:13 -0000 1.4
***************
*** 54,60 ****
private TimeSeriesModel model;
/** Graph style. */
! private String style=LINE_GRAPH;
/** Graph color. */
private Color graphColor;
/** Constructs graph with default model. */
--- 54,62 ----
private TimeSeriesModel model;
/** Graph style. */
! private String style=BAR_GRAPH;
/** Graph color. */
private Color graphColor;
+ /** Inner color. */
+ private Color innerColor;
/** Constructs graph with default model. */
***************
*** 109,112 ****
--- 111,124 ----
}
+ /** Sets color of graph inner area. */
+ public void setInnerColor(Color co) {
+ innerColor=co;
+ }
+
+ /** Returns color of graph inner area. */
+ public Color getInnerColor() {
+ return innerColor;
+ }
+
/** Used for notification of a model data change. Internal function,
not to be called by end users.
***************
*** 139,149 ****
max=fineScale(max);
- if (style==BAR_GRAPH)
- paintBarGraph(g, data, max);
- else if (style==LINE_GRAPH)
- paintLineGraph(g, data, max);
- }
-
- private void paintBarGraph(Graphics g, int[] data, int max) {
// compute usable area
Insets insets = getInsets();
--- 151,154 ----
***************
*** 153,219 ****
int left=insets.left;
! final int sCnt=data.length;
// area width for graph w/o axes
! int areaMaxW=currentWidth-3;
! final int advance=(areaMaxW+1) / sCnt;
! int columnW=advance-1;
! if (columnW<1) columnW=1;
! int areaW=sCnt*advance - 1;
! int areaMaxH=currentHeight-2;
// draw axes
g.setColor(getForeground());
! int x0=insets.left + (areaMaxW-areaW)/2;
! int y0=getHeight()-1 - insets.bottom;
! g.drawLine(x0, y0-2, x0+areaW+3-1, y0-2);
g.drawLine(x0+2, y0, x0+2, y0-(areaMaxH+3-1));
// draw
if (graphColor != null)
g.setColor(graphColor);
int columnH;
! int x=x0+3;
! final int y=y0 - 2;
for (int i=0; i<sCnt; i++) {
! columnH=data[i]*areaMaxH/max;
! g.fillRect(x, y-columnH, columnW, columnH);
! x+=advance;
}
}
! private void paintLineGraph(Graphics g, int[] data, int max) {
! // compute usable area
! Insets insets = getInsets();
! int currentWidth = getWidth() - insets.left - insets.right;
! int currentHeight = getHeight() - insets.top - insets.bottom;
! int top=insets.top;
! int left=insets.left;
!
! // draw axes
! g.setColor(getForeground());
! int x0=insets.left;
! int y0=getHeight()-1 - insets.bottom;
! g.drawLine(x0, y0-2, x0+currentWidth-1, y0-2);
! g.drawLine(x0+2, y0, x0+2, y0-(currentHeight-1));
!
! // area width for graph w/o axes
! int areaW=currentWidth-3;
! int areaH=currentHeight-3;
!
final int sCnt=data.length;
! // draw line
if (graphColor != null)
g.setColor(graphColor);
! int oldX=x0+3;
! int oldY=y0-2-data[0]*areaH/max;
! int x, y;
for (int i=1; i<sCnt; i++) {
! x=x0+3 + i*(areaW-1)/(sCnt-1);
! y=y0-2 - data[i]*areaH/max;
! g.drawLine(oldX, oldY, x, y);
! oldX=x;
! oldY=y;
}
}
--- 158,236 ----
int left=insets.left;
! // draw text
! g.setColor(getForeground());
! FontMetrics currentMetrics = g.getFontMetrics();
! int txtAsc=currentMetrics.getAscent();
! int charWidth=currentMetrics.charWidth('0');
! String text=String.valueOf(max);
! int txtWidth=text.length()*charWidth;
! g.drawString(text, left, top+txtAsc-1);
// area width for graph w/o axes
! int areaMaxW=currentWidth-3 - txtWidth - charWidth;
! int areaMaxH=currentHeight-3 - txtAsc/2;
+ // axes origin point
+ int x0=insets.left + txtWidth;
+ int y0=getHeight()-1 - insets.bottom;
+ // fill inner area
+ if (innerColor != null) {
+ g.setColor(innerColor);
+ int xa=x0+3;
+ int ya=y0-2-areaMaxH;
+ g.fillRect(xa, ya, areaMaxW, areaMaxH);
+ }
// draw axes
g.setColor(getForeground());
! // x axis
! g.drawLine(x0, y0-2, x0+areaMaxW+3-1, y0-2);
! // y axis
g.drawLine(x0+2, y0, x0+2, y0-(areaMaxH+3-1));
+ // tick
+ g.drawLine(x0, y0-2-areaMaxH, x0+4, y0-2-areaMaxH);
+ if (style==BAR_GRAPH)
+ paintBarGraph(g, x0+3, y0-2, areaMaxW, areaMaxH, data, max);
+ else if (style==LINE_GRAPH)
+ paintLineGraph(g, x0+3, y0-2, areaMaxW, areaMaxH, data, max);
+ }
+
+ private void paintBarGraph(Graphics g, int ix, int iy, int iw, int ih,
+ int[] data, int max) {
+ final int sCnt=data.length;
+
// draw
if (graphColor != null)
g.setColor(graphColor);
int columnH;
! int columnW;
! int oldx=ix;
! int nx;
for (int i=0; i<sCnt; i++) {
! columnH=data[i]*ih/max;
! nx=ix + iw*(i+1)/sCnt;
! columnW=nx-oldx-1;
! if (columnW < 1)
! columnW=1;
! g.fillRect(oldx, iy-columnH, columnW, columnH);
! oldx=nx;
}
}
! private void paintLineGraph(Graphics g, int ix, int iy, int iw, int ih,
! int[] data, int max) {
final int sCnt=data.length;
! // draw
if (graphColor != null)
g.setColor(graphColor);
! int oldx=ix;
! int oldh=data[0]*ih/max;
for (int i=1; i<sCnt; i++) {
! int nx=ix + (iw-1)*i/(sCnt-1);
! int nh=data[i]*ih/max;
! g.drawLine(oldx, iy-oldh, nx, iy-nh);
! oldx=nx;
! oldh=nh;
}
}
|
|
From: Marek P. <ma...@us...> - 2002-08-06 20:05:12
|
Update of /cvsroot/javaprofiler/library/src/prof
In directory usw-pr-cvs1:/tmp/cvs-serv17475/src/prof
Modified Files:
prof.cpp prof.h prof_jvm.cpp
Log Message:
new feature, data_dump_request
pressing ctrl+break (on win32), ctrl+\ (on unix) causes the JVM to exit (abort)
Index: prof.cpp
===================================================================
RCS file: /cvsroot/javaprofiler/library/src/prof/prof.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -r1.30 -r1.31
*** prof.cpp 15 Jul 2002 21:55:12 -0000 1.30
--- prof.cpp 6 Aug 2002 20:05:08 -0000 1.31
***************
*** 62,66 ****
tF( 5, JVMPI_EVENT_COMPILED_METHOD_LOAD, NULL);
tF( 6, JVMPI_EVENT_COMPILED_METHOD_UNLOAD, NULL);
! tF( 7, JVMPI_EVENT_DATA_DUMP_REQUEST, NULL);
tF( 8, JVMPI_EVENT_DATA_RESET_REQUEST, NULL);
tF( 9, JVMPI_EVENT_GC_FINISH, &Prof::event_gcFinish);
--- 62,66 ----
tF( 5, JVMPI_EVENT_COMPILED_METHOD_LOAD, NULL);
tF( 6, JVMPI_EVENT_COMPILED_METHOD_UNLOAD, NULL);
! tF( 7, JVMPI_EVENT_DATA_DUMP_REQUEST, &Prof::event_dataDumpRequest);
tF( 8, JVMPI_EVENT_DATA_RESET_REQUEST, NULL);
tF( 9, JVMPI_EVENT_GC_FINISH, &Prof::event_gcFinish);
***************
*** 152,154 ****
--- 152,159 ----
if( _prof) _prof->runEvent( event);
+ }
+
+ void Prof::event_dataDumpRequest( JVMPI_Event* event) {
+
+ abort();
}
Index: prof.h
===================================================================
RCS file: /cvsroot/javaprofiler/library/src/prof/prof.h,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -r1.45 -r1.46
*** prof.h 15 Jul 2002 21:55:12 -0000 1.45
--- prof.h 6 Aug 2002 20:05:08 -0000 1.46
***************
*** 522,525 ****
--- 522,539 ----
void event_classUnload( JVMPI_Event* event);
+ /** Data dump request. This method is a JVMPI_EVENT_DATA_DUMP_REQUEST
+ ** event handler. This event is sent by the VM to request the profiler
+ ** agent to dump its data. This is just a hint and the profiler agent
+ ** need not react to this event. This is useful for processing command
+ ** line signals from users. For example, in the Java 2 SDK a Ctrl-Break
+ ** on Windows and Ctrl-\ on Solaris causes the VM to send this event
+ ** to the profiler agent. There is no event specific information.
+ **
+ ** @param event JVMPI_Event structure describing the event
+ **
+ ** @see runEvent(), JVMPI specification */
+
+ void event_dataDumpRequest( JVMPI_Event* event);
+
/** GC start. This method is a JVMPI_EVENT_GC_START
** event handler. This event is sent when GC is about to start.
Index: prof_jvm.cpp
===================================================================
RCS file: /cvsroot/javaprofiler/library/src/prof/prof_jvm.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -r1.30 -r1.31
*** prof_jvm.cpp 17 Jul 2002 22:05:56 -0000 1.30
--- prof_jvm.cpp 6 Aug 2002 20:05:08 -0000 1.31
***************
*** 478,481 ****
--- 478,483 ----
jvmpiInterface->DisableEvent( JVMPI_EVENT_JVM_INIT_DONE, NULL);
+ jvmpiInterface->EnableEvent( JVMPI_EVENT_DATA_DUMP_REQUEST, NULL);
+
if( setup.cpu.turnedOn && setup.cpu.sampling) sampling.startThread( 1);
|
|
From: Pavel V. <va...@us...> - 2002-07-31 21:34:56
|
Update of /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi
In directory usw-pr-cvs1:/tmp/cvs-serv11310
Modified Files:
VirtualMachineRef.java
Log Message:
method renamed to isShutdown()
Index: VirtualMachineRef.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/VirtualMachineRef.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** VirtualMachineRef.java 22 Jul 2002 23:38:17 -0000 1.6
--- VirtualMachineRef.java 31 Jul 2002 21:34:53 -0000 1.7
***************
*** 103,107 ****
* @see shutdown(), exitVM()
*/
! public boolean isShutdowned();
/**
--- 103,107 ----
* @see shutdown(), exitVM()
*/
! public boolean isShutdown();
/**
***************
*** 124,127 ****
--- 124,130 ----
/*
* $Log$
+ * Revision 1.7 2002/07/31 21:34:53 vachis
+ * method renamed to isShutdown()
+ *
* Revision 1.6 2002/07/22 23:38:17 vachis
* no message
|
|
From: Pavel V. <va...@us...> - 2002-07-31 21:34:46
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl
In directory usw-pr-cvs1:/tmp/cvs-serv11267
Modified Files:
VirtualMachineImpl.java
Log Message:
method renamed to isShutdown()
Index: VirtualMachineImpl.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/VirtualMachineImpl.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** VirtualMachineImpl.java 22 Jul 2002 23:37:51 -0000 1.11
--- VirtualMachineImpl.java 31 Jul 2002 21:34:43 -0000 1.12
***************
*** 250,254 ****
* @see shutdown(), exitVM()
*/
! public boolean isShutdowned() {
try {
return iprof.isShutdowned();
--- 250,254 ----
* @see shutdown(), exitVM()
*/
! public boolean isShutdown() {
try {
return iprof.isShutdowned();
***************
*** 269,272 ****
--- 269,275 ----
/*
* $Log$
+ * Revision 1.12 2002/07/31 21:34:43 vachis
+ * method renamed to isShutdown()
+ *
* Revision 1.11 2002/07/22 23:37:51 vachis
* no message
|
|
From: Pavel V. <va...@us...> - 2002-07-31 21:34:34
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes
In directory usw-pr-cvs1:/tmp/cvs-serv11218
Modified Files:
SessionKiller.java
Log Message:
method renamed to isShutdown()
Index: SessionKiller.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes/SessionKiller.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** SessionKiller.java 26 Feb 2002 00:53:11 -0000 1.2
--- SessionKiller.java 31 Jul 2002 21:34:30 -0000 1.3
***************
*** 50,54 ****
session=(Session)iter.next();
try {
! if (session.getVM().isShutdowned()) {
// create snapshot
ProfilerSettings ps=(ProfilerSettings)SystemOption.findObject(ProfilerSettings.class);
--- 50,54 ----
session=(Session)iter.next();
try {
! if (session.getVM().isShutdown()) {
// create snapshot
ProfilerSettings ps=(ProfilerSettings)SystemOption.findObject(ProfilerSettings.class);
***************
*** 75,78 ****
--- 75,81 ----
/*
* $Log$
+ * Revision 1.3 2002/07/31 21:34:30 vachis
+ * method renamed to isShutdown()
+ *
* Revision 1.2 2002/02/26 00:53:11 stolis
* Snapshot on exit created according to the property snapshot_on_exit.
|
|
From: Lukas P. <pe...@us...> - 2002-07-31 20:37:46
|
Update of /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi In directory usw-pr-cvs1:/tmp/cvs-serv25922 Modified Files: CallTreeRef.java Log Message: fixed broken commentary Index: CallTreeRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/CallTreeRef.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** CallTreeRef.java 31 Jul 2002 17:35:59 -0000 1.6 --- CallTreeRef.java 31 Jul 2002 20:37:39 -0000 1.7 *************** *** 1,3 **** ! * * Sun Public License Notice * --- 1,3 ---- ! /* * Sun Public License Notice * *************** *** 38,41 **** --- 38,44 ---- /* * $Log$ + * Revision 1.7 2002/07/31 20:37:39 petrul + * fixed broken commentary + * * Revision 1.6 2002/07/31 17:35:59 vachis * revert |
|
From: Pavel V. <va...@us...> - 2002-07-31 17:37:58
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data
In directory usw-pr-cvs1:/tmp/cvs-serv1310
Modified Files:
CallTreeData.java
Log Message:
revert
Index: CallTreeData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/CallTreeData.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** CallTreeData.java 31 Jul 2002 16:46:11 -0000 1.8
--- CallTreeData.java 31 Jul 2002 17:37:55 -0000 1.9
***************
*** 134,141 ****
}
! public void addChildrenListener(ChildrenListener listener) {
}
! public void removeChildrenListener(ChildrenListener listener) {
}
--- 134,141 ----
}
! public void addChildrenListener(int type, ChildrenListener listener) {
}
! public void removeChildrenListener(int type, ChildrenListener listener) {
}
***************
*** 144,147 ****
--- 144,150 ----
/*
* $Log$
+ * Revision 1.9 2002/07/31 17:37:55 vachis
+ * revert
+ *
* Revision 1.8 2002/07/31 16:46:11 vachis
* no message
|
|
From: Pavel V. <va...@us...> - 2002-07-31 17:36:03
|
Update of /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi
In directory usw-pr-cvs1:/tmp/cvs-serv607
Modified Files:
CallTreeRef.java
Log Message:
revert
Index: CallTreeRef.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/CallTreeRef.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** CallTreeRef.java 27 Jul 2002 22:25:17 -0000 1.5
--- CallTreeRef.java 31 Jul 2002 17:35:59 -0000 1.6
***************
*** 1,3 ****
! /*
* Sun Public License Notice
*
--- 1,3 ----
! *
* Sun Public License Notice
*
***************
*** 32,41 ****
List getChildren();
! void addChildrenListener(ChildrenListener listener);
! void removeChildrenListener(ChildrenListener listener);
}
/*
* $Log$
* Revision 1.5 2002/07/27 22:25:17 vachis
* Has... interfaces renamed (word Root aded)
--- 32,44 ----
List getChildren();
! void addChildrenListener( int type, ChildrenListener listener);
! void removeChildrenListener( int type, ChildrenListener listener);
}
/*
* $Log$
+ * Revision 1.6 2002/07/31 17:35:59 vachis
+ * revert
+ *
* Revision 1.5 2002/07/27 22:25:17 vachis
* Has... interfaces renamed (word Root aded)
|
|
From: Pavel V. <va...@us...> - 2002-07-31 16:54:45
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views
In directory usw-pr-cvs1:/tmp/cvs-serv17844
Modified Files:
AllocHistogramTable.java
Log Message:
added setModel()
Index: AllocHistogramTable.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views/AllocHistogramTable.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** AllocHistogramTable.java 27 Jul 2002 22:27:03 -0000 1.4
--- AllocHistogramTable.java 31 Jul 2002 16:54:41 -0000 1.5
***************
*** 28,32 ****
import net.sourceforge.javaprofiler.jpi.AllocStat;
! /**
*
* @author Pavel Vacha
--- 28,32 ----
import net.sourceforge.javaprofiler.jpi.AllocStat;
! /**Table that shows instances count and "histogram" of instances count.
*
* @author Pavel Vacha
***************
*** 36,57 ****
/** Creates a new instance of HistogramTable */
! public AllocHistogramTable( AllocHistogramTableModel model ) {
super(model);
setDefaultRenderer(AllocStat.class, new HistogramBarRenderer(true) );
setDefaultRenderer(String.class, new LongStringRenderer() );
setSelectionMode( ListSelectionModel.SINGLE_SELECTION );
-
- JTextField textField = new JTextField();
! TableColumn column = getColumnModel().getColumn(0);
! column.setPreferredWidth(500);
! column.setCellEditor( new DefaultCellEditor( textField ) );
! getColumnModel().getColumn(3).setPreferredWidth(250);
! getColumnModel().getColumn(1).setPreferredWidth(100);
! getColumnModel().getColumn(2).setPreferredWidth(100);
! getColumnModel().getColumn(4).setPreferredWidth(100);
! getColumnModel().getColumn(5).setPreferredWidth(100);
!
}
--- 36,76 ----
/** Creates a new instance of HistogramTable */
! public AllocHistogramTable( TableModel model ) {
super(model);
+ checkModel( model );
setDefaultRenderer(AllocStat.class, new HistogramBarRenderer(true) );
setDefaultRenderer(String.class, new LongStringRenderer() );
setSelectionMode( ListSelectionModel.SINGLE_SELECTION );
! int i;
! Class clazz;
! TableColumnModel cmodel = getColumnModel();
! //set width for column with histogram and string
! for (i=1; i < cmodel.getColumnCount(); i++ ) {
! clazz = model.getColumnClass(i);
! if ( clazz == String.class ) {
! cmodel.getColumn(i).setPreferredWidth(500);
! //JTextField textField = new JTextField();
! //column.setCellEditor( new DefaultCellEditor( textField ) );
! }
! else if ( clazz == AllocStat.class ) {
! cmodel.getColumn(i).setPreferredWidth(250);
! }
! }
!
! }
!
! protected boolean checkModel( TableModel model ) {
! // int mcols = model.getColumnCount();
! // if ( mcols != 6 )
! // throw new RuntimeException( "Unexpected number of collumns in the TableModel. Found :"
! // + mcols +" Expected: 6");
! return true;
! }
!
! public void setModel(TableModel dataModel) {
! checkModel( dataModel );
! super.setModel( dataModel );
}
|
|
From: Pavel V. <va...@us...> - 2002-07-31 16:52:40
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views
In directory usw-pr-cvs1:/tmp/cvs-serv17145
Modified Files:
AllocHistogramTableModel.java
Log Message:
added dispose(), using HasChildrenInterface()
Index: AllocHistogramTableModel.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views/AllocHistogramTableModel.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** AllocHistogramTableModel.java 27 Jul 2002 22:27:03 -0000 1.5
--- AllocHistogramTableModel.java 31 Jul 2002 16:52:37 -0000 1.6
***************
*** 25,32 ****
import javax.swing.table.AbstractTableModel;
import net.sourceforge.javaprofiler.jpi.*;
- import java.lang.reflect.*;
- //PENDING remove java.reflection
! /**
*
* @author Pavel Vacha
--- 25,32 ----
import javax.swing.table.AbstractTableModel;
import net.sourceforge.javaprofiler.jpi.*;
! /**Model for table that shows instances count and "histogram" of instances count.
! * Columns contains name_of_type, instaces_count, count_of_all_instances_ever_created_in_VM,
! * histogram_of_instances_count, size_of_instances, size_off_all_instances_ever_created_in_VM
*
* @author Pavel Vacha
***************
*** 34,61 ****
public class AllocHistogramTableModel extends AbstractTableModel {
private List allocStats;
! private String columnNames[] = { "name", "count", "total count", "histogram", "space", "total space" };
private Class columnClasses[] = { String.class, Long.class, Long.class, AllocStat.class, Long.class, Long.class };
! private AllocStatListener statListener;
//private Method method_getName;
! /** Creates a new instance of HistogramTableModel
*@param allocStats list of <code> AllocStat </code> objects that have <code> getType() </code> method
*@param parent Parent where <code> allosStats </code> list resides. (We need subscribe for changes in this list).
! *@param listType this param is passed as type to <code> parent.addChildrenListener </code> method. Its constant from
* <code> net.sourceforge.javaprofiler.jpi.Constants </code>
*/
! public AllocHistogramTableModel(List allocStats, HasChildren parent, int type) {
this.allocStats = allocStats;
statListener = new HistogramStatListener();
! ListIterator iter = allocStats.listIterator();
! while ( iter.hasNext() ) {
! ((AllocStat) iter.next()).addAllocStatListener( statListener );
! }
!
! parent.addChildrenListener( type, new HistogramChildrenListener() );
}
public int getColumnCount() {
return columnNames.length;
--- 34,70 ----
public class AllocHistogramTableModel extends AbstractTableModel {
private List allocStats;
! private String columnNames[] = { "name", "count", "total count", "histogram", "space", "total space" };
private Class columnClasses[] = { String.class, Long.class, Long.class, AllocStat.class, Long.class, Long.class };
!
! private AllocStatListener statListener;
! private ChildrenListener childrenListener;
!
! private int subscribeType;
! private HasChildren parent;
//private Method method_getName;
! /** Creates a new instance of HistogramTableModel. When you stop using this model, please call dispose() to
! * allow removing of this instance during gabage collection.
*@param allocStats list of <code> AllocStat </code> objects that have <code> getType() </code> method
*@param parent Parent where <code> allosStats </code> list resides. (We need subscribe for changes in this list).
! *@param subscribeType this param is passed as type to <code> parent.addChildrenListener </code> method. Its constant from
* <code> net.sourceforge.javaprofiler.jpi.Constants </code>
*/
! public AllocHistogramTableModel(List allocStats, HasChildren parent, int subscribeType) {
this.allocStats = allocStats;
statListener = new HistogramStatListener();
+ childrenListener = new HistogramChildrenListener();
! subscribeToJpi( allocStats, parent, subscribeType );
}
+ /** Call dispose() when you stop using this model. It unsubsribe listeners and therefore
+ * it allows removing of this instance during gabage collection.
+ */
+ public void dispose() {
+ unsubscribeFromJpi();
+ }
+
public int getColumnCount() {
return columnNames.length;
***************
*** 162,167 ****
};
}
-
! //pending unsubscribing
}
--- 171,192 ----
};
}
! //subcribing, unsubscribing
! protected void subscribeToJpi( List allocStats, HasChildren parent, int subscribeType ) {
! this.parent = parent;
! this.subscribeType = subscribeType;
! ListIterator iter = allocStats.listIterator();
! while ( iter.hasNext() ) {
! ((AllocStat) iter.next()).addAllocStatListener( statListener );
! }
! parent.addChildrenListener( subscribeType, childrenListener );
! }
!
! protected void unsubscribeFromJpi() {
! parent.removeChildrenListener( subscribeType, childrenListener );
! ListIterator iter = allocStats.listIterator();
! while ( iter.hasNext() ) {
! ((AllocStat) iter.next()).removeAllocStatListener( statListener );
! }
! }
}
|
|
From: Pavel V. <va...@us...> - 2002-07-31 16:46:17
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data
In directory usw-pr-cvs1:/tmp/cvs-serv14966
Modified Files:
CallTreeData.java
Log Message:
no message
Index: CallTreeData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/CallTreeData.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** CallTreeData.java 12 Jun 2002 22:00:30 -0000 1.7
--- CallTreeData.java 31 Jul 2002 16:46:11 -0000 1.8
***************
*** 134,141 ****
}
! public void addChildrenListener(int type, ChildrenListener listener) {
}
! public void removeChildrenListener(int type, ChildrenListener listener) {
}
--- 134,141 ----
}
! public void addChildrenListener(ChildrenListener listener) {
}
! public void removeChildrenListener(ChildrenListener listener) {
}
***************
*** 144,147 ****
--- 144,150 ----
/*
* $Log$
+ * Revision 1.8 2002/07/31 16:46:11 vachis
+ * no message
+ *
* Revision 1.7 2002/06/12 22:00:30 vachis
* add/removeChildListeners - param String changed to int
|
|
From: Marek P. <ma...@us...> - 2002-07-30 20:45:52
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/commun
In directory usw-pr-cvs1:/tmp/cvs-serv17044/net/sourceforge/javaprofiler/jpiimpl/commun
Modified Files:
IProf.java
Log Message:
small fixes in IProf.exitVM(), IProf.shutdown(), IProf.stop()
Index: IProf.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/commun/IProf.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** IProf.java 25 May 2002 00:03:23 -0000 1.19
--- IProf.java 30 Jul 2002 20:45:48 -0000 1.20
***************
*** 132,136 ****
try {
! if( _threadsSuspended) resumeVM();
while( _gcDisabled != 0) enableGC();
}
--- 132,136 ----
try {
! if( _threadsSuspended) resumeVM();
while( _gcDisabled != 0) enableGC();
}
***************
*** 220,223 ****
--- 220,236 ----
throws COMMUN_Exception {
+ if( !isShutdowned()) return;
+
+ try {
+
+ if( _threadsSuspended) resumeVM();
+ while( _gcDisabled != 0) enableGC();
+ }
+ catch( COMMUN_Exception e) {
+
+ throw e;
+ }
+ catch( Exception e) {}
+
_buf.clear();
_buf.putInt( F_SHUTDOWN);
***************
*** 405,408 ****
--- 418,427 ----
throws COMMUN_Exception {
+
+ if( isShutdowned()) {
+
+ shutdown();
+ return;
+ }
_buf.clear();
|
|
From: Lukas P. <pe...@us...> - 2002-07-30 12:23:07
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views
In directory usw-pr-cvs1:/tmp/cvs-serv14290
Modified Files:
ActiveThreadsView.java
Log Message:
added new constructor
Index: ActiveThreadsView.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views/ActiveThreadsView.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** ActiveThreadsView.java 29 Jul 2002 16:41:58 -0000 1.1
--- ActiveThreadsView.java 30 Jul 2002 12:23:04 -0000 1.2
***************
*** 43,47 ****
import net.sourceforge.javaprofiler.jpiimpl.realtime.*;
! /** This component provides is a panel containing graph of active threads and
* two labels showing the maximum and current count of active threads.
* @author Lukas Petru
--- 43,47 ----
import net.sourceforge.javaprofiler.jpiimpl.realtime.*;
! /** This component provides a panel containing graph of active threads and
* two labels showing the maximum and current count of active threads.
* @author Lukas Petru
***************
*** 56,64 ****
/** Constructs a panel and an associated TimerTask. The graph is updated
* whenewer the associated TimerTask is run.
*/
! public ActiveThreadsView(final ImageR image) {
super(new BorderLayout());
graph=new TimeSeriesGraph();
add(graph, BorderLayout.CENTER);
--- 56,66 ----
/** Constructs a panel and an associated TimerTask. The graph is updated
* whenewer the associated TimerTask is run.
+ * @param size number of samples shown in the graph
*/
! public ActiveThreadsView(final ImageR image, int size) {
super(new BorderLayout());
graph=new TimeSeriesGraph();
+ graph.setGraphColor(new java.awt.Color(0x008000));
add(graph, BorderLayout.CENTER);
***************
*** 75,78 ****
--- 77,81 ----
sPanel.add(label2);
sPanel.add(label1);
+ sPanel.setBackground(null);
add(sPanel, BorderLayout.SOUTH);
***************
*** 96,99 ****
--- 99,109 ----
}
};
+ }
+
+ /** Constructs a panel and an associated TimerTask. The graph is updated
+ * whenewer the associated TimerTask is run.
+ */
+ public ActiveThreadsView(final ImageR image) {
+ this(image, 30);
}
|
|
From: Lukas P. <pe...@us...> - 2002-07-30 12:20:48
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views
In directory usw-pr-cvs1:/tmp/cvs-serv13255
Modified Files:
TimeSeriesGraph.java
Log Message:
added line graph presentation
Index: TimeSeriesGraph.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views/TimeSeriesGraph.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** TimeSeriesGraph.java 26 Jul 2002 09:33:14 -0000 1.2
--- TimeSeriesGraph.java 30 Jul 2002 12:20:46 -0000 1.3
***************
*** 1,120 ****
! 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;
!
! /** Constructs graph with default model. */
! public TimeSeriesGraph() {
! setPreferredSize(new Dimension(40,40));
! setOpaque(true);
! setModel(new TimeSeriesModel());
! }
!
! /** 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();
! }
!
! /** 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;
! int top=insets.top;
! int left=insets.left;
!
! // retrieve data
! int[] data=model.getData();
!
! // find largest value
! int max=model.getMax();
! for (int i=0; i<data.length; i++) {
! if (data[i] < 0)
! throw new RuntimeException("Illegal value in TimeSeriesModel");
! }
! max=fineScale(max);
!
! final int sCnt=data.length;
! if (sCnt==0)
! throw new RuntimeException(
! "Array has zero length in TimeSeriesModel.");
!
! // area width for graph w/o axes
! int areaMaxW=currentWidth-2;
! final int advance=(areaMaxW+1) / sCnt;
! int columnW=advance-1;
! if (columnW<1) columnW=1;
! int areaW=sCnt*advance - 1;
! int areaMaxH=currentHeight-2;
!
! // draw axes
! g.setColor(getForeground());
! int x0=insets.left + (areaMaxW-areaW)/2;
! int y0=getHeight()-1 - insets.bottom;
! g.drawLine(x0, y0-1, x0+areaW+2-1, y0-1);
! g.drawLine(x0+1, y0, x0+1, y0-(areaMaxH+2-1));
!
! // draw
! int columnH;
! int x=x0+2;
! final int y=y0 - 1;
! for (int i=0; i<sCnt; i++) {
! columnH=data[i]*areaMaxH/max;
! g.fillRect(x, y-columnH, columnW, columnH);
! x+=advance;
! }
! }
!
! /** Returns round number greater or equal to argument. */
! private int fineScale (int x) {
! if (x<=0)
! return 1;
! int d=1;
! int i=x;
! while (i>=10) {
! i/=10;
! d*=10;
! }
! // d is power of than <= x
! return (x+d-1)/d*d;
! }
! }
--- 1,234 ----
! /*
! * 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.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
! {
! /** Graph style constant. */
! public static final String BAR_GRAPH="BAR_GRAPH";
! /** Graph style constant. */
! public static final String LINE_GRAPH="LINE_GRAPH";
!
! /** The model that holds time series data. */
! private TimeSeriesModel model;
! /** Graph style. */
! private String style=LINE_GRAPH;
! /** Graph color. */
! private Color graphColor;
!
! /** Constructs graph with default model. */
! public TimeSeriesGraph() {
! setPreferredSize(new Dimension(40,40));
! setOpaque(true);
! setModel(new TimeSeriesModel());
! }
!
! /** 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;
! }
!
! /** Sets graph style.
! * @param st one of BAR_GRAPH, LINE_GRAPH
! */
! public void setStyle(String st) {
! if (st==BAR_GRAPH || st==LINE_GRAPH)
! style=st;
! else throw new IllegalArgumentException(st);
! }
!
! /** Returns graph style. */
! public String getStyle() {
! return style;
! }
!
! /** Sets graph color. */
! public void setGraphColor(Color co) {
! graphColor=co;
! }
!
! /** Returns graph color. */
! public Color getGraphColor() {
! return graphColor;
! }
!
! /** Used for notification of a model data change. Internal function,
! not to be called by end users.
! */
! public void stateChanged(ChangeEvent e) {
! repaint();
! }
!
! /** 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());
!
! // retrieve data
! int[] data=model.getData();
!
! if (data.length==0)
! throw new RuntimeException(
! "Array has zero length in TimeSeriesModel.");
!
!
! // find largest value
! int max=model.getMax();
! for (int i=0; i<data.length; i++) {
! if (data[i] < 0)
! throw new RuntimeException("Illegal value in TimeSeriesModel");
! }
! max=fineScale(max);
!
! if (style==BAR_GRAPH)
! paintBarGraph(g, data, max);
! else if (style==LINE_GRAPH)
! paintLineGraph(g, data, max);
! }
!
! private void paintBarGraph(Graphics g, int[] data, int max) {
! // compute usable area
! Insets insets = getInsets();
! int currentWidth = getWidth() - insets.left - insets.right;
! int currentHeight = getHeight() - insets.top - insets.bottom;
! int top=insets.top;
! int left=insets.left;
!
! final int sCnt=data.length;
!
! // area width for graph w/o axes
! int areaMaxW=currentWidth-3;
! final int advance=(areaMaxW+1) / sCnt;
! int columnW=advance-1;
! if (columnW<1) columnW=1;
! int areaW=sCnt*advance - 1;
! int areaMaxH=currentHeight-2;
!
! // draw axes
! g.setColor(getForeground());
! int x0=insets.left + (areaMaxW-areaW)/2;
! int y0=getHeight()-1 - insets.bottom;
! g.drawLine(x0, y0-2, x0+areaW+3-1, y0-2);
! g.drawLine(x0+2, y0, x0+2, y0-(areaMaxH+3-1));
!
! // draw
! if (graphColor != null)
! g.setColor(graphColor);
! int columnH;
! int x=x0+3;
! final int y=y0 - 2;
! for (int i=0; i<sCnt; i++) {
! columnH=data[i]*areaMaxH/max;
! g.fillRect(x, y-columnH, columnW, columnH);
! x+=advance;
! }
! }
!
! private void paintLineGraph(Graphics g, int[] data, int max) {
! // compute usable area
! Insets insets = getInsets();
! int currentWidth = getWidth() - insets.left - insets.right;
! int currentHeight = getHeight() - insets.top - insets.bottom;
! int top=insets.top;
! int left=insets.left;
!
! // draw axes
! g.setColor(getForeground());
! int x0=insets.left;
! int y0=getHeight()-1 - insets.bottom;
! g.drawLine(x0, y0-2, x0+currentWidth-1, y0-2);
! g.drawLine(x0+2, y0, x0+2, y0-(currentHeight-1));
!
! // area width for graph w/o axes
! int areaW=currentWidth-3;
! int areaH=currentHeight-3;
!
! final int sCnt=data.length;
!
! // draw line
! if (graphColor != null)
! g.setColor(graphColor);
! int oldX=x0+3;
! int oldY=y0-2-data[0]*areaH/max;
! int x, y;
! for (int i=1; i<sCnt; i++) {
! x=x0+3 + i*(areaW-1)/(sCnt-1);
! y=y0-2 - data[i]*areaH/max;
! g.drawLine(oldX, oldY, x, y);
! oldX=x;
! oldY=y;
! }
! }
!
! /** Returns round number greater or equal to argument. */
! private int fineScale (int x) {
! if (x<=10)
! return 10;
! int d=1;
! int i=x;
! while (i>=10) {
! i/=10;
! d*=10;
! }
! // d is power of than <= x
! return (x+d-1)/d*d;
! }
! }
|
|
From: Lukas P. <pe...@us...> - 2002-07-30 12:15:47
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views
In directory usw-pr-cvs1:/tmp/cvs-serv11138
Modified Files:
TimeSeriesModel.java
Log Message:
added new constructor
Index: TimeSeriesModel.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views/TimeSeriesModel.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** TimeSeriesModel.java 26 Jul 2002 09:32:39 -0000 1.2
--- TimeSeriesModel.java 30 Jul 2002 12:15:34 -0000 1.3
***************
*** 1,137 ****
! 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;
! /** Maximum value of the data. */
! private int max;
!
! 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;
! recompute();
! }
!
! /** Shifts current values of time series by one position to left and adds new
! value to be the rightmost one.
! */
! public void shift(int addVal) {
! System.arraycopy(data, 1, data, 0, data.length-1);
! data[data.length-1]=addVal;
! recompute();
! fireStateChanged();
! }
!
! /** Sets new time series values to a copy of a given argument. */
! public void setData(int[] series) {
! if (series==null)
! throw new IllegalArgumentException("null");
! data=new int[series.length];
! System.arraycopy(series, 0, data, 0, series.length);
! recompute();
! 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;
! }
!
! /** Returns value of the largest data sample. */
! public int getMax() {
! return max;
! }
!
! /** Returns value of the last (i.e. rightmost) data sample. */
! public int getLast() {
! return data[data.length-1];
! }
!
! /** Recalculates the max value. */
! private void recompute() {
! max = 0;
! for (int i=0; i<data.length; i++)
! if (data[i] > max) max=data[i];
! }
!
! // 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);
! }
! }
! }
!
}
--- 1,174 ----
! /*
! * 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.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;
! /** Maximum value of the data. */
! private int max;
!
! private transient ChangeEvent changeEvent = null;
! private EventListenerList listenerList = new EventListenerList();
!
! public TimeSeriesModel() {
! this(30);
! }
!
! /** Creates TimeSeriesModel with preallocated array for specified number of
! * samples.
! * @param length Length of the preallocated array.
! */
! public TimeSeriesModel(int length) {
! // test data
! data=new int[length];
! recompute();
! }
!
! /** Shifts current values of time series by one position to left and adds new
! value to be the rightmost one.
! */
! public void shift(int addVal) {
! System.arraycopy(data, 1, data, 0, data.length-1);
! data[data.length-1]=addVal;
! recompute();
! fireStateChanged();
! }
!
! /** Sets new time series values to a copy of a given argument. */
! public void setData(int[] series) {
! if (series==null)
! throw new IllegalArgumentException("null");
! data=new int[series.length];
! System.arraycopy(series, 0, data, 0, series.length);
! recompute();
! 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;
! }
!
! /** Returns value of the largest data sample. */
! public int getMax() {
! return max;
! }
!
! /** Returns value of the last (i.e. rightmost) data sample. */
! public int getLast() {
! return data[data.length-1];
! }
!
! /** Recalculates the max value. */
! private void recompute() {
! max = 0;
! for (int i=0; i<data.length; i++)
! if (data[i] > max) max=data[i];
! }
!
! // 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-29 16:45:00
|
Update of /cvsroot/javaprofiler/test/module
In directory usw-pr-cvs1:/tmp/cvs-serv30814
Modified Files:
MainThreads.java
Log Message:
using ActiveThreadsView component
Index: MainThreads.java
===================================================================
RCS file: /cvsroot/javaprofiler/test/module/MainThreads.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** MainThreads.java 26 Jul 2002 09:38:19 -0000 1.3
--- MainThreads.java 29 Jul 2002 16:44:57 -0000 1.4
***************
*** 1,109 ****
! //package net.sourceforge.javaprofiler.module.views;
!
! import javax.swing.*;
! import javax.swing.event.ChangeListener;
! import javax.swing.event.ChangeEvent;
! 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.*;
import net.sourceforge.javaprofiler.module.views.*;
!
! /** 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));
! frame.getContentPane().add(component, BorderLayout.NORTH);
!
! final TimeSeriesModel m=component.getModel();
! final JLabel label1=new JLabel("curr: 000");
! final JLabel label2=new JLabel("max: 000");
! m.addChangeListener(new ChangeListener() {
! public void stateChanged(ChangeEvent e) {
! label1.setText("curr: " + m.getLast());
! label2.setText("max: " + m.getMax());
! }
! });
! JPanel sPanel=new JPanel();
! sPanel.add(label2);
! sPanel.add(label1);
! frame.getContentPane().add(sPanel, BorderLayout.SOUTH);
!
! 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();
! image.refreshThreads();
! // get last value
! final int val=image.getThreads().size();
! // set data in event-dispatching thread
! SwingUtilities.invokeLater(new Runnable() {
! public void run() {
! m.shift(val);
! }
! });
! }
! };
! 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.");
! }
! }
--- 1,113 ----
! /*
! * 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 javax.swing.*;
! import javax.swing.event.ChangeListener;
! import javax.swing.event.ChangeEvent;
! import java.awt.*;
! import java.awt.event.*;
! import java.util.Timer;
! import java.util.TimerTask;
! import java.util.Iterator;
!
! import net.sourceforge.javaprofiler.jpiimpl.commun.*;
! import net.sourceforge.javaprofiler.jpiimpl.realtime.*;
import net.sourceforge.javaprofiler.module.views.*;
!
! /** 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
! {
!
! public static void main (String[] args) {
! connectAndRun(args);
! }
!
! private static void launchGui (final ImageR image, final IProf iprof) {
! JFrame frame=new JFrame("Active threads");
! frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
! frame.addWindowListener(new WindowAdapter() {
! public void windowClosing(WindowEvent e) {
! try {
! iprof.shutdown();
! } catch (IProfException ex) {}
! iprof.stop();
! System.exit(0);
! }
! });
!
! ActiveThreadsView view=new ActiveThreadsView(image);
! frame.getContentPane().add(view, BorderLayout.CENTER);
!
! frame.pack();
! frame.show();
!
! Timer timer=new Timer();
! timer.schedule(view.getTimerTask(), 500, 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-29 16:42:04
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views In directory usw-pr-cvs1:/tmp/cvs-serv29809 Added Files: ActiveThreadsView.java Log Message: Panel showing count of active threads. --- NEW FILE: ActiveThreadsView.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.views; import javax.swing.*; import javax.swing.event.ChangeListener; import javax.swing.event.ChangeEvent; import java.awt.BorderLayout; import java.util.TimerTask; import java.util.Iterator; import net.sourceforge.javaprofiler.jpiimpl.realtime.*; /** This component provides is a panel containing graph of active threads and * two labels showing the maximum and current count of active threads. * @author Lukas Petru */ public class ActiveThreadsView extends JPanel { /** Component showing a graph. */ private TimeSeriesGraph graph; /** Object returned by getTimerTask. */ private TimerTask task; /** Constructs a panel and an associated TimerTask. The graph is updated * whenewer the associated TimerTask is run. */ public ActiveThreadsView(final ImageR image) { super(new BorderLayout()); graph=new TimeSeriesGraph(); add(graph, BorderLayout.CENTER); final TimeSeriesModel m=graph.getModel(); final JLabel label1=new JLabel("curr: 000"); final JLabel label2=new JLabel("max: 000"); m.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { label1.setText("curr: " + m.getLast()); label2.setText("max: " + m.getMax()); } }); JPanel sPanel=new JPanel(); sPanel.add(label2); sPanel.add(label1); add(sPanel, BorderLayout.SOUTH); task=new TimerTask() { public void run() { image.refreshThreads(); // count active threads int act=0; Iterator it=image.getThreads().iterator(); while (it.hasNext()) { ThreadR th=(ThreadR) it.next(); if (th.isActive()) act++; } final int val=act; // set data in event-dispatching thread SwingUtilities.invokeLater(new Runnable() { public void run() { m.shift(val); } }); } }; } /** Returns associated <code>TimerTask</code>. */ public TimerTask getTimerTask() { return task; } } |
|
From: Lukas P. <pe...@us...> - 2002-07-29 15:08:02
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime
In directory usw-pr-cvs1:/tmp/cvs-serv10746
Modified Files:
ThreadR.java
Log Message:
added isActive method
Index: ThreadR.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime/ThreadR.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** ThreadR.java 24 Jul 2002 22:29:03 -0000 1.12
--- ThreadR.java 29 Jul 2002 15:07:57 -0000 1.13
***************
*** 60,63 ****
--- 60,66 ----
private ThreadRef parent;
+ // activeness info
+ private boolean active;
+
// memory info
private long numLiveInstances;
***************
*** 303,306 ****
--- 306,317 ----
}
+ /** Returns true if this thread is in a state after THREAD_START and before
+ * THREAD_END.
+ */
+ public boolean isActive() {
+ conditionalRefresh(IProf.ALLOC_DATA);
+ return active;
+ }
+
// refresh
***************
*** 436,439 ****
--- 447,451 ----
throw new RuntimeException(e.getMessage());
}
+ setActive(data.active);
switch (what) {
case IProf.ALLOC_DATA:
***************
*** 500,507 ****
--- 512,525 ----
}
+ /** Sets the value of the <code>active</code> atribute. */
+ private void setActive(boolean ac) {
+ active=ac;
+ }
+
/** Fills object with data gained from profiled VM.
* @param sid Object info and data.
*/
void setData(IProf.sID sid) {
+ setActive(sid.active);
// We get only alloc data
setData(sid.alloc);
|
|
From: Pavel V. <va...@us...> - 2002-07-27 22:29:06
|
Update of /cvsroot/javaprofiler/test/module
In directory usw-pr-cvs1:/tmp/cvs-serv31146
Modified Files:
TestAllocHistView.java
Log Message:
new construcotor used
Index: TestAllocHistView.java
===================================================================
RCS file: /cvsroot/javaprofiler/test/module/TestAllocHistView.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** TestAllocHistView.java 25 Jul 2002 23:03:13 -0000 1.6
--- TestAllocHistView.java 27 Jul 2002 22:29:03 -0000 1.7
***************
*** 75,80 ****
JTable table = new AllocHistogramTable(
! new AllocHistogramTableModel( image.getTypes() )
! );
table.setPreferredScrollableViewportSize(new Dimension(600, 600));
--- 75,81 ----
JTable table = new AllocHistogramTable(
! new AllocHistogramTableModel( image.getTypes(),
! image, Constants.TYPE )
! );
table.setPreferredScrollableViewportSize(new Dimension(600, 600));
|
|
From: Pavel V. <va...@us...> - 2002-07-27 22:27:05
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views
In directory usw-pr-cvs1:/tmp/cvs-serv30855
Modified Files:
AllocHistogramTable.java AllocHistogramTableModel.java
Log Message:
tooltips,
columns renamed (max -> total),
used HasChildren interface
Index: AllocHistogramTable.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views/AllocHistogramTable.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** AllocHistogramTable.java 24 Jul 2002 22:30:11 -0000 1.3
--- AllocHistogramTable.java 27 Jul 2002 22:27:03 -0000 1.4
***************
*** 103,109 ****
setText( str );
!
//if ( str.length() > 50 )
! // setToolTipText( str );
return this;
}
--- 103,113 ----
setText( str );
!
! if ( getPreferredSize().width >= getColumnModel().getColumn(column).getWidth() )
//if ( str.length() > 50 )
! setToolTipText( str );
! else
! setToolTipText( null );
!
return this;
}
Index: AllocHistogramTableModel.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views/AllocHistogramTableModel.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** AllocHistogramTableModel.java 24 Jul 2002 23:56:29 -0000 1.4
--- AllocHistogramTableModel.java 27 Jul 2002 22:27:03 -0000 1.5
***************
*** 34,38 ****
public class AllocHistogramTableModel extends AbstractTableModel {
private List allocStats;
! private String columnNames[] = { "name", "count", "max count", "histogram", "space", "max space" };
private Class columnClasses[] = { String.class, Long.class, Long.class, AllocStat.class, Long.class, Long.class };
private AllocStatListener statListener;
--- 34,38 ----
public class AllocHistogramTableModel extends AbstractTableModel {
private List allocStats;
! private String columnNames[] = { "name", "count", "total count", "histogram", "space", "total space" };
private Class columnClasses[] = { String.class, Long.class, Long.class, AllocStat.class, Long.class, Long.class };
private AllocStatListener statListener;
***************
*** 42,48 ****
/** Creates a new instance of HistogramTableModel
*@param allocStats list of <code> AllocStat </code> objects that have <code> getType() </code> method
! * At last one instance of <code> AllocStat </code> must be in the <code> List </code>.
*/
! public AllocHistogramTableModel(List allocStats) {
this.allocStats = allocStats;
statListener = new HistogramStatListener();
--- 42,50 ----
/** Creates a new instance of HistogramTableModel
*@param allocStats list of <code> AllocStat </code> objects that have <code> getType() </code> method
! *@param parent Parent where <code> allosStats </code> list resides. (We need subscribe for changes in this list).
! *@param listType this param is passed as type to <code> parent.addChildrenListener </code> method. Its constant from
! * <code> net.sourceforge.javaprofiler.jpi.Constants </code>
*/
! public AllocHistogramTableModel(List allocStats, HasChildren parent, int type) {
this.allocStats = allocStats;
statListener = new HistogramStatListener();
***************
*** 53,61 ****
}
! ((TypeRef) allocStats.get(0)).getVirtualMachineImage()
! .addChildrenListener( Constants.TYPE,
! new HistogramChildrenListener() );
! //PENDING listeners to other types
! //parent.addChildListener( type, new HistogramChildrenListener );
}
--- 55,59 ----
}
! parent.addChildrenListener( type, new HistogramChildrenListener() );
}
***************
*** 73,77 ****
switch ( colIndex ) {
case 0: {
! return ((HasType) alloc).getType().getName();
}
case 1: {
--- 71,75 ----
switch ( colIndex ) {
case 0: {
! return ((HasTypeRoot) alloc).getType().getName();
}
case 1: {
***************
*** 104,110 ****
public boolean isCellEditable(int rowIndex, int columnIndex) {
- //if ( columnIndex == 0 )
- // return true; //It's true, beceaus it assumes special editor, that don't let you change anything
- //else
return false;
}
--- 102,105 ----
***************
*** 167,170 ****
};
}
!
}
--- 162,167 ----
};
}
!
!
! //pending unsubscribing
}
|
Update of /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi In directory usw-pr-cvs1:/tmp/cvs-serv30527 Modified Files: AllocThreadMethodRef.java AllocThreadTraceRef.java AllocTraceRef.java AllocTypeMethodRef.java AllocTypeThreadMethodRef.java AllocTypeThreadRef.java AllocTypeThreadTraceRef.java AllocTypeTraceRef.java CallTreeRef.java CPUThreadMethodRef.java CPUThreadTraceRef.java CPUTraceRef.java MethodRef.java MonThreadMethodRef.java MonThreadTraceRef.java MonTraceRef.java ThreadGroupRef.java ThreadRef.java TraceRef.java TypeRef.java VirtualMachineImageRef.java Added Files: HasTypeRoot.java Log Message: Has... interfaces renamed (word Root aded) added HasChildren interface --- NEW FILE: HasTypeRoot.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; /** * * @author Pavel Vacha */ public interface HasTypeRoot { public TypeRef getType(); } /* * $Log: HasTypeRoot.java,v $ * Revision 1.1 2002/07/27 22:25:17 vachis * Has... interfaces renamed (word Root aded) * added HasChildren interface * * Revision 1.1 2002/07/24 22:27:13 vachis * new interfaces for getting roots and info * */ Index: AllocThreadMethodRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/AllocThreadMethodRef.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** AllocThreadMethodRef.java 24 Jul 2002 22:28:10 -0000 1.5 --- AllocThreadMethodRef.java 27 Jul 2002 22:25:17 -0000 1.6 *************** *** 23,27 **** import java.util.List; ! public interface AllocThreadMethodRef extends AllocStat, HasThread, HasLocation { CPUThreadMethodRef getSiblingCPU(); MonThreadMethodRef getSiblingMon(); --- 23,28 ---- import java.util.List; ! public interface AllocThreadMethodRef extends AllocStat, HasThreadRoot, ! HasLocationRoot, HasChildren { CPUThreadMethodRef getSiblingCPU(); MonThreadMethodRef getSiblingMon(); *************** *** 33,43 **** ThreadRef getThread(); MethodRef getMethod(); - - void addChildrenListener( int type, ChildrenListener listener); - void removeChildrenListener( int type, ChildrenListener listener); } /* * $Log$ * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info --- 34,45 ---- ThreadRef getThread(); MethodRef getMethod(); } /* * $Log$ + * Revision 1.6 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info Index: AllocThreadTraceRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/AllocThreadTraceRef.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** AllocThreadTraceRef.java 24 Jul 2002 22:28:10 -0000 1.5 --- AllocThreadTraceRef.java 27 Jul 2002 22:25:17 -0000 1.6 *************** *** 23,27 **** import java.util.List; ! public interface AllocThreadTraceRef extends AllocStat, HasThread, HasLocation { CPUThreadTraceRef getSiblingCPU(); MonThreadTraceRef getSiblingMon(); --- 23,27 ---- import java.util.List; ! public interface AllocThreadTraceRef extends AllocStat, HasThreadRoot, HasLocationRoot { CPUThreadTraceRef getSiblingCPU(); MonThreadTraceRef getSiblingMon(); *************** *** 40,43 **** --- 40,47 ---- /* * $Log$ + * Revision 1.6 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info Index: AllocTraceRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/AllocTraceRef.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** AllocTraceRef.java 24 Jul 2002 22:28:10 -0000 1.5 --- AllocTraceRef.java 27 Jul 2002 22:25:17 -0000 1.6 *************** *** 23,27 **** import java.util.List; ! public interface AllocTraceRef extends AllocStat, TraceRef, HasLocation { CPUTraceRef getSiblingCPU(); MonTraceRef getSiblingMon(); --- 23,28 ---- import java.util.List; ! public interface AllocTraceRef extends AllocStat, TraceRef, HasLocationRoot, ! HasChildren { CPUTraceRef getSiblingCPU(); MonTraceRef getSiblingMon(); *************** *** 31,41 **** List getAllocTypeTraces(); AllocTypeTraceRef getAllocTypeTrace( TypeRef peer); - - void addChildrenListener( int type, ChildrenListener listener); - void removeChildrenListener( int type, ChildrenListener listener); } /* * $Log$ * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info --- 32,43 ---- List getAllocTypeTraces(); AllocTypeTraceRef getAllocTypeTrace( TypeRef peer); } /* * $Log$ + * Revision 1.6 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info Index: AllocTypeMethodRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/AllocTypeMethodRef.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** AllocTypeMethodRef.java 24 Jul 2002 22:28:10 -0000 1.5 --- AllocTypeMethodRef.java 27 Jul 2002 22:25:17 -0000 1.6 *************** *** 23,27 **** import java.util.List; ! public interface AllocTypeMethodRef extends AllocStat, HasType, HasLocation { List getAllocTypeTraces(); --- 23,28 ---- import java.util.List; ! public interface AllocTypeMethodRef extends AllocStat, HasTypeRoot, ! HasLocationRoot, HasChildren { List getAllocTypeTraces(); *************** *** 31,41 **** TypeRef getType(); MethodRef getMethod(); - - void addChildrenListener( int type, ChildrenListener listener); - void removeChildrenListener( int type, ChildrenListener listener); } /* * $Log$ * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info --- 32,43 ---- TypeRef getType(); MethodRef getMethod(); } /* * $Log$ + * Revision 1.6 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info Index: AllocTypeThreadMethodRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/AllocTypeThreadMethodRef.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** AllocTypeThreadMethodRef.java 24 Jul 2002 22:28:10 -0000 1.5 --- AllocTypeThreadMethodRef.java 27 Jul 2002 22:25:17 -0000 1.6 *************** *** 24,28 **** public interface AllocTypeThreadMethodRef extends AllocStat, ! HasType, HasThread, HasLocation { List getAllocTypeThreadTraces(); --- 24,29 ---- public interface AllocTypeThreadMethodRef extends AllocStat, ! HasTypeRoot, HasThreadRoot, ! HasLocationRoot, HasChildren { List getAllocTypeThreadTraces(); *************** *** 31,41 **** AllocThreadMethodRef getAllocThreadMethod(); AllocTypeThreadRef getAllocTypeThread(); - - void addChildrenListener( int type, ChildrenListener listener); - void removeChildrenListener( int type, ChildrenListener listener); } /* * $Log$ * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info --- 32,43 ---- AllocThreadMethodRef getAllocThreadMethod(); AllocTypeThreadRef getAllocTypeThread(); } /* * $Log$ + * Revision 1.6 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info Index: AllocTypeThreadRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/AllocTypeThreadRef.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** AllocTypeThreadRef.java 24 Jul 2002 22:28:10 -0000 1.5 --- AllocTypeThreadRef.java 27 Jul 2002 22:25:17 -0000 1.6 *************** *** 23,27 **** import java.util.List; ! public interface AllocTypeThreadRef extends AllocStat, HasType, HasThread { List getAllocTypeThreadMethods(); --- 23,28 ---- import java.util.List; ! public interface AllocTypeThreadRef extends AllocStat, HasTypeRoot, ! HasThreadRoot, HasChildren { List getAllocTypeThreadMethods(); *************** *** 32,42 **** TypeRef getType(); ThreadRef getThread(); - - void addChildrenListener( int type, ChildrenListener listener); - void removeChildrenListener( int type, ChildrenListener listener); } /* * $Log$ * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info --- 33,44 ---- TypeRef getType(); ThreadRef getThread(); } /* * $Log$ + * Revision 1.6 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info Index: AllocTypeThreadTraceRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/AllocTypeThreadTraceRef.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** AllocTypeThreadTraceRef.java 24 Jul 2002 22:28:10 -0000 1.4 --- AllocTypeThreadTraceRef.java 27 Jul 2002 22:25:17 -0000 1.5 *************** *** 24,28 **** public interface AllocTypeThreadTraceRef extends AllocStat, ! HasType, HasThread, HasLocation { AllocTypeThreadMethodRef getAllocTypeThreadMethod(); --- 24,28 ---- public interface AllocTypeThreadTraceRef extends AllocStat, ! HasTypeRoot, HasThreadRoot, HasLocationRoot { AllocTypeThreadMethodRef getAllocTypeThreadMethod(); *************** *** 34,37 **** --- 34,41 ---- /* * $Log$ + * Revision 1.5 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.4 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info Index: AllocTypeTraceRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/AllocTypeTraceRef.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** AllocTypeTraceRef.java 24 Jul 2002 22:28:10 -0000 1.5 --- AllocTypeTraceRef.java 27 Jul 2002 22:25:17 -0000 1.6 *************** *** 23,27 **** import java.util.List; ! public interface AllocTypeTraceRef extends AllocStat, HasType, HasLocation { List getAllocTypeThreadTraces(); --- 23,28 ---- import java.util.List; ! public interface AllocTypeTraceRef extends AllocStat, HasTypeRoot, ! HasLocationRoot, HasChildren { List getAllocTypeThreadTraces(); *************** *** 31,41 **** TypeRef getType(); AllocTraceRef getAllocTrace(); - - void addChildrenListener( int type, ChildrenListener listener); - void removeChildrenListener( int type, ChildrenListener listener); } /* * $Log$ * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info --- 32,43 ---- TypeRef getType(); AllocTraceRef getAllocTrace(); } /* * $Log$ + * Revision 1.6 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info Index: CallTreeRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/CallTreeRef.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** CallTreeRef.java 2 Jul 2002 20:17:14 -0000 1.4 --- CallTreeRef.java 27 Jul 2002 22:25:17 -0000 1.5 *************** *** 32,41 **** List getChildren(); ! void addChildrenListener( int type, ChildrenListener listener); ! void removeChildrenListener( int type, ChildrenListener listener); } /* * $Log$ * Revision 1.4 2002/07/02 20:17:14 stolis * License added. --- 32,45 ---- List getChildren(); ! void addChildrenListener(ChildrenListener listener); ! void removeChildrenListener(ChildrenListener listener); } /* * $Log$ + * Revision 1.5 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.4 2002/07/02 20:17:14 stolis * License added. Index: CPUThreadMethodRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/CPUThreadMethodRef.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** CPUThreadMethodRef.java 24 Jul 2002 22:28:10 -0000 1.5 --- CPUThreadMethodRef.java 27 Jul 2002 22:25:17 -0000 1.6 *************** *** 23,27 **** import java.util.List; ! public interface CPUThreadMethodRef extends CPUStat, HasThread, HasLocation { AllocThreadMethodRef getSiblingAlloc(); MonThreadMethodRef getSiblingMon(); --- 23,28 ---- import java.util.List; ! public interface CPUThreadMethodRef extends CPUStat, HasThreadRoot, ! HasLocationRoot, HasChildren { AllocThreadMethodRef getSiblingAlloc(); MonThreadMethodRef getSiblingMon(); *************** *** 31,41 **** ThreadRef getThread(); MethodRef getMethod(); - - void addChildrenListener( int type, ChildrenListener listener); - void removeChildrenListener( int type, ChildrenListener listener); } /* * $Log$ * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info --- 32,43 ---- ThreadRef getThread(); MethodRef getMethod(); } /* * $Log$ + * Revision 1.6 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info Index: CPUThreadTraceRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/CPUThreadTraceRef.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** CPUThreadTraceRef.java 24 Jul 2002 22:28:10 -0000 1.4 --- CPUThreadTraceRef.java 27 Jul 2002 22:25:17 -0000 1.5 *************** *** 23,27 **** import java.util.List; ! public interface CPUThreadTraceRef extends CPUStat, HasThread, HasLocation { AllocThreadTraceRef getSiblingAlloc(); MonThreadTraceRef getSiblingMon(); --- 23,27 ---- import java.util.List; ! public interface CPUThreadTraceRef extends CPUStat, HasThreadRoot, HasLocationRoot { AllocThreadTraceRef getSiblingAlloc(); MonThreadTraceRef getSiblingMon(); *************** *** 34,37 **** --- 34,41 ---- /* * $Log$ + * Revision 1.5 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.4 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info Index: CPUTraceRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/CPUTraceRef.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** CPUTraceRef.java 24 Jul 2002 22:28:10 -0000 1.5 --- CPUTraceRef.java 27 Jul 2002 22:25:17 -0000 1.6 *************** *** 23,27 **** import java.util.List; ! public interface CPUTraceRef extends CPUStat, TraceRef, HasLocation { AllocTraceRef getSiblingAlloc(); MonTraceRef getSiblingMon(); --- 23,28 ---- import java.util.List; ! public interface CPUTraceRef extends CPUStat, TraceRef, HasLocationRoot, ! HasChildren { AllocTraceRef getSiblingAlloc(); MonTraceRef getSiblingMon(); *************** *** 29,39 **** List getCPUThreadTraces(); CPUThreadTraceRef getCPUThreadTrace( ThreadRef peer); - - void addChildrenListener( int type, ChildrenListener listener); - void removeChildrenListener( int type, ChildrenListener listener); } /* * $Log$ * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info --- 30,41 ---- List getCPUThreadTraces(); CPUThreadTraceRef getCPUThreadTrace( ThreadRef peer); } /* * $Log$ + * Revision 1.6 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info Index: MethodRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/MethodRef.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** MethodRef.java 24 Jul 2002 22:28:10 -0000 1.5 --- MethodRef.java 27 Jul 2002 22:25:17 -0000 1.6 *************** *** 23,27 **** import java.util.List; ! public interface MethodRef extends CPUStat, AllocStat, MonStat, LocationRef, HasLocation { String getName(); String getSignature(); --- 23,28 ---- import java.util.List; ! public interface MethodRef extends CPUStat, AllocStat, MonStat, LocationRef, ! HasLocationRoot, HasChildren { String getName(); String getSignature(); *************** *** 43,53 **** VirtualMachineImageRef getVirtualMachineImage(); - - void addChildrenListener( int type, ChildrenListener listener); - void removeChildrenListener( int type, ChildrenListener listener); } /* * $Log$ * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info --- 44,55 ---- VirtualMachineImageRef getVirtualMachineImage(); } /* * $Log$ + * Revision 1.6 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info Index: MonThreadMethodRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/MonThreadMethodRef.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** MonThreadMethodRef.java 24 Jul 2002 22:28:10 -0000 1.5 --- MonThreadMethodRef.java 27 Jul 2002 22:25:17 -0000 1.6 *************** *** 23,27 **** import java.util.List; ! public interface MonThreadMethodRef extends MonStat, HasThread, HasLocation { CPUThreadMethodRef getSiblingCPU(); AllocThreadMethodRef getSiblingAlloc(); --- 23,28 ---- import java.util.List; ! public interface MonThreadMethodRef extends MonStat, HasThreadRoot, ! HasLocationRoot, HasChildren { CPUThreadMethodRef getSiblingCPU(); AllocThreadMethodRef getSiblingAlloc(); *************** *** 31,41 **** ThreadRef getThread(); MethodRef getMethod(); - - void addChildrenListener( int type, ChildrenListener listener); - void removeChildrenListener( int type, ChildrenListener listener); } /* * $Log$ * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info --- 32,43 ---- ThreadRef getThread(); MethodRef getMethod(); } /* * $Log$ + * Revision 1.6 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info Index: MonThreadTraceRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/MonThreadTraceRef.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** MonThreadTraceRef.java 24 Jul 2002 22:28:10 -0000 1.4 --- MonThreadTraceRef.java 27 Jul 2002 22:25:17 -0000 1.5 *************** *** 23,27 **** import java.util.List; ! public interface MonThreadTraceRef extends MonStat, HasThread, HasLocation { CPUThreadTraceRef getSiblingCPU(); AllocThreadTraceRef getSiblingAlloc(); --- 23,27 ---- import java.util.List; ! public interface MonThreadTraceRef extends MonStat, HasThreadRoot, HasLocationRoot { CPUThreadTraceRef getSiblingCPU(); AllocThreadTraceRef getSiblingAlloc(); *************** *** 34,37 **** --- 34,41 ---- /* * $Log$ + * Revision 1.5 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.4 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info Index: MonTraceRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/MonTraceRef.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** MonTraceRef.java 24 Jul 2002 22:28:10 -0000 1.5 --- MonTraceRef.java 27 Jul 2002 22:25:17 -0000 1.6 *************** *** 23,27 **** import java.util.List; ! public interface MonTraceRef extends MonStat, TraceRef, HasLocation { CPUTraceRef getSiblingCPU(); AllocTraceRef getSiblingAlloc(); --- 23,28 ---- import java.util.List; ! public interface MonTraceRef extends MonStat, TraceRef, HasLocationRoot, ! HasChildren{ CPUTraceRef getSiblingCPU(); AllocTraceRef getSiblingAlloc(); *************** *** 29,39 **** List getMonThreadTraces(); MonThreadTraceRef getMonThreadTrace( ThreadRef peer); - - void addChildrenListener( int type, ChildrenListener listener); - void removeChildrenListener( int type, ChildrenListener listener); } /* * $Log$ * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info --- 30,41 ---- List getMonThreadTraces(); MonThreadTraceRef getMonThreadTrace( ThreadRef peer); } /* * $Log$ + * Revision 1.6 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info Index: ThreadGroupRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/ThreadGroupRef.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** ThreadGroupRef.java 2 Jul 2002 20:17:13 -0000 1.4 --- ThreadGroupRef.java 27 Jul 2002 22:25:17 -0000 1.5 *************** *** 23,37 **** import java.util.List; ! public interface ThreadGroupRef { String getName(); List getThreads(); - - void addChildrenListener( int type, ChildrenListener listener); - void removeChildrenListener( int type, ChildrenListener listener); } /* * $Log$ * Revision 1.4 2002/07/02 20:17:13 stolis * License added. --- 23,38 ---- import java.util.List; ! public interface ThreadGroupRef extends HasChildren { String getName(); List getThreads(); } /* * $Log$ + * Revision 1.5 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.4 2002/07/02 20:17:13 stolis * License added. Index: ThreadRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/ThreadRef.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** ThreadRef.java 24 Jul 2002 22:28:10 -0000 1.5 --- ThreadRef.java 27 Jul 2002 22:25:17 -0000 1.6 *************** *** 24,28 **** import java.util.Date; ! public interface ThreadRef extends CPUStat, AllocStat, MonStat, HasThread { String getName(); ThreadRef getParentThread(); --- 24,29 ---- import java.util.Date; ! public interface ThreadRef extends CPUStat, AllocStat, MonStat, HasThreadRoot, ! HasChildren { String getName(); ThreadRef getParentThread(); *************** *** 49,59 **** ThreadGroupRef getThreadGroup(); VirtualMachineImageRef getVirtualMachineImage(); - - void addChildrenListener( int type, ChildrenListener listener); - void removeChildrenListener( int type, ChildrenListener listener); } /* * $Log$ * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info --- 50,61 ---- ThreadGroupRef getThreadGroup(); VirtualMachineImageRef getVirtualMachineImage(); } /* * $Log$ + * Revision 1.6 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info Index: TraceRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/TraceRef.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** TraceRef.java 24 Jul 2002 22:28:10 -0000 1.4 --- TraceRef.java 27 Jul 2002 22:25:17 -0000 1.5 *************** *** 23,27 **** import java.util.List; ! public interface TraceRef extends LocationRef, HasLocation { List getFrames(); --- 23,27 ---- import java.util.List; ! public interface TraceRef extends LocationRef, HasLocationRoot { List getFrames(); *************** *** 32,35 **** --- 32,39 ---- /* * $Log$ + * Revision 1.5 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.4 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info Index: TypeRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/TypeRef.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** TypeRef.java 24 Jul 2002 22:28:10 -0000 1.5 --- TypeRef.java 27 Jul 2002 22:25:17 -0000 1.6 *************** *** 23,27 **** import java.util.List; ! public interface TypeRef extends AllocStat, HasType { String getName(); ClassRef getComponentClass(); --- 23,27 ---- import java.util.List; ! public interface TypeRef extends AllocStat, HasTypeRoot, HasChildren { String getName(); ClassRef getComponentClass(); *************** *** 37,47 **** VirtualMachineImageRef getVirtualMachineImage(); - - void addChildrenListener( int type, ChildrenListener listener); - void removeChildrenListener( int type, ChildrenListener listener); } /* * $Log$ * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info --- 37,48 ---- VirtualMachineImageRef getVirtualMachineImage(); } /* * $Log$ + * Revision 1.6 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.5 2002/07/24 22:28:10 vachis * extends new interfaces for getting roots and info Index: VirtualMachineImageRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/VirtualMachineImageRef.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** VirtualMachineImageRef.java 2 Jul 2002 20:17:13 -0000 1.5 --- VirtualMachineImageRef.java 27 Jul 2002 22:25:17 -0000 1.6 *************** *** 23,27 **** import java.util.List; ! public interface VirtualMachineImageRef { List getThreads(); --- 23,27 ---- import java.util.List; ! public interface VirtualMachineImageRef extends HasChildren { List getThreads(); *************** *** 51,61 **** */ public long totalMemory(); - - void addChildrenListener( int type, ChildrenListener listener); - void removeChildrenListener( int type, ChildrenListener listener); } /* * $Log$ * Revision 1.5 2002/07/02 20:17:13 stolis * License added. --- 51,62 ---- */ public long totalMemory(); } /* * $Log$ + * Revision 1.6 2002/07/27 22:25:17 vachis + * Has... interfaces renamed (word Root aded) + * added HasChildren interface + * * Revision 1.5 2002/07/02 20:17:13 stolis * License added. |
Update of /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi In directory usw-pr-cvs1:/tmp/cvs-serv30333 Added Files: HasChildren.java HasLocationRoot.java HasThreadRoot.java Removed Files: HasLocation.java HasThread.java HasType.java Log Message: renamed word Root added --- NEW FILE: HasChildren.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; /** * * @author Pavel Vacha */ public interface HasChildren { void addChildrenListener( int type, ChildrenListener listener); void removeChildrenListener( int type, ChildrenListener listener); } --- NEW FILE: HasLocationRoot.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; /** * * @author Pavel Vacha */ public interface HasLocationRoot { public LocationRef getLocation(); } /* * $Log: HasLocationRoot.java,v $ * Revision 1.1 2002/07/27 22:24:13 vachis * renamed word Root added * * Revision 1.1 2002/07/24 22:27:13 vachis * new interfaces for getting roots and info * */ --- NEW FILE: HasThreadRoot.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; /** * * @author Pavel Vacha */ public interface HasThreadRoot { public ThreadRef getThread(); } /* * $Log: HasThreadRoot.java,v $ * Revision 1.1 2002/07/27 22:24:13 vachis * renamed word Root added * * Revision 1.1 2002/07/24 22:27:13 vachis * new interfaces for getting roots and info * */ --- HasLocation.java DELETED --- --- HasThread.java DELETED --- --- HasType.java DELETED --- |
|
From: Pavel V. <va...@us...> - 2002-07-26 09:59:33
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect
In directory usw-pr-cvs1:/tmp/cvs-serv21265
Modified Files:
SocketAttachConnector.java ShmemAttachConnector.java
Log Message:
default properties for attaching connectors
Index: SocketAttachConnector.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect/SocketAttachConnector.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** SocketAttachConnector.java 4 Jul 2002 18:15:46 -0000 1.6
--- SocketAttachConnector.java 26 Jul 2002 09:59:27 -0000 1.7
***************
*** 95,103 ****
Connector.Argument arg=new StringArgumentImpl(false, bundle.getString("Host"),
bundle.getString("AttachHost"), "host");
! arg.setValue("");
args.put(arg.name(), arg);
arg=new IntegerArgumentImpl(true, bundle.getString("Port"),
bundle.getString("AttachPort"), "port", 0, 65535);
! ((Connector.IntegerArgument)arg).setValue(0);
args.put(arg.name(), arg);
return args;
--- 95,104 ----
Connector.Argument arg=new StringArgumentImpl(false, bundle.getString("Host"),
bundle.getString("AttachHost"), "host");
! arg.setValue(bundle.getString( "DEFAULT_ATTACH_SOCKET_HOST" ));
args.put(arg.name(), arg);
arg=new IntegerArgumentImpl(true, bundle.getString("Port"),
bundle.getString("AttachPort"), "port", 0, 65535);
! ((Connector.IntegerArgument)arg).setValue(
! Integer.parseInt( bundle.getString( "DEFAULT_ATTACH_SOCKET_PORT" ) ));
args.put(arg.name(), arg);
return args;
***************
*** 139,142 ****
--- 140,146 ----
/*
* $Log$
+ * Revision 1.7 2002/07/26 09:59:27 vachis
+ * default properties for attaching connectors
+ *
* Revision 1.6 2002/07/04 18:15:46 stolis
* Connectors use new API.
Index: ShmemAttachConnector.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect/ShmemAttachConnector.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** ShmemAttachConnector.java 4 Jul 2002 18:15:46 -0000 1.6
--- ShmemAttachConnector.java 26 Jul 2002 09:59:27 -0000 1.7
***************
*** 88,92 ****
Connector.Argument arg=new StringArgumentImpl(true, bundle.getString("Address"),
bundle.getString("AttachAddress"), "address");
! arg.setValue("");
args.put(arg.name(), arg);
return args;
--- 88,92 ----
Connector.Argument arg=new StringArgumentImpl(true, bundle.getString("Address"),
bundle.getString("AttachAddress"), "address");
! arg.setValue(bundle.getString( "DEFAULT_ATTACH_SHMEM_ADDRESS" ));
args.put(arg.name(), arg);
return args;
***************
*** 128,131 ****
--- 128,134 ----
/*
* $Log$
+ * Revision 1.7 2002/07/26 09:59:27 vachis
+ * default properties for attaching connectors
+ *
* Revision 1.6 2002/07/04 18:15:46 stolis
* Connectors use new API.
|
|
From: Pavel V. <va...@us...> - 2002-07-26 09:58:58
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl In directory usw-pr-cvs1:/tmp/cvs-serv21053 Modified Files: bundle.properties Log Message: default properties for attaching connectors Index: bundle.properties =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/bundle.properties,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** bundle.properties 16 May 2002 11:38:20 -0000 1.3 --- bundle.properties 26 Jul 2002 09:58:54 -0000 1.4 *************** *** 65,66 **** --- 65,72 ---- ERR_IOEXCEPTION=Exception while executing profiled process: + + DEFAULT_ATTACH_SOCKET_HOST=localhost + + DEFAULT_ATTACH_SOCKET_PORT=25595 + + DEFAULT_ATTACH_SHMEM_ADDRESS=com |
|
From: Pavel V. <va...@us...> - 2002-07-26 09:58:20
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions
In directory usw-pr-cvs1:/tmp/cvs-serv20916
Modified Files:
AttachPanel.java
Log Message:
load default conectors properties into dialog box
Index: AttachPanel.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/AttachPanel.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** AttachPanel.java 4 Jul 2002 18:21:12 -0000 1.3
--- AttachPanel.java 26 Jul 2002 09:58:15 -0000 1.4
***************
*** 118,121 ****
--- 118,124 ----
add(tf, c);
fields.add(tf);
+
+ //PV
+ tf.setText( arg.value() );
i++;
}
***************
*** 186,189 ****
--- 189,195 ----
/*
* $Log$
+ * Revision 1.4 2002/07/26 09:58:15 vachis
+ * load default conectors properties into dialog box
+ *
* Revision 1.3 2002/07/04 18:21:12 stolis
* Changes forced by new API.
|