You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(73) |
Sep
(92) |
Oct
(9) |
Nov
(80) |
Dec
(60) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(92) |
Feb
(52) |
Mar
(71) |
Apr
(64) |
May
(53) |
Jun
(10) |
Jul
(111) |
Aug
(93) |
Sep
(134) |
Oct
|
Nov
|
Dec
|
From: Pavel V. <va...@us...> - 2002-09-12 15:44:00
|
Update of /cvsroot/javaprofiler/library/doc/library In directory usw-pr-cvs1:/tmp/cvs-serv15909/doc/library Modified Files: doc_html.conf doc_latex.conf Log Message: library-src-02-09-10 by marek Index: doc_html.conf =================================================================== RCS file: /cvsroot/javaprofiler/library/doc/library/doc_html.conf,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** doc_html.conf 21 Nov 2001 22:31:52 -0000 1.3 --- doc_html.conf 12 Sep 2002 15:43:56 -0000 1.4 *************** *** 18,22 **** # by quotes) that should identify the project. ! PROJECT_NAME = "Java Profiler Dynamic Library" # The PROJECT_NUMBER tag can be used to enter a project or revision number. --- 18,22 ---- # by quotes) that should identify the project. ! PROJECT_NAME = "Dynamic Profiler Library" # The PROJECT_NUMBER tag can be used to enter a project or revision number. Index: doc_latex.conf =================================================================== RCS file: /cvsroot/javaprofiler/library/doc/library/doc_latex.conf,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** doc_latex.conf 21 Nov 2001 22:31:52 -0000 1.2 --- doc_latex.conf 12 Sep 2002 15:43:56 -0000 1.3 *************** *** 18,22 **** # by quotes) that should identify the project. ! PROJECT_NAME = "Java Profiler Dynamic Library" # The PROJECT_NUMBER tag can be used to enter a project or revision number. --- 18,22 ---- # by quotes) that should identify the project. ! PROJECT_NAME = "Dynamic Profiler Library" # The PROJECT_NUMBER tag can be used to enter a project or revision number. |
From: Michal P. <mic...@us...> - 2002-09-12 14:47:30
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes In directory usw-pr-cvs1:/tmp/cvs-serv28382/net/sourceforge/javaprofiler/module/nodes Modified Files: SessionKiller.java Log Message: VMDisconnectedException removed. Index: SessionKiller.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes/SessionKiller.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** SessionKiller.java 11 Sep 2002 16:12:15 -0000 1.4 --- SessionKiller.java 12 Sep 2002 14:47:27 -0000 1.5 *************** *** 26,30 **** import net.sourceforge.javaprofiler.jpi.Snapshot; - import net.sourceforge.javaprofiler.jpi.VMDisconnectedException; import net.sourceforge.javaprofiler.module.ProfilerSettings; import net.sourceforge.javaprofiler.module.data.Session; --- 26,29 ---- *************** *** 49,66 **** while (iter.hasNext()) { session=(Session)iter.next(); ! try { if (session.getVM().isShutdown()) { // create snapshot ProfilerSettings ps=(ProfilerSettings)SystemOption.findObject(ProfilerSettings.class, true); if (ps.getSnapshotOnExit()) { ! session.createSnapshot(); } session.getVM().shutdown(); ProfilerData.getData().removeSession(session); } ! } catch (VMDisconnectedException e) { // session disconnected, should be removed from memory ProfilerData.getData().removeSession(session); ! } } Thread.sleep(2000); --- 48,65 ---- while (iter.hasNext()) { session=(Session)iter.next(); ! //try { if (session.getVM().isShutdown()) { // create snapshot ProfilerSettings ps=(ProfilerSettings)SystemOption.findObject(ProfilerSettings.class, true); if (ps.getSnapshotOnExit()) { ! session.createSnapshot(); } session.getVM().shutdown(); ProfilerData.getData().removeSession(session); } ! /*} catch (VMDisconnectedException e) { // session disconnected, should be removed from memory ProfilerData.getData().removeSession(session); ! }*/ } Thread.sleep(2000); *************** *** 75,78 **** --- 74,81 ---- /* * $Log$ + * Revision 1.5 2002/09/12 14:47:27 michalpise + * + * VMDisconnectedException removed. + * * Revision 1.4 2002/09/11 16:12:15 vachis * bug fix *************** *** 88,90 **** * Thread that removes disconnected/shutdowned sessions from memory. * ! */ \ No newline at end of file --- 91,93 ---- * Thread that removes disconnected/shutdowned sessions from memory. * ! */ |
From: Michal P. <mic...@us...> - 2002-09-12 14:39:50
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/wizards In directory usw-pr-cvs1:/tmp/cvs-serv25787/net/sourceforge/javaprofiler/module/wizards Added Files: ConnectorWizardFinishPanel.java ConnectorWizardPanel.java Log Message: Initial import. --- NEW FILE: ConnectorWizardFinishPanel.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.wizards; import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.*; import javax.swing.event.*; import org.openide.*; import org.openide.util.*; import net.sourceforge.javaprofiler.jpi.*; import net.sourceforge.javaprofiler.jpi.connect.*; public class ConnectorWizardFinishPanel implements WizardDescriptor.FinishPanel { private final JPanel panel = new JPanel(); private Connector connector; private boolean isValid = false; private Thread thread; public ConnectorWizardFinishPanel () { panel.setName( "Connector"); panel.setPreferredSize( new Dimension( 400, 200)); panel.setLayout( new BoxLayout( panel, BoxLayout.Y_AXIS)); panel.add( new JLabel( "Connecting, please wait...")); } public HelpCtx getHelp() { return new HelpCtx (ConnectorWizardFinishPanel.class); } public void storeSettings( Object settings) { } public void readSettings( Object settings) { final Connector connector = (Connector)((Map)settings).get( "connector"); final Map arguments = (Map)((Map)settings).get( "arguments"); // hourglass thread = new Thread() { public void run() { try { connector.connect( arguments); } catch ( ConnectingException e) { connectFailed( e.getMessage()); } connectSucceeded(); } }; thread.start(); // no hourglass } private void connectSucceeded() { } private void connectFailed( String reason) { } public void addChangeListener( ChangeListener l) {} public void removeChangeListener( ChangeListener l) {} public boolean isValid() { return isValid; } public Component getComponent() { return panel; } } --- NEW FILE: ConnectorWizardPanel.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.wizards; import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.*; import javax.swing.event.*; import org.openide.*; import org.openide.util.*; import net.sourceforge.javaprofiler.jpi.*; import net.sourceforge.javaprofiler.jpi.connect.*; public class ConnectorWizardPanel implements WizardDescriptor.Panel, ActionListener { private final JPanel panel = new JPanel(); private final JComboBox typeCombo = new JComboBox( types); private final JComboBox connectorCombo = new JComboBox(); private final ConnectorManager cm = Bootstrap.connectorManager(); private final JTextArea descriptionArea = new JTextArea(); private Connector[] connectors; private boolean eraseArguments = false; private static final String[] types = new String[] { "Launching connectors", "Attaching connectors", "Listening connectors"}; public ConnectorWizardPanel() { panel.setName( "Connector"); panel.setLayout( new BoxLayout( panel, BoxLayout.Y_AXIS)); Dimension d = new Dimension( 400, 200); panel.setPreferredSize( d); JLabel label = new JLabel( "Select a type of connector"); panel.add( label); typeCombo.addActionListener( this); panel.add( typeCombo); panel.add( new JLabel( "Select a connector")); connectorCombo.addActionListener( this); panel.add( connectorCombo); descriptionArea.setRows( 3); descriptionArea.setBorder( BorderFactory.createLineBorder( Color.BLACK)); descriptionArea.setLineWrap( true); descriptionArea.setWrapStyleWord( true); panel.add( descriptionArea); loadConnectors( cm.connectors( Connector.LAUNCHING_CONNECTOR)); } public void actionPerformed( ActionEvent event) { if ( event.getSource() == connectorCombo) { descriptionArea.setText( connectors[ connectorCombo.getSelectedIndex()].description()); eraseArguments = true; return; } java.util.List conns; switch ( typeCombo.getSelectedIndex()) { case 0: conns = cm.connectors( Connector.LAUNCHING_CONNECTOR); break; case 1: conns = cm.connectors( Connector.ATTACHING_CONNECTOR); break; default: conns = cm.connectors( Connector.LISTENING_CONNECTOR); } connectorCombo.removeAllItems(); loadConnectors( conns); } private void loadConnectors( java.util.List conns) { connectors = new Connector[ conns.size()]; for ( int i = 0; i < connectors.length; ++i) { Connector connector = (Connector) conns.get( i); connectors[ i] = connector; connectorCombo.addItem( connector.label()); } connectorCombo.setSelectedIndex( 0); descriptionArea.setText( connectors[ 0].description()); eraseArguments = true; } public HelpCtx getHelp() { return new HelpCtx (ConnectorWizardPanel.class); } public void storeSettings( Object settings) { ((Map)settings).put( "connector", connectors[ connectorCombo.getSelectedIndex()]); if ( eraseArguments) ((Map)settings).remove( "arguments"); } public void readSettings( Object settings) { eraseArguments = false; } public void addChangeListener( ChangeListener l) {} public void removeChangeListener( ChangeListener l) {} public boolean isValid() { return true; } public Component getComponent() { return panel; } } |
From: Michal P. <mic...@us...> - 2002-09-12 14:39:21
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/wizards In directory usw-pr-cvs1:/tmp/cvs-serv25608/net/sourceforge/javaprofiler/module/wizards Added Files: ConnectorWizardArgumentPanel.java Log Message: Initial import. --- NEW FILE: ConnectorWizardArgumentPanel.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.wizards; import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.*; import javax.swing.event.*; import org.openide.*; import org.openide.util.*; import net.sourceforge.javaprofiler.jpi.*; import net.sourceforge.javaprofiler.jpi.connect.*; public class ConnectorWizardArgumentPanel implements WizardDescriptor.Panel { private final JPanel masterPanel = new JPanel(); private final JPanel panel = new JPanel(); private final JScrollPane pane = new JScrollPane( panel); private Connector connector; private Map arguments; public ConnectorWizardArgumentPanel () { masterPanel.setName( "Connector"); masterPanel.setPreferredSize( new Dimension( 400, 200)); masterPanel.setLayout( new BoxLayout( masterPanel, BoxLayout.Y_AXIS)); masterPanel.add( pane); pane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); panel.setLayout( new BoxLayout( panel, BoxLayout.Y_AXIS)); } private void reloadArguments() { panel.removeAll(); Iterator i = arguments.values().iterator(); while ( i.hasNext()) { Connector.Argument a = (Connector.Argument) i.next(); panel.add( new JLabel( a.label() + ( a.isMandatory() ? " (mandatory)" : ""))); JTextField field = new JTextField( a.value()); field.setToolTipText( a.description()); field.addActionListener( new ArgumentChangeListener( a)); panel.add( field); } } private static class ArgumentChangeListener implements ActionListener { private final Connector.Argument argument; public ArgumentChangeListener( Connector.Argument argument) { this.argument = argument; } public void actionPerformed( ActionEvent e) { argument.setValue( ((JTextField)e.getSource()).getText()); } } public HelpCtx getHelp() { return new HelpCtx (ConnectorWizardArgumentPanel.class); } public void storeSettings( Object settings) { ((Map)settings).put( "connector", connector); ((Map)settings).put( "arguments", arguments); } public void readSettings( Object settings) { connector = (Connector)((Map)settings).get( "connector"); arguments = (Map)((Map)settings).get( "arguments"); if ( arguments == null) arguments = connector.defaultArguments(); reloadArguments(); } public void addChangeListener( ChangeListener l) {} public void removeChangeListener( ChangeListener l) {} public boolean isValid() { return true; } public Component getComponent() { return masterPanel; } } |
From: Michal P. <mic...@us...> - 2002-09-12 14:28:17
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data In directory usw-pr-cvs1:/tmp/cvs-serv19128/net/sourceforge/javaprofiler/jpiimpl/data Modified Files: SnapshotImpl.java Log Message: VMDisconnectedException removed. Index: SnapshotImpl.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/SnapshotImpl.java,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -r1.36 -r1.37 *** SnapshotImpl.java 9 Sep 2002 16:28:54 -0000 1.36 --- SnapshotImpl.java 12 Sep 2002 14:28:14 -0000 1.37 *************** *** 547,551 **** } catch ( COMMUN_Exception e ) { ! throw new VMDisconnectedException(e.getMessage()); } --- 547,551 ---- } catch ( COMMUN_Exception e ) { ! throw new RuntimeException(e.getMessage()); } *************** *** 1596,1599 **** --- 1596,1603 ---- /* * $Log$ + * Revision 1.37 2002/09/12 14:28:14 michalpise + * + * VMDisconnectedException removed. + * * Revision 1.36 2002/09/09 16:28:54 vachis * fixies in javadoc |
From: Michal P. <mic...@us...> - 2002-09-12 14:22:46
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect In directory usw-pr-cvs1:/tmp/cvs-serv16830/net/sourceforge/javaprofiler/jpiimpl/connect Modified Files: ShmemAttachConnector.java ShmemLaunchConnector.java ShmemListenConnector.java SocketAttachConnector.java SocketLaunchConnector.java SocketListenConnector.java Log Message: Label from resource bundle. Index: ShmemAttachConnector.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect/ShmemAttachConnector.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** ShmemAttachConnector.java 10 Sep 2002 19:27:34 -0000 1.8 --- ShmemAttachConnector.java 12 Sep 2002 14:22:42 -0000 1.9 *************** *** 124,138 **** return "net.sourceforge.javaprofiler.jpi.ShmemAttachConnector"; } ! ! /** Returns a short human-readable name of this connector. It should not be more than ! * one line long. */ public String label() { ! //PENDING ! return this.description(); } } /* * $Log$ * Revision 1.8 2002/09/10 19:27:34 vachis * label implemeted through description --- 124,141 ---- return "net.sourceforge.javaprofiler.jpi.ShmemAttachConnector"; } ! ! /** ! * Returns a short human-readable short name of this connector. */ public String label() { ! return bundle.getString("ShmemAttachLabel"); } } /* * $Log$ + * Revision 1.9 2002/09/12 14:22:42 michalpise + * + * Label from resource bundle. + * * Revision 1.8 2002/09/10 19:27:34 vachis * label implemeted through description *************** *** 159,161 **** * First version of Connectors. * ! */ \ No newline at end of file --- 162,164 ---- * First version of Connectors. * ! */ Index: ShmemLaunchConnector.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect/ShmemLaunchConnector.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** ShmemLaunchConnector.java 10 Sep 2002 19:27:34 -0000 1.6 --- ShmemLaunchConnector.java 12 Sep 2002 14:22:42 -0000 1.7 *************** *** 179,193 **** } ! /** Returns a short human-readable name of this connector. It should not be more than ! * one line long. */ public String label() { ! //PENDING ! return this.description(); } ! } /* * $Log$ * Revision 1.6 2002/09/10 19:27:34 vachis * label implemeted through description --- 179,196 ---- } ! /** ! * Returns a short human-readable short name of this connector. */ public String label() { ! return bundle.getString("ShmemLaunchLabel"); } ! } /* * $Log$ + * Revision 1.7 2002/09/12 14:22:42 michalpise + * + * Label from resource bundle. + * * Revision 1.6 2002/09/10 19:27:34 vachis * label implemeted through description *************** *** 208,210 **** * First version of Connectors. * ! */ \ No newline at end of file --- 211,213 ---- * First version of Connectors. * ! */ Index: ShmemListenConnector.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect/ShmemListenConnector.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** ShmemListenConnector.java 10 Sep 2002 19:27:35 -0000 1.5 --- ShmemListenConnector.java 12 Sep 2002 14:22:42 -0000 1.6 *************** *** 121,136 **** return "net.sourceforge.javaprofiler.jpi.ShmemListenConnector"; } ! ! /** Returns a short human-readable name of this connector. It should not be more than ! * one line long. */ public String label() { ! //PENDING ! return this.description(); } ! } /* * $Log$ * Revision 1.5 2002/09/10 19:27:35 vachis * label implemeted through description --- 121,139 ---- return "net.sourceforge.javaprofiler.jpi.ShmemListenConnector"; } ! ! /** ! * Returns a short human-readable short name of this connector. */ public String label() { ! return bundle.getString("ShmemListenLabel"); } ! } /* * $Log$ + * Revision 1.6 2002/09/12 14:22:42 michalpise + * + * Label from resource bundle. + * * Revision 1.5 2002/09/10 19:27:35 vachis * label implemeted through description *************** *** 148,150 **** * First version of Connectors. * ! */ \ No newline at end of file --- 151,153 ---- * First version of Connectors. * ! */ Index: SocketAttachConnector.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect/SocketAttachConnector.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** SocketAttachConnector.java 10 Sep 2002 19:27:36 -0000 1.8 --- SocketAttachConnector.java 12 Sep 2002 14:22:42 -0000 1.9 *************** *** 2,7 **** * 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/ * --- 2,7 ---- * 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/ * *************** *** 65,75 **** IProf iprof=new IProf(new CommunSetupSocket(CommunSetupSocket.CLIENT_MODE, host, port)); try { ! iprof.run(); } catch (IProfException ipe) { throw new ConnectingException(bundle.getString("ERR_CONNECT")+ipe); ! } return new VirtualMachineImpl(iprof); } ! /** * Returns the transport mechanism used by this connector to establish --- 65,75 ---- IProf iprof=new IProf(new CommunSetupSocket(CommunSetupSocket.CLIENT_MODE, host, port)); try { ! iprof.run(); } catch (IProfException ipe) { throw new ConnectingException(bundle.getString("ERR_CONNECT")+ipe); ! } return new VirtualMachineImpl(iprof); } ! /** * Returns the transport mechanism used by this connector to establish *************** *** 81,85 **** return SocketTransport.getDefault(); } ! /** * Returns the arguments accepted by this Connector and their default values. --- 81,85 ---- return SocketTransport.getDefault(); } ! /** * Returns the arguments accepted by this Connector and their default values. *************** *** 99,108 **** 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; } ! /** * Returns a type of this connector. Three currently supported types are --- 99,108 ---- 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; } ! /** * Returns a type of this connector. Three currently supported types are *************** *** 114,118 **** return Connector.ATTACHING_CONNECTOR; } ! /** * Returns a human-readable description of this connector and its purpose. --- 114,118 ---- return Connector.ATTACHING_CONNECTOR; } ! /** * Returns a human-readable description of this connector and its purpose. *************** *** 123,127 **** return bundle.getString("SocketAttachDesc"); } ! /** * Returns a short identifier for the connector. Connector implementors --- 123,127 ---- return bundle.getString("SocketAttachDesc"); } ! /** * Returns a short identifier for the connector. Connector implementors *************** *** 136,150 **** return "net.sourceforge.javaprofiler.jpi.SocketAttachConnector"; } ! ! /** Returns a short human-readable name of this connector. It should not be more than ! * one line long. */ public String label() { ! //PENDING ! return this.description(); } } /* * $Log$ * Revision 1.8 2002/09/10 19:27:36 vachis * label implemeted through description --- 136,154 ---- return "net.sourceforge.javaprofiler.jpi.SocketAttachConnector"; } ! ! /** ! * Returns a short human-readable short name of this connector. */ public String label() { ! return bundle.getString("SocketAttachLabel"); } + } /* * $Log$ + * Revision 1.9 2002/09/12 14:22:42 michalpise + * + * Label from resource bundle. + * * Revision 1.8 2002/09/10 19:27:36 vachis * label implemeted through description *************** *** 171,173 **** * First version of Connectors. * ! */ \ No newline at end of file --- 175,177 ---- * First version of Connectors. * ! */ Index: SocketLaunchConnector.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect/SocketLaunchConnector.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** SocketLaunchConnector.java 10 Sep 2002 19:27:36 -0000 1.6 --- SocketLaunchConnector.java 12 Sep 2002 14:22:42 -0000 1.7 *************** *** 181,194 **** } ! /** Returns a short human-readable name of this connector. It should not be more than ! * one line long. */ public String label() { ! //PENDING ! return this.description(); } } /* * $Log$ * Revision 1.6 2002/09/10 19:27:36 vachis * label implemeted through description --- 181,197 ---- } ! /** ! * Returns a short human-readable short name of this connector. */ public String label() { ! return bundle.getString("SocketLaunchLabel"); } } /* * $Log$ + * Revision 1.7 2002/09/12 14:22:42 michalpise + * + * Label from resource bundle. + * * Revision 1.6 2002/09/10 19:27:36 vachis * label implemeted through description *************** *** 209,211 **** * First version of Connectors. * ! */ \ No newline at end of file --- 212,214 ---- * First version of Connectors. * ! */ Index: SocketListenConnector.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect/SocketListenConnector.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** SocketListenConnector.java 10 Sep 2002 19:27:36 -0000 1.6 --- SocketListenConnector.java 12 Sep 2002 14:22:42 -0000 1.7 *************** *** 125,138 **** } ! /** Returns a short human-readable name of this connector. It should not be more than ! * one line long. */ public String label() { ! //PENDING ! return this.description(); ! } } /* * $Log$ * Revision 1.6 2002/09/10 19:27:36 vachis * label implemeted through description --- 125,141 ---- } ! /** ! * Returns a short human-readable short name of this connector. */ public String label() { ! return bundle.getString("SocketListenLabel"); ! } } /* * $Log$ + * Revision 1.7 2002/09/12 14:22:42 michalpise + * + * Label from resource bundle. + * * Revision 1.6 2002/09/10 19:27:36 vachis * label implemeted through description *************** *** 153,155 **** * First version of Connectors. * ! */ \ No newline at end of file --- 156,158 ---- * First version of Connectors. * ! */ |
From: Michal P. <mic...@us...> - 2002-09-12 13:59:54
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl In directory usw-pr-cvs1:/tmp/cvs-serv8621/net/sourceforge/javaprofiler/jpiimpl Modified Files: bundle.properties Log Message: Resources added. Index: bundle.properties =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/bundle.properties,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** bundle.properties 26 Jul 2002 09:58:54 -0000 1.4 --- bundle.properties 12 Sep 2002 13:59:51 -0000 1.5 *************** *** 20,24 **** --- 20,26 ---- ## SocketLaunchDesc=Connector that launches target VM using command line and attaches to it through shared memory. + SocketLaunchLabel=Launching connector that uses TCP connection ShmemAttachDesc=Connector that attaches by shared memory to other VM. + ShmemAttachLabel=Attaching connector that uses shared memory ListenPort=Port number at which to listen for VM connection. OptionsDesc=Launched VM options. *************** *** 32,36 **** --- 34,40 ---- ListenAddress=Name of the shared memory area at which to listen for VM connection. ShmemLaunchDesc=Connector that launches target VM using command line and attaches to it through socket. + ShmemLaunchLabel=Launch connector that uses shared memory ShmemListenDesc=Connector that accepts shared memory connections initiated by other VMs. + ShmemListenLabel=Listen connector that uses shared memory ShmemTransport=Shared Memory Transport SocketTransport=Socket Transport *************** *** 46,50 **** --- 50,56 ---- Class=Class SocketListenDesc=Connector that accepts socket connections initiated by other VMs. + SocketListenLabel=Listening connector that uses TCP connection SocketAttachDesc=Connector that attaches by socket to other VM. + SocketAttachLabel=Attaching connector that uses TCP connection ERR_MIS_SHMEM=Wrong or missing shared memory area address. |
From: Michal P. <mic...@us...> - 2002-09-12 13:58:44
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl In directory usw-pr-cvs1:/tmp/cvs-serv8163/net/sourceforge/javaprofiler/jpiimpl Modified Files: VirtualMachineImpl.java Log Message: Minor fix. Index: VirtualMachineImpl.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/VirtualMachineImpl.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** VirtualMachineImpl.java 12 Sep 2002 13:52:43 -0000 1.17 --- VirtualMachineImpl.java 12 Sep 2002 13:58:41 -0000 1.18 *************** *** 190,193 **** --- 190,194 ---- //PENDING iprof.stop(); + fireVMDisconnected(); } *************** *** 310,313 **** --- 311,318 ---- /* * $Log$ + * Revision 1.18 2002/09/12 13:58:41 michalpise + * + * Minor fix. + * * Revision 1.17 2002/09/12 13:52:43 michalpise * |
From: Michal P. <mic...@us...> - 2002-09-12 13:52:47
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl In directory usw-pr-cvs1:/tmp/cvs-serv5942/net/sourceforge/javaprofiler/jpiimpl Modified Files: VirtualMachineImpl.java Log Message: Disconnection listener support. Index: VirtualMachineImpl.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/VirtualMachineImpl.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** VirtualMachineImpl.java 11 Sep 2002 19:07:00 -0000 1.16 --- VirtualMachineImpl.java 12 Sep 2002 13:52:43 -0000 1.17 *************** *** 2,7 **** * 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/ * --- 2,7 ---- * 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/ * *************** *** 38,44 **** private boolean isSuspendedVM; private Process process=null; ! private VirtualMachineImageRef realtime=null; ! /** * Creates new VirtualMachineImpl. --- 38,45 ---- private boolean isSuspendedVM; private Process process=null; ! private VirtualMachineImageRef realtime=null; ! private List dl = new LinkedList(); ! /** * Creates new VirtualMachineImpl. *************** *** 55,59 **** * @param iprof corresponding <code>IProf</code> object. * @param process corresponding <code>Process</code> object. ! */ public VirtualMachineImpl(IProf iprof, Process process) { this.iprof=iprof; --- 56,60 ---- * @param iprof corresponding <code>IProf</code> object. * @param process corresponding <code>Process</code> object. ! */ public VirtualMachineImpl(IProf iprof, Process process) { this.iprof=iprof; *************** *** 63,67 **** rt.getTimer().schedule(rt.getTimerTask(), 1000, 1000); } - /** * Enables/disables the garbage collection in the mirrored virtual machine. --- 64,67 ---- *************** *** 78,83 **** iprof.disableGC(); } ! } catch (COMMUN_Exception e) { ! throw new VMDisconnectedException(); } catch (UNAVAILABLE_Exception e) { //PENDING --- 78,83 ---- iprof.disableGC(); } ! } catch (COMMUN_Exception e) { ! fireVMDisconnected(); } catch (UNAVAILABLE_Exception e) { //PENDING *************** *** 146,154 **** iprof.exitVM(); } catch (COMMUN_Exception e) { ! throw new VMDisconnectedException(); } } ! /** * Returns size (in bytes) of allocated memory in the mirrored virtual * machine. --- 146,154 ---- iprof.exitVM(); } catch (COMMUN_Exception e) { ! fireVMDisconnected(); } } ! /* * Returns size (in bytes) of allocated memory in the mirrored virtual * machine. *************** *** 157,164 **** * machine. */ ! public long totalMemory() { //PENDING return 0; ! } /** --- 157,164 ---- * machine. */ ! /*public long totalMemory() { //PENDING return 0; ! }*/ /** *************** *** 170,174 **** iprof.suspendVM(); } catch (COMMUN_Exception e) { ! throw new VMDisconnectedException(); } catch (UNAVAILABLE_Exception e) { //PENDING --- 170,174 ---- iprof.suspendVM(); } catch (COMMUN_Exception e) { ! fireVMDisconnected(); } catch (UNAVAILABLE_Exception e) { //PENDING *************** *** 191,195 **** iprof.stop(); } ! /** * Resumes all threads in the virtual machine. --- 191,211 ---- iprof.stop(); } ! ! public void addDisconnectionListener( DisconnectionListener l) { ! dl.add( l); ! } ! ! public void removeDisconnectionListener( DisconnectionListener l) { ! dl.remove( l); ! } ! ! void fireVMDisconnected() { ! List dls = new LinkedList( dl); ! Iterator i = dls.iterator(); ! while ( i.hasNext()) { ! (( DisconnectionListener)i.next()).VMDisconnected(); ! } ! } ! /** * Resumes all threads in the virtual machine. *************** *** 200,204 **** iprof.resumeVM(); } catch (COMMUN_Exception e) { ! throw new VMDisconnectedException(); } catch (UNAVAILABLE_Exception e) { //PENDING --- 216,220 ---- iprof.resumeVM(); } catch (COMMUN_Exception e) { ! fireVMDisconnected(); } catch (UNAVAILABLE_Exception e) { //PENDING *************** *** 207,219 **** } ! /** * Returns size (in bytes) of free memory in the mirrored virtual machine. * * @return size (in bytes) of free memory in the mirrored virtual machine. */ ! public long freeMemory() { //PENDING return 0; ! } /** --- 223,235 ---- } ! /* * Returns size (in bytes) of free memory in the mirrored virtual machine. * * @return size (in bytes) of free memory in the mirrored virtual machine. */ ! /*public long freeMemory() { //PENDING return 0; ! }*/ /** *************** *** 224,228 **** iprof.runGC(); } catch (COMMUN_Exception e) { ! throw new VMDisconnectedException(); } catch (UNAVAILABLE_Exception e) { //PENDING --- 240,244 ---- iprof.runGC(); } catch (COMMUN_Exception e) { ! fireVMDisconnected(); } catch (UNAVAILABLE_Exception e) { //PENDING *************** *** 248,253 **** iprof.shutdown(); } catch (COMMUN_Exception e) { ! throw new VMDisconnectedException(); ! } } --- 264,269 ---- iprof.shutdown(); } catch (COMMUN_Exception e) { ! fireVMDisconnected(); ! } } *************** *** 268,275 **** return iprof.isShutdowned(); } catch (COMMUN_Exception e) { ! throw new VMDisconnectedException(); } } ! /**Returns realtime image of library. After that you can access information in library realtime * without creating snapshot. For one instace of VirtalMachineImpl it returns always the same refenrece. --- 284,292 ---- return iprof.isShutdowned(); } catch (COMMUN_Exception e) { ! fireVMDisconnected(); ! return true; } } ! /**Returns realtime image of library. After that you can access information in library realtime * without creating snapshot. For one instace of VirtalMachineImpl it returns always the same refenrece. *************** *** 289,307 **** } } - - /** Register a disconnection listener */ - public void addDisconnectionListener(DisconnectionListener l) { - //PENDING - } - - /** Unregister a disconnection listener */ - public void removeDisconnectionListener(DisconnectionListener l) { - //PENDING - } - } /* * $Log$ * Revision 1.16 2002/09/11 19:07:00 vachis * really horribele pacth --- 306,317 ---- } } } /* * $Log$ + * Revision 1.17 2002/09/12 13:52:43 michalpise + * + * Disconnection listener support. + * * Revision 1.16 2002/09/11 19:07:00 vachis * really horribele pacth *************** *** 355,357 **** * First version of VirtualMachineImpl. * ! */ \ No newline at end of file --- 365,367 ---- * First version of VirtualMachineImpl. * ! */ |
Update of /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi In directory usw-pr-cvs1:/tmp/cvs-serv19177/net/sourceforge/javaprofiler/jpi Modified Files: AllocThreadMethodRef.java AllocThreadTraceRef.java AllocTraceRef.java AllocTypeMethodRef.java AllocTypeThreadMethodRef.java AllocTypeThreadRef.java AllocTypeThreadTraceRef.java AllocTypeTraceRef.java CPUThreadMethodRef.java CPUThreadTraceRef.java CPUTraceRef.java CallTreeRef.java ChildrenEvent.java ChildrenListener.java ClassRef.java Constants.java DisconnectionListener.java FieldRef.java FrameRef.java GCRunRef.java HasChildren.java HasLocationRoot.java HasThreadRoot.java HasTypeRoot.java LocationRef.java MethodRef.java MonThreadMethodRef.java MonThreadTraceRef.java MonTraceRef.java ThreadGroupRef.java ThreadRef.java TraceRef.java TypeRef.java VirtualMachineImageRef.java VirtualMachineRef.java Log Message: Javadoc update. Index: AllocThreadMethodRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/AllocThreadMethodRef.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** AllocThreadMethodRef.java 27 Jul 2002 22:25:17 -0000 1.6 --- AllocThreadMethodRef.java 12 Sep 2002 13:00:12 -0000 1.7 *************** *** 23,36 **** import java.util.List; ! public interface AllocThreadMethodRef extends AllocStat, HasThreadRoot, HasLocationRoot, HasChildren { CPUThreadMethodRef getSiblingCPU(); MonThreadMethodRef getSiblingMon(); ! List getAllocThreadTraces(); List getAllocTypeThreadMethods(); AllocTypeThreadMethodRef getAllocTypeThreadMethod( TypeRef peer); ! ThreadRef getThread(); MethodRef getMethod(); } --- 23,75 ---- import java.util.List; ! /** ! * This interface represents memory related information about instances ! * of any type allocated during execution of specific method and specific ! * thread. ! */ ! ! public interface AllocThreadMethodRef extends AllocStat, HasThreadRoot, HasLocationRoot, HasChildren { + /** + * Returns object representing CPU related information about + * the same method and thread this object belongs to. + */ CPUThreadMethodRef getSiblingCPU(); + + /** + * Returns object representing monitor related information about + * the same method and thread this object belongs to. + */ MonThreadMethodRef getSiblingMon(); ! ! /** ! * Returns the list representing memory related information about ! * instances of different types allocated during execution of the ! * trace and thread this object belongs to. ! */ List getAllocThreadTraces(); + + /** + * Returns the list representing memory related information about + * instances of different types allocated during execution of the + * same method and thread this object belongs to. + */ List getAllocTypeThreadMethods(); + + /** + * Returns the list representing memory related information about + * instances of the specified type allocated during execution of the + * same method and thread this object belongs to. + */ AllocTypeThreadMethodRef getAllocTypeThreadMethod( TypeRef peer); ! ! /** ! * Returns the thread object this object belongs to. ! */ ThreadRef getThread(); + + /** + * Returns the method object this object belongs to. + */ MethodRef getMethod(); } *************** *** 38,41 **** --- 77,84 ---- /* * $Log$ + * Revision 1.7 2002/09/12 13:00:12 michalpise + * + * Javadoc update. + * * Revision 1.6 2002/07/27 22:25:17 vachis * Has... interfaces renamed (word Root aded) *************** *** 48,50 **** * License added. * ! */ \ No newline at end of file --- 91,93 ---- * License added. * ! */ Index: AllocThreadTraceRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/AllocThreadTraceRef.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** AllocThreadTraceRef.java 27 Jul 2002 22:25:17 -0000 1.6 --- AllocThreadTraceRef.java 12 Sep 2002 13:00:12 -0000 1.7 *************** *** 23,43 **** import java.util.List; ! public interface AllocThreadTraceRef extends AllocStat, HasThreadRoot, HasLocationRoot { CPUThreadTraceRef getSiblingCPU(); MonThreadTraceRef getSiblingMon(); ! List getAllocTypeThreadTraces(); - AllocTypeThreadTraceRef getAllocTypeThreadTrace( TypeRef peer); AllocThreadMethodRef getAllocThreadMethod(); ThreadRef getThread(); AllocTraceRef getAllocTrace(); - - void addChildrenListener( int type, ChildrenListener listener); - void removeChildrenListener( int type, ChildrenListener listener); } /* * $Log$ * Revision 1.6 2002/07/27 22:25:17 vachis * Has... interfaces renamed (word Root aded) --- 23,82 ---- import java.util.List; ! /** ! * This interface represents memory related information about instances ! * of any type allocated during execution of specific trace and specific ! * thread. ! */ ! ! public interface AllocThreadTraceRef extends AllocStat, HasChildren, HasThreadRoot, HasLocationRoot { ! ! /** ! * Returns object representing CPU related information about ! * the same trace and thread this object belongs to. ! */ CPUThreadTraceRef getSiblingCPU(); + + /** + * Returns object representing monitor related information about + * the same trace and thread this object belongs to. + */ MonThreadTraceRef getSiblingMon(); ! ! /** ! * Returns the list representing memory related information about ! * instances of different types allocated during execution of the ! * same method and thread this object belongs to. ! */ List getAllocTypeThreadTraces(); + /** + * Returns the list representing memory related information about + * instances of the specified type allocated during execution of the + * same method and thread this object belongs to. + */ + AllocTypeThreadTraceRef getAllocTypeThreadTrace( TypeRef peer); + + /** + * Returns the parent <code>AllocThreadMethod</code>. + */ AllocThreadMethodRef getAllocThreadMethod(); + + /** + * Returns the thread this object belongs to. + */ ThreadRef getThread(); + + /** + * Returns the trace this object belongs to. + */ AllocTraceRef getAllocTrace(); } /* * $Log$ + * Revision 1.7 2002/09/12 13:00:12 michalpise + * + * Javadoc update. + * * Revision 1.6 2002/07/27 22:25:17 vachis * Has... interfaces renamed (word Root aded) *************** *** 50,52 **** * License added. * ! */ \ No newline at end of file --- 89,91 ---- * License added. * ! */ Index: AllocTraceRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/AllocTraceRef.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** AllocTraceRef.java 27 Jul 2002 22:25:17 -0000 1.6 --- AllocTraceRef.java 12 Sep 2002 13:00:12 -0000 1.7 *************** *** 23,34 **** import java.util.List; public interface AllocTraceRef extends AllocStat, TraceRef, HasLocationRoot, HasChildren { CPUTraceRef getSiblingCPU(); - MonTraceRef getSiblingMon(); List getAllocThreadTraces(); AllocThreadTraceRef getAllocThreadTrace( ThreadRef peer); List getAllocTypeTraces(); AllocTypeTraceRef getAllocTypeTrace( TypeRef peer); } --- 23,68 ---- import java.util.List; + /** + * This interface represents memory related information about instances + * allocated during execution of specific trace. + */ + public interface AllocTraceRef extends AllocStat, TraceRef, HasLocationRoot, HasChildren { + /** + * Returns object representing CPU related information about + * the same trace this object belongs to. + */ CPUTraceRef getSiblingCPU(); + /** + * Returns object representing monitor related information about + * the same trace this object belongs to. + */ + MonTraceRef getSiblingMon(); + + /** + * Returns the list representing memory related information about + * instances allocated during execution of the different threads and + * the same trace this object belongs to. + */ List getAllocThreadTraces(); + /** + * Returns the list representing memory related information about + * instances allocated during execution of the specified thread and + * the same trace this object belongs to. + */ AllocThreadTraceRef getAllocThreadTrace( ThreadRef peer); + /** + * Returns the list representing memory related information about + * instances of different types allocated during execution of + * the same trace this object belongs to. + */ List getAllocTypeTraces(); + /** + * Returns the list representing memory related information about + * instances of specified types allocated during execution of + * the same trace this object belongs to. + */ AllocTypeTraceRef getAllocTypeTrace( TypeRef peer); } *************** *** 36,39 **** --- 70,77 ---- /* * $Log$ + * Revision 1.7 2002/09/12 13:00:12 michalpise + * + * Javadoc update. + * * Revision 1.6 2002/07/27 22:25:17 vachis * Has... interfaces renamed (word Root aded) *************** *** 46,48 **** * License added. * ! */ \ No newline at end of file --- 84,86 ---- * License added. * ! */ Index: AllocTypeMethodRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/AllocTypeMethodRef.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** AllocTypeMethodRef.java 27 Jul 2002 22:25:17 -0000 1.6 --- AllocTypeMethodRef.java 12 Sep 2002 13:00:12 -0000 1.7 *************** *** 23,34 **** import java.util.List; public interface AllocTypeMethodRef extends AllocStat, HasTypeRoot, HasLocationRoot, HasChildren { ! List getAllocTypeTraces(); List getAllocTypeThreadMethods(); AllocTypeThreadMethodRef getAllocTypeThreadMethod( ThreadRef peer); TypeRef getType(); MethodRef getMethod(); } --- 23,62 ---- import java.util.List; + /** + * This interface represents memory related information about instances + * of specific type allocated during execution of specific method. + */ + public interface AllocTypeMethodRef extends AllocStat, HasTypeRoot, HasLocationRoot, HasChildren { ! /** ! * Returns the list representing memory related information about ! * instances of the same type allocated during execution of the same ! * thread this object belongs to. ! */ List getAllocTypeTraces(); + + /** + * Returns the list representing memory related information about + * instances of the same type allocated during execution of the + * same method this object belongs to. + */ List getAllocTypeThreadMethods(); + + /** + * Returns the list representing memory related information about + * instances of the same type allocated during execution of the + * same method this object belongs to and the specified thread. + */ AllocTypeThreadMethodRef getAllocTypeThreadMethod( ThreadRef peer); + /** + * Returns the type object this object belongs to. + */ TypeRef getType(); + + /** + * Returns the method object this object belongs to. + */ MethodRef getMethod(); } *************** *** 36,39 **** --- 64,71 ---- /* * $Log$ + * Revision 1.7 2002/09/12 13:00:12 michalpise + * + * Javadoc update. + * * Revision 1.6 2002/07/27 22:25:17 vachis * Has... interfaces renamed (word Root aded) *************** *** 46,48 **** * License added. * ! */ \ No newline at end of file --- 78,80 ---- * License added. * ! */ Index: AllocTypeThreadMethodRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/AllocTypeThreadMethodRef.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** AllocTypeThreadMethodRef.java 27 Jul 2002 22:25:17 -0000 1.6 --- AllocTypeThreadMethodRef.java 12 Sep 2002 13:00:12 -0000 1.7 *************** *** 23,34 **** import java.util.List; ! public interface AllocTypeThreadMethodRef extends AllocStat, ! HasTypeRoot, HasThreadRoot, HasLocationRoot, HasChildren { ! List getAllocTypeThreadTraces(); ! AllocTypeMethodRef getAllocTypeMethod(); AllocThreadMethodRef getAllocThreadMethod(); AllocTypeThreadRef getAllocTypeThread(); } --- 23,52 ---- import java.util.List; ! /** ! * This interface represents memory related information about instances ! * of specific type allocated during execution of specific method and specific ! * thread. ! */ ! public interface AllocTypeThreadMethodRef extends AllocStat, ! HasTypeRoot, HasThreadRoot, HasLocationRoot, HasChildren { ! /** ! * Returns the list representing memory related information about ! * instances of specific type allocated during execution of the ! * related trace and thread this object belongs to. ! */ List getAllocTypeThreadTraces(); ! ! /** ! * Returns the typemethod object this object belongs to. ! */ AllocTypeMethodRef getAllocTypeMethod(); + /** + * Returns the threadmethod object this object belongs to. + */ AllocThreadMethodRef getAllocThreadMethod(); + /** + * Returns the typethread object this object belongs to. + */ AllocTypeThreadRef getAllocTypeThread(); } *************** *** 36,39 **** --- 54,61 ---- /* * $Log$ + * Revision 1.7 2002/09/12 13:00:12 michalpise + * + * Javadoc update. + * * Revision 1.6 2002/07/27 22:25:17 vachis * Has... interfaces renamed (word Root aded) *************** *** 46,48 **** * License added. * ! */ \ No newline at end of file --- 68,70 ---- * License added. * ! */ Index: AllocTypeThreadRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/AllocTypeThreadRef.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** AllocTypeThreadRef.java 27 Jul 2002 22:25:17 -0000 1.6 --- AllocTypeThreadRef.java 12 Sep 2002 13:00:12 -0000 1.7 *************** *** 22,35 **** import java.util.List; ! ! public interface AllocTypeThreadRef extends AllocStat, HasTypeRoot, HasThreadRoot, HasChildren { ! List getAllocTypeThreadMethods(); AllocTypeThreadMethodRef getAllocTypeThreadMethod( MethodRef peer); List getAllocTypeThreadTraces(); AllocTypeThreadTraceRef getAllocTypeThreadTrace( AllocTraceRef peer); ! TypeRef getType(); ThreadRef getThread(); } --- 22,68 ---- import java.util.List; ! /** ! * This interface represents memory related information about instances ! * of specific type allocated during execution of specific thread. ! */ ! public interface AllocTypeThreadRef extends AllocStat, HasTypeRoot, HasThreadRoot, HasChildren { ! ! /** ! * Returns the list representing memory related information about ! * instances of specific type allocated during execution of the ! * different methods and thread this object belongs to. ! */ List getAllocTypeThreadMethods(); + + /** + * Returns the list representing memory related information about + * instances of specific type allocated during execution of the + * specified method and thread this object belongs to. + */ AllocTypeThreadMethodRef getAllocTypeThreadMethod( MethodRef peer); + + /** + * Returns the list representing memory related information about + * instances of specific type allocated during execution of the + * different traces and thread this object belongs to. + */ List getAllocTypeThreadTraces(); + + /** + * Returns the list representing memory related information about + * instances of specific type allocated during execution of the + * specified trace and thread this object belongs to. + */ AllocTypeThreadTraceRef getAllocTypeThreadTrace( AllocTraceRef peer); ! ! /** ! * Returns the type object this object belongs to. ! */ TypeRef getType(); + + /** + * Returns the thread object this object belongs to. + */ ThreadRef getThread(); } *************** *** 37,40 **** --- 70,77 ---- /* * $Log$ + * Revision 1.7 2002/09/12 13:00:12 michalpise + * + * Javadoc update. + * * Revision 1.6 2002/07/27 22:25:17 vachis * Has... interfaces renamed (word Root aded) *************** *** 47,49 **** * License added. * ! */ \ No newline at end of file --- 84,86 ---- * License added. * ! */ Index: AllocTypeThreadTraceRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/AllocTypeThreadTraceRef.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** AllocTypeThreadTraceRef.java 27 Jul 2002 22:25:17 -0000 1.5 --- AllocTypeThreadTraceRef.java 12 Sep 2002 13:00:12 -0000 1.6 *************** *** 23,32 **** import java.util.List; ! public interface AllocTypeThreadTraceRef extends AllocStat, HasTypeRoot, HasThreadRoot, HasLocationRoot { ! AllocTypeThreadMethodRef getAllocTypeThreadMethod(); AllocTypeTraceRef getAllocTypeTrace(); AllocThreadTraceRef getAllocThreadTrace(); AllocTypeThreadRef getAllocTypeThread(); } --- 23,54 ---- import java.util.List; ! /** ! * This interface represents memory related information about instances ! * of specific type allocated during execution of specific method and specific ! * thread. ! */ ! public interface AllocTypeThreadTraceRef extends AllocStat, HasTypeRoot, HasThreadRoot, HasLocationRoot { ! ! /** ! * Returns the list representing memory related information about ! * instances of specific type allocated during execution of the ! * related method and thread this object belongs to. ! */ AllocTypeThreadMethodRef getAllocTypeThreadMethod(); + + /** + * Returns the typetrace object this object belongs to. + */ AllocTypeTraceRef getAllocTypeTrace(); + + /** + * Returns the threadtrace object this object belongs to. + */ AllocThreadTraceRef getAllocThreadTrace(); + + /** + * Returns the typethread object this object belongs to. + */ AllocTypeThreadRef getAllocTypeThread(); } *************** *** 34,37 **** --- 56,63 ---- /* * $Log$ + * Revision 1.6 2002/09/12 13:00:12 michalpise + * + * Javadoc update. + * * Revision 1.5 2002/07/27 22:25:17 vachis * Has... interfaces renamed (word Root aded) *************** *** 44,46 **** * License added. * ! */ \ No newline at end of file --- 70,72 ---- * License added. * ! */ Index: AllocTypeTraceRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/AllocTypeTraceRef.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** AllocTypeTraceRef.java 27 Jul 2002 22:25:17 -0000 1.6 --- AllocTypeTraceRef.java 12 Sep 2002 13:00:12 -0000 1.7 *************** *** 23,34 **** import java.util.List; ! public interface AllocTypeTraceRef extends AllocStat, HasTypeRoot, HasLocationRoot, HasChildren { ! List getAllocTypeThreadTraces(); - AllocTypeThreadTraceRef getAllocTypeThreadTrace( ThreadRef peer); AllocTypeMethodRef getAllocTypeMethod(); TypeRef getType(); AllocTraceRef getAllocTrace(); } --- 23,59 ---- import java.util.List; ! /** ! * This interface represents memory related information about instances ! * of any specific type allocated during execution of specific trace. ! */ ! ! public interface AllocTypeTraceRef extends AllocStat, HasTypeRoot, HasLocationRoot, HasChildren { ! /** ! * Returns the list representing memory related information about ! * instances of the same type allocated during execution of the ! * same method this object belongs to. ! */ List getAllocTypeThreadTraces(); + /** + * Returns the object representing memory related information about + * instances of the same type allocated during execution of the + * same method this object belongs to and the specified thread. + */ + AllocTypeThreadTraceRef getAllocTypeThreadTrace( ThreadRef peer); + + /** + * Returns the related typemethod object. + */ AllocTypeMethodRef getAllocTypeMethod(); + + /** + * Returns the type object this object belongs to. + */ TypeRef getType(); + /** + * Returns the type object this object belongs to. + */ AllocTraceRef getAllocTrace(); } *************** *** 36,39 **** --- 61,68 ---- /* * $Log$ + * Revision 1.7 2002/09/12 13:00:12 michalpise + * + * Javadoc update. + * * Revision 1.6 2002/07/27 22:25:17 vachis * Has... interfaces renamed (word Root aded) *************** *** 46,48 **** * License added. * ! */ \ No newline at end of file --- 75,77 ---- * License added. * ! */ Index: CPUThreadMethodRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/CPUThreadMethodRef.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** CPUThreadMethodRef.java 27 Jul 2002 22:25:17 -0000 1.6 --- CPUThreadMethodRef.java 12 Sep 2002 13:00:12 -0000 1.7 *************** *** 23,34 **** import java.util.List; ! public interface CPUThreadMethodRef extends CPUStat, HasThreadRoot, HasLocationRoot, HasChildren { AllocThreadMethodRef getSiblingAlloc(); MonThreadMethodRef getSiblingMon(); ! List getCPUThreadTraces(); ! ThreadRef getThread(); MethodRef getMethod(); } --- 23,57 ---- import java.util.List; ! /** ! * <code>CPUThreadMethodRef</code> contains CPU related information ! * about execution of some method in some thread. ! */ ! public interface CPUThreadMethodRef extends CPUStat, HasThreadRoot, HasLocationRoot, HasChildren { + /** + * Returns the object that contains memory related information + * about the same method and thread this object belongs to. + */ AllocThreadMethodRef getSiblingAlloc(); + + /** + * Returns the object that contains monitor related information + * about the same method and thread this object belongs to. + */ MonThreadMethodRef getSiblingMon(); ! ! /** ! * Returns the object that contains CPU related information ! * about related threadtraces. ! */ List getCPUThreadTraces(); ! ! /** ! * Returns the thread this object belongs to. ! */ ThreadRef getThread(); + /** + * Returns the method this object belongs to. + */ MethodRef getMethod(); } *************** *** 36,39 **** --- 59,66 ---- /* * $Log$ + * Revision 1.7 2002/09/12 13:00:12 michalpise + * + * Javadoc update. + * * Revision 1.6 2002/07/27 22:25:17 vachis * Has... interfaces renamed (word Root aded) *************** *** 46,48 **** * License added. * ! */ \ No newline at end of file --- 73,75 ---- * License added. * ! */ Index: CPUThreadTraceRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/CPUThreadTraceRef.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** CPUThreadTraceRef.java 27 Jul 2002 22:25:17 -0000 1.5 --- CPUThreadTraceRef.java 12 Sep 2002 13:00:12 -0000 1.6 *************** *** 23,32 **** --- 23,58 ---- import java.util.List; + /** + * <code>CPUThreadTraceRef</code> contains CPU related information + * about execution of some trace in some thread. + */ public interface CPUThreadTraceRef extends CPUStat, HasThreadRoot, HasLocationRoot { + + /** + * Returns the object that contains memory related information + * about the same trace and thread this object belongs to. + */ AllocThreadTraceRef getSiblingAlloc(); + + /** + * Returns the object that contains monitor related information + * about the same method and thread this object belongs to. + */ MonThreadTraceRef getSiblingMon(); + /** + * Returns the object that contains CPU related information + * about related threadtrace. + */ CPUThreadMethodRef getCPUThreadMethod(); + + /** + * Returns the thread this object belongs to. + */ ThreadRef getThread(); + + /** + * Returns the method this object belongs to. + */ CPUTraceRef getCPUTrace(); } *************** *** 34,37 **** --- 60,67 ---- /* * $Log$ + * Revision 1.6 2002/09/12 13:00:12 michalpise + * + * Javadoc update. + * * Revision 1.5 2002/07/27 22:25:17 vachis * Has... interfaces renamed (word Root aded) *************** *** 44,46 **** * License added. * ! */ \ No newline at end of file --- 74,76 ---- * License added. * ! */ Index: CPUTraceRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/CPUTraceRef.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** CPUTraceRef.java 27 Jul 2002 22:25:17 -0000 1.6 --- CPUTraceRef.java 12 Sep 2002 13:00:12 -0000 1.7 *************** *** 23,32 **** import java.util.List; public interface CPUTraceRef extends CPUStat, TraceRef, HasLocationRoot, HasChildren { AllocTraceRef getSiblingAlloc(); - MonTraceRef getSiblingMon(); List getCPUThreadTraces(); CPUThreadTraceRef getCPUThreadTrace( ThreadRef peer); } --- 23,53 ---- import java.util.List; + /** + * <code>CPUTrace</code> contains CPU related information about one trace. + */ public interface CPUTraceRef extends CPUStat, TraceRef, HasLocationRoot, HasChildren { + /** + * Returns the object representing memory related information + * about the same trace as this object. + */ AllocTraceRef getSiblingAlloc(); + /** + * Returns the object representing monitor related information + * about the same trace as this object. + */ + MonTraceRef getSiblingMon(); + + /** + * Returns the list of objects containing CPU related information + * threadtraces. + */ List getCPUThreadTraces(); + + /** + * Returns the threadtrace that belongs to the spefied thread and the same + * trace this object belongs to. + */ CPUThreadTraceRef getCPUThreadTrace( ThreadRef peer); } *************** *** 34,37 **** --- 55,62 ---- /* * $Log$ + * Revision 1.7 2002/09/12 13:00:12 michalpise + * + * Javadoc update. + * * Revision 1.6 2002/07/27 22:25:17 vachis * Has... interfaces renamed (word Root aded) *************** *** 44,46 **** * License added. * ! */ \ No newline at end of file --- 69,71 ---- * License added. * ! */ Index: CallTreeRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/CallTreeRef.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** CallTreeRef.java 31 Jul 2002 20:37:39 -0000 1.7 --- CallTreeRef.java 12 Sep 2002 13:00:12 -0000 1.8 *************** *** 23,41 **** import java.util.List; ! public interface CallTreeRef { FrameRef getFrame(); long getCPUHitsCount(); long getCPUPureTime(); long getCPUCumulativeTime(); CallTreeRef getParent(); ! List getChildren(); - - void addChildrenListener( int type, ChildrenListener listener); - void removeChildrenListener( int type, ChildrenListener listener); } /* * $Log$ * Revision 1.7 2002/07/31 20:37:39 petrul * fixed broken commentary --- 23,68 ---- import java.util.List; ! /** ! * This interface represents one node in calltree. ! */ ! public interface CallTreeRef extends HasChildren { ! ! /** ! * Returns the frame this node belongs to. ! */ FrameRef getFrame(); + + /** + * Returns the number of CPU hits. + */ long getCPUHitsCount(); + + /** + * Returns the pure time spent in related frame. + */ long getCPUPureTime(); + /** + * Returns the cumulative (eg. with frames called from this frame) time + * spent in related frame. + */ long getCPUCumulativeTime(); + /** + * Returns the parent node. + */ CallTreeRef getParent(); ! ! /** ! * Returns the list of child nodes. You can assume that the list is made ! * of <code>CallTreeRef</code> instances. ! */ List getChildren(); } /* * $Log$ + * Revision 1.8 2002/09/12 13:00:12 michalpise + * + * Javadoc update. + * * Revision 1.7 2002/07/31 20:37:39 petrul * fixed broken commentary *************** *** 51,53 **** * License added. * ! */ \ No newline at end of file --- 78,80 ---- * License added. * ! */ Index: ChildrenEvent.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/ChildrenEvent.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** ChildrenEvent.java 10 Sep 2002 11:04:01 -0000 1.4 --- ChildrenEvent.java 12 Sep 2002 13:00:12 -0000 1.5 *************** *** 21,27 **** --- 21,40 ---- package net.sourceforge.javaprofiler.jpi; + /** + * Event object contaioning information about children changes. + */ public class ChildrenEvent extends java.util.EventObject { + /** + * Constant indicating that some children were added. + */ public static final int CHILDREN_ADDED = 1; + /** + * Constant indicating that the properties of some children were changed. + */ public static final int CHILDREN_CHANGED = 2; + /** + * Constant indicating that some children were added and properties + * of some other children were changed. + */ public static final int CHILDREN_ADDED_AND_CHANGED = 3; *************** *** 30,33 **** --- 43,49 ---- private final int[] deltaIndices; + /** + * Creates new children event. + */ public ChildrenEvent( Object source, int type, Object[] delta, int[] deltaIndices) { super( source); *************** *** 36,42 **** this.deltaIndices = deltaIndices; } ! public int getType() { return type; } public Object[] getDelta() { return delta; } public int[] getDeltaIndices() { return deltaIndices; } } --- 52,69 ---- this.deltaIndices = deltaIndices; } ! ! /** ! * Returns the type of the event. ! */ public int getType() { return type; } + + /** + * Returns the array of objects that were changed or added. + */ public Object[] getDelta() { return delta; } + + /** + * Returns the array of indices of objects that were changed or added. + */ public int[] getDeltaIndices() { return deltaIndices; } } *************** *** 44,47 **** --- 71,78 ---- /* * $Log$ + * Revision 1.5 2002/09/12 13:00:12 michalpise + * + * Javadoc update. + * * Revision 1.4 2002/09/10 11:04:01 michalpise * Index: ChildrenListener.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/ChildrenListener.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** ChildrenListener.java 10 Jul 2002 14:24:16 -0000 1.4 --- ChildrenListener.java 12 Sep 2002 13:00:12 -0000 1.5 *************** *** 21,26 **** --- 21,35 ---- package net.sourceforge.javaprofiler.jpi; + /** + * Listener interface for children events. + */ public interface ChildrenListener extends java.util.EventListener { + /** + * Indicates that some children were added. + */ void childrenAdded( ChildrenEvent event); + /** + * Indicates that some children were changed. + */ void childrenChanged( ChildrenEvent event); } *************** *** 28,31 **** --- 37,44 ---- /* * $Log$ + * Revision 1.5 2002/09/12 13:00:12 michalpise + * + * Javadoc update. + * * Revision 1.4 2002/07/10 14:24:16 petrul * listeners now extend java.util.EventListener *************** *** 34,36 **** * License added. * ! */ \ No newline at end of file --- 47,49 ---- * License added. * ! */ Index: ClassRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/ClassRef.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** ClassRef.java 2 Jul 2002 20:17:14 -0000 1.3 --- ClassRef.java 12 Sep 2002 13:00:13 -0000 1.4 *************** *** 23,30 **** --- 23,48 ---- import java.util.List; + /** + * This interface represents information about one {@link java.lang.Class} object. + * It is immutable so it has no listeners. + */ public interface ClassRef { + /** + * Returns the name of the class. + */ String getName(); + /** + * Returns the name of the file the class was defined in. + */ String getSourceFileName(); + /** + * Returns the immutable list of fields defined in this class. You can assume + * the list is made of {@link FieldRef} instances. + */ List getFields(); + /** + * Returns the immutable list of methods defined in this class. You can assume + * the list is made of {@link MethodRef} instances. + */ List getMethods(); } *************** *** 32,37 **** /* * $Log$ * Revision 1.3 2002/07/02 20:17:14 stolis * License added. * ! */ \ No newline at end of file --- 50,59 ---- /* * $Log$ + * Revision 1.4 2002/09/12 13:00:13 michalpise + * + * Javadoc update. + * * Revision 1.3 2002/07/02 20:17:14 stolis * License added. * ! */ Index: Constants.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/Constants.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** Constants.java 15 Jul 2002 21:40:27 -0000 1.2 --- Constants.java 12 Sep 2002 13:00:13 -0000 1.3 *************** *** 22,26 **** /** ! * Constants used in JPI * @author Pavel Vacha */ --- 22,26 ---- /** ! * Constants used in JPI. The meaning of every field is quite obvious. * @author Pavel Vacha */ Index: DisconnectionListener.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/DisconnectionListener.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** DisconnectionListener.java 10 Sep 2002 12:06:54 -0000 1.1 --- DisconnectionListener.java 12 Sep 2002 13:00:13 -0000 1.2 *************** *** 21,24 **** --- 21,28 ---- package net.sourceforge.javaprofiler.jpi; + /** + * A listener interface for disconnection events. Please note that there are + * no disconnection event objects. + */ public interface DisconnectionListener { /** *************** *** 31,34 **** --- 35,42 ---- /* * $Log$ + * Revision 1.2 2002/09/12 13:00:13 michalpise + * + * Javadoc update. + * * Revision 1.1 2002/09/10 12:06:54 michalpise * Index: FieldRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/FieldRef.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** FieldRef.java 2 Jul 2002 20:17:13 -0000 1.3 --- FieldRef.java 12 Sep 2002 13:00:13 -0000 1.4 *************** *** 23,30 **** --- 23,45 ---- import java.util.List; + /** + * Description of a class field. + */ public interface FieldRef { + /** + * Returns the name of the field. + */ String getName(); + /** + * Returns the signature (type) of the field. + */ String getSignature(); + /** + * Returns the class this field belongs to. + */ ClassRef getParentClass(); + /** + * Indicates whether the field is static. + */ boolean isStatic(); } *************** *** 32,37 **** /* * $Log$ * Revision 1.3 2002/07/02 20:17:13 stolis * License added. * ! */ \ No newline at end of file --- 47,56 ---- /* * $Log$ + * Revision 1.4 2002/09/12 13:00:13 michalpise + * + * Javadoc update. + * * Revision 1.3 2002/07/02 20:17:13 stolis * License added. * ! */ Index: FrameRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/FrameRef.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** FrameRef.java 2 Jul 2002 20:17:13 -0000 1.3 --- FrameRef.java 12 Sep 2002 13:00:13 -0000 1.4 *************** *** 23,29 **** --- 23,41 ---- import java.util.List; + /** + * This interface holds information about a frame. + */ public interface FrameRef { + /** + * Returns the method this frame belongs to. + */ MethodRef getMethod(); + /** + * Returns the frame that called this frame. + */ FrameRef getCallerFrame(); + /** + * Returns the line number in the calling method. + */ int getLineNo(); } *************** *** 31,36 **** /* * $Log$ * Revision 1.3 2002/07/02 20:17:13 stolis * License added. * ! */ \ No newline at end of file --- 43,52 ---- /* * $Log$ + * Revision 1.4 2002/09/12 13:00:13 michalpise + * + * Javadoc update. + * * Revision 1.3 2002/07/02 20:17:13 stolis * License added. * ! */ Index: GCRunRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/GCRunRef.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** GCRunRef.java 14 Jul 2002 17:59:41 -0000 1.3 --- GCRunRef.java 12 Sep 2002 13:00:13 -0000 1.4 *************** *** 23,31 **** --- 23,46 ---- import java.util.Date; + /** + * Contains information about garbage runs. + */ public interface GCRunRef { + /** + * Returns the number of used objects. + */ long getUsedObjectsCount(); + /** + * Returns the size of used space. + */ long getUsedSpace(); long getTotalSpace(); + /** + * Returns the time the GC run started. + */ Date getStartTime(); + /** + * Returns the time the GC run ended. + */ Date getEndTime(); } *************** *** 33,36 **** --- 48,55 ---- /* * $Log$ + * Revision 1.4 2002/09/12 13:00:13 michalpise + * + * Javadoc update. + * * Revision 1.3 2002/07/14 17:59:41 stolis * Obsolete comment removed. *************** *** 39,41 **** * License added. * ! */ \ No newline at end of file --- 58,60 ---- * License added. * ! */ Index: HasChildren.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/HasChildren.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** HasChildren.java 27 Jul 2002 22:24:13 -0000 1.1 --- HasChildren.java 12 Sep 2002 13:00:13 -0000 1.2 *************** *** 22,31 **** /** ! * * @author Pavel Vacha */ public interface HasChildren { ! void addChildrenListener( int type, ChildrenListener listener); void removeChildrenListener( int type, ChildrenListener listener); } --- 22,38 ---- /** ! * This interface is inherited by all objects that have children. It is used to ! * weaken the need to typecast in some cases. * @author Pavel Vacha */ public interface HasChildren { ! /** ! * Adds a new children listener which listens for a changes on specified type ! * of children. ! */ void addChildrenListener( int type, ChildrenListener listener); + /** + * Removes previously registered listener. + */ void removeChildrenListener( int type, ChildrenListener listener); } Index: HasLocationRoot.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/HasLocationRoot.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** HasLocationRoot.java 27 Jul 2002 22:24:13 -0000 1.1 --- HasLocationRoot.java 12 Sep 2002 13:00:13 -0000 1.2 *************** *** 22,29 **** /** ! * * @author Pavel Vacha */ public interface HasLocationRoot { public LocationRef getLocation(); } --- 22,33 ---- /** ! * This interface is inherited by all objects that contain some information ! * about some method or trace. It is used to weaken the need to typecast in some cases. * @author Pavel Vacha */ public interface HasLocationRoot { + /** + * Returns the location. + */ public LocationRef getLocation(); } *************** *** 31,34 **** --- 35,42 ---- /* * $Log$ + * Revision 1.2 2002/09/12 13:00:13 michalpise + * + * Javadoc update. + * * Revision 1.1 2002/07/27 22:24:13 vachis * renamed word Root added *************** *** 37,39 **** * new interfaces for getting roots and info * ! */ \ No newline at end of file --- 45,47 ---- * new interfaces for getting roots and info * ! */ Index: HasThreadRoot.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/HasThreadRoot.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** HasThreadRoot.java 27 Jul 2002 22:24:13 -0000 1.1 --- HasThreadRoot.java 12 Sep 2002 13:00:13 -0000 1.2 *************** *** 22,29 **** /** ! * * @author Pavel Vacha */ public interface HasThreadRoot { public ThreadRef getThread(); } --- 22,33 ---- /** ! * This interface is inherited by all objects that contain information ! * about some thread. It is used to weaken the need to typecast in some cases. * @author Pavel Vacha */ public interface HasThreadRoot { + /** + * Returns the thread object. + */ public ThreadRef getThread(); } *************** *** 31,34 **** --- 35,42 ---- /* * $Log$ + * Revision 1.2 2002/09/12 13:00:13 michalpise + * + * Javadoc update. + * * Revision 1.1 2002/07/27 22:24:13 vachis * renamed word Root added *************** *** 37,39 **** * new interfaces for getting roots and info * ! */ \ No newline at end of file --- 45,47 ---- * new interfaces for getting roots and info * ! */ Index: HasTypeRoot.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/HasTypeRoot.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** HasTypeRoot.java 27 Jul 2002 22:25:17 -0000 1.1 --- HasTypeRoot.java 12 Sep 2002 13:00:13 -0000 1.2 *************** *** 22,29 **** /** ! * * @author Pavel Vacha */ public interface HasTypeRoot { public TypeRef getType(); } --- 22,33 ---- /** ! * This interface is inherited by all objects that contain information ! * about some type. It is used to weaken the need to typecast in some cases. * @author Pavel Vacha */ public interface HasTypeRoot { + /** + * Returns the type. + */ public TypeRef getType(); } *************** *** 31,34 **** --- 35,42 ---- /* * $Log$ + * Revision 1.2 2002/09/12 13:00:13 michalpise + * + * Javadoc update. + * * Revision 1.1 2002/07/27 22:25:17 vachis * Has... interfaces renamed (word Root aded) *************** *** 38,40 **** * new interfaces for getting roots and info * ! */ \ No newline at end of file --- 46,48 ---- * new interfaces for getting roots and info * ! */ Index: LocationRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/LocationRef.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** LocationRef.java 24 Jul 2002 22:27:13 -0000 1.1 --- LocationRef.java 12 Sep 2002 13:00:13 -0000 1.2 *************** *** 22,29 **** /** ! * * @author Pavel Vacha */ public interface LocationRef { MethodRef getMethod(); } --- 22,33 ---- /** ! * Location is common term for trace or method. * @author Pavel Vacha */ + public interface LocationRef { + /** + * Returns the method associated with this location. + */ MethodRef getMethod(); } *************** *** 31,36 **** /* * $Log$ * Revision 1.1 2002/07/24 22:27:13 vachis * new interfaces for getting roots and info * ! */ \ No newline at end of file --- 35,44 ---- /* * $Log$ + * Revision 1.2 2002/09/12 13:00:13 michalpise + * + * Javadoc update. + * * Revision 1.1 2002/07/24 22:27:13 vachis * 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.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** MethodRef.java 27 Jul 2002 22:25:17 -0000 1.6 --- MethodRef.java 12 Sep 2002 13:00:13 -0000 1.7 *************** *** 25,46 **** public interface MethodRef extends CPUStat, AllocStat, MonStat, LocationRef, HasLocationRoot, HasChildren { String getName(); String getSignature(); int getStartLineNo(); int getEndLineNo(); ClassRef getParentClass(); ! List getCPUTraces(); List getAllocTraces(); List getMonTraces(); List getCPUThreadMethods(); CPUThreadMethodRef getCPUThreadMethod( ThreadRef peer); List getAllocThreadMethods(); AllocThreadMethodRef getAllocThreadMethod( ThreadRef peer); List getMonThreadMethods(); MonThreadMethodRef getMonThreadMethod( ThreadRef peer); List getAllocTypeMethods(); AllocTypeMethodRef getAllocTypeMethod( TypeRef peer); ! VirtualMachineImageRef getVirtualMachineImage(); } --- 25,122 ---- public interface MethodRef extends CPUStat, AllocStat, MonStat, LocationRef, HasLocationRoot, HasChildren { + + /** + * Returns the name of the method. + */ String getName(); + + /** + * Returns the signature of this method. + */ String getSignature(); + + /** + * Returns the source code line number of the beginning of the definition of + * this method. + */ int getStartLineNo(); + + /** + * Returns the source code line number of the end of the definition of + * this method. + */ int getEndLineNo(); + + /** + * Returns the class this method belongs to. + */ ClassRef getParentClass(); ! ! /** ! * Returns the list of related CPU traces. ! */ List getCPUTraces(); + + /** + * Returns the list of related allocation traces. + */ List getAllocTraces(); + + /** + * Returns the list of related monitor traces. + */ List getMonTraces(); + + /** + * Returns the list of objects containing CPU related information + * about this method and different threads. + */ List getCPUThreadMethods(); + + /** + * Returns the list of objects containing CPU related information + * about this method and the specified thread. + */ CPUThreadMethodRef getCPUThreadMethod( ThreadRef peer); + + /** + * Returns the list of objects containing memory related information + * about this method and different threads. + */ List getAllocThreadMethods(); + + /** + * Returns the list of objects containing memory related information + * about this method and the specified thread. + */ AllocThreadMethodRef getAllocThreadMethod( ThreadRef peer); + + /** + * Returns the list of objects containing monitor related information + * about this method and different threads. + */ List getMonThreadMethods(); + + /** + * Returns the list of objects containing monitor related information + * about this method and the specified thread. + */ MonThreadMethodRef getMonThreadMethod( ThreadRef peer); + + /** + * Returns the list of objects containing memory related information + * about this method and different types. + */ List getAllocTypeMethods(); + + /** + * Returns the list of objects containing CPU related information + * about this method and different threads. + */ AllocTypeMethodRef getAllocTypeMethod( TypeRef peer); ! ! /** ! * Returns the image this method belongs to. ! */ VirtualMachineImageRef getVirtualMachineImage(); } *************** *** 48,51 **** --- 124,131 ---- /* * $Log$ + * Revision 1.7 2002/09/12 13:00:13 michalpise + * + * Javadoc update. + * * Revision 1.6 2002/07/27 22:25:17 vachis * Has... interfaces renamed (word Root aded) *************** *** 58,60 **** * License added. * ! */ \ No newline at end of file --- 138,140 ---- * License added. * ! */ Index: MonThreadMethodRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/MonThreadMethodRef.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** MonThreadMethodRef.java 27 Jul 2002 22:25:17 -0000 1.6 --- MonThreadMethodRef.java 12 Sep 2002 13:00:13 -0000 1.7 *************** *** 23,34 **** import java.util.List; public interface MonThreadMethodRef extends MonStat, HasThreadRoot, HasLocationRoot, HasChildren { CPUThreadMethodRef getSiblingCPU(); AllocThreadMethodRef getSiblingAlloc(); ! List getMonThreadTraces(); ! ThreadRef getThread(); MethodRef getMethod(); } --- 23,57 ---- import java.util.List; + /** + * Contains monitor related information about method and thread. + */ + public interface MonThreadMethodRef extends MonStat, HasThreadRoot, HasLocationRoot, HasChildren { + /** + * Returns the object that contains CPU related information about + * this threadmethod. + */ CPUThreadMethodRef getSiblingCPU(); + + /** + * Returns the object that contains memory related information about + * this threadmethod. + */ AllocThreadMethodRef getSiblingAlloc(); ! ! /** ! * Returns the list of related threadtraces. ! */ List getMonThreadTraces(); ! ! /** ! * Returns the parent thread. ! */ ThreadRef getThread(); + + /** + * Returns the parent method. + */ MethodRef getMethod(); } *************** *** 36,39 **** --- 59,66 ---- /* * $Log$ + * Revision 1.7 2002/09/12 13:00:13 michalpise + * + * Javadoc update. + * * Revision 1.6 2002/07/27 22:25:17 vachis * Has... interfaces renamed (word Root aded) *************** *** 46,48 **** * License added. * ! */ \ No newline at end of file --- 73,75 ---- * License added. * ! */ Index: MonThreadTraceRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/MonThreadTraceRef.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** MonThreadTraceRef.java 27 Jul 2002 22:25:17 -0000 1.5 --- MonThreadTraceRef.java 12 Sep 2002 13:00:13 -0000 1.6 *************** *** 23,32 **** import java.util.List; public interface MonThreadTraceRef extends MonStat, HasThreadRoot, HasLocationRoot { CPUThreadTraceRef getSiblingCPU(); AllocThreadTraceRef getSiblingAlloc(); ! MonThreadMethodRef getMonThreadMethod(); ThreadRef getThread(); MonTraceRef getMonTrace(); } --- 23,55 ---- import java.util.List; + /** + * Contains monitor related information about trace and thread. + */ public interface MonThreadTraceRef extends MonStat, HasThreadRoot, HasLocationRoot { + /** + * Returns the object that contains CPU related information about + * this threadtrace. + */ CPUThreadTraceRef getSiblingCPU(); + + /** + * Returns the object that contains memory related information about + * this threadtrace. + */ AllocThreadTraceRef getSiblingAlloc(); ! ! /** ! * Returns the related threadmethod. ! */ MonThreadMethodRef getMonThreadMethod(); + + /** + * Returns the parent thread. + */ ThreadRef getThread(); + + /** + * Returns the parent method. + */ MonTraceRef getMonTrace(); } *************** *** 34,37 **** --- 57,64 ---- /* * $Log$ + * Revision 1.6 2002/09/12 13:00:13 michalpise + * + * Javadoc update. + * * Revision 1.5 2002/07/27 22:25:17 vachis * Has... interfaces renamed (word Root aded) *************** *** 44,46 **** * License added. * ! */ \ No newline at end of file --- 71,73 ---- * License added. * ! */ Index: MonTraceRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/MonTraceRef.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** MonTraceRef.java 27 Jul 2002 22:25:17 -0000 1.6 --- MonTraceRef.java 12 Sep 2002 13:00:13 -0000 1.7 *************** *** 23,32 **** --- 23,54 ---- import java.util.List; + /** + * Contains monitor related information about trace. + */ + public interface MonTraceRef extends MonStat, TraceRef, HasLocationRoot, HasChildren{ + /** + * Returns the object that contains CPU related information about + * this trace. + */ CPUTraceRef getSiblingCPU(); + + /** + * Returns the object that contains memory related information about + * this trace. + */ AllocTraceRef getSiblingAlloc(); + /** + * Returns the list of objects that contain monitor related information + * about different threads and this trace. + */ List getMonThreadTraces(); + + /** + * Returns the list of objects that contain monitor related information + * about specified thread and this trace. + */ MonThreadTraceRef getMonThreadTrace( ThreadRef peer); } *************** *** 34,37 **** --- 56,63 ---- /* * $Log$ + * Revision 1.7 2002/09/12 13:00:13 michalpise + * + * Javadoc update. + * * Revision 1.6 2002/07/27 22:25:17 vachis * Has... interfaces renamed (word Root aded) *************** *** 44,46 **** * License added. * ! */ \ No newline at end of file --- 70,72 ---- * License added. * ! */ Index: ThreadGroupRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/ThreadGroupRef.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** ThreadGroupRef.java 27 Jul 2002 22:25:17 -0000 1.5 --- ThreadGroupRef.java 12 Sep 2002 13:00:13 -0000 1.6 *************** *** 23,29 **** import java.util.List; public interface ThreadGroupRef extends HasChildren { String getName(); ! List getThreads(); } --- 23,39 ---- import java.util.List; + /** + * This interface contains information about threadgroups. The structure of threadgroups + * in JPI is flat, not hierarchical like in JVM. + */ public interface ThreadGroupRef extends HasChildren { + /** + * Returns the name of the thread. + */ String getName(); ! /** ! * Returns the list of thread in this group. You can register children ! * listener to get events about new threads. ! */ List getThreads(); } *************** *** 31,34 **** --- 41,48 ---- /* * $Log$ + * Revision 1.6 2002/09/12 13:00:13 michalpise + * + * Javadoc update. + * * Revision 1.5 2002/07/27 22:25:17 vachis * Has... interfaces renamed (word Root aded) *************** *** 38,40 **** * License added. * ! */ \ No newline at end of file --- 52,54 ---- * License added. * ! */ Index: ThreadRef.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/ThreadRef.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** ThreadRef.java 27 Jul 2002 22:25:17 -0000 1.6 --- ThreadRef.java 12 Sep 2002 13:00:13 -0000 1.7 *************** *** 24,52 **** import java.util.Date; public interface ThreadRef extends CPUStat, AllocStat, MonStat, HasThreadRoot, HasChildren { String getName(); ThreadRef getParentThread(); List getChildThreads(); CallTreeRef getCallTree(); Date getStartTime(); Date getEndTime(); ! List getCPUThreadMethods(); CPUThreadMethodRef getCPUThreadMethod( MethodRef peer); List getCPUThreadTraces(); CPUThreadTraceRef getCPUThreadTrace( CPUTraceRef peer); List getAllocThreadMethods(); AllocThreadMethodRef getAllocThreadMethod( MethodRef peer); List getAllocThreadTraces(); AllocThreadTraceRef getAllocThreadTrace( AllocTraceRef peer); List getMonThreadMethods(); MonThreadMethodRef getMonThreadMethod( MethodRef peer); List getMonThreadTraces(); MonThreadTraceRef getMonThreadTrace( MonTraceRef peer); List getAllocTypeThreads(); AllocTypeThreadRef getAllocTypeThread( TypeRef peer); ! ThreadGroupRef getThreadGroup(); VirtualMachineImageRef getVirtualMachineImage(); } --- 24,155 ---- import java.util.Date; + /** + * Contains information about thread. + */ public interface ThreadRef extends CPUStat, AllocStat, MonStat, HasThreadRoot, HasChildren { + /** + * Returns the name of the thread. + */ String getName(); + + /** + * Returns the parent thread reference. Parent thread is the thread that started this + * thread. + */ ThreadRef getParentThread(); + + /** + * Returns the list of children threads. + */ List getChildThreads(); + + /** + * Ret... [truncated message content] |
From: Pavel V. <va...@us...> - 2002-09-11 20:06:57
|
Update of /cvsroot/javaprofiler/release In directory usw-pr-cvs1:/tmp/cvs-serv22556 Log Message: release is prepared here Status: Vendor Tag: avendor Release Tags: arelease N release/doc/uvod.pdf N release/doc/prog-doc/Overview.pdf N release/doc/prog-doc/library.pdf N release/doc/prog-doc/JPI_Architecture.pdf N release/doc/prog-doc/JPI_Tutorial.pdf N release/doc/prog-doc/library/html/library-doc-html.zip N release/doc/prog-doc/library/pdf/library.pdf N release/doc/prog-doc/library/commun/general_view.pdf N release/doc/prog-doc/library/commun/scheme_1.pdf N release/doc/prog-doc/library/commun/scheme_2.pdf N release/doc/prog-doc/library/commun/scheme_3.pdf N release/doc/prog-doc/library/commun/scheme_4.pdf N release/doc/prog-doc/library/commun/scheme_5.pdf N release/doc/prog-doc/library/commun/scheme_6.pdf N release/doc/prog-doc/library/structs/complete_view.pdf N release/doc/prog-doc/library/structs/cpu.pdf N release/doc/prog-doc/library/structs/memory.pdf N release/doc/prog-doc/library/structs/monitors.pdf N release/doc/prog-doc/profiler/html/profiler-html.zip N release/doc/prog-doc/profiler/pdf/profiler.pdf N release/doc/prog-doc/profiler/javadoc/javadoc.zip N release/doc/prog-doc/profiler-native/html/library-doc-native-html.zip N release/doc/prog-doc/profiler-native/pdf/native.pdf N release/install/intalace.txt N release/install/profiler/library-linux-x86.tar.gz N release/install/profiler/library-solaris58-sparc-020724.tar.Z N release/install/profiler/profiler.jar N release/install/profiler/library-winxp-x86.zip N release/install/profiler/profilerhelp.jar No conflicts created by this import ***** Bogus filespec: - ***** Bogus filespec: Imported ***** Bogus filespec: sources |
From: Pavel V. <va...@us...> - 2002-09-11 19:45:29
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions In directory usw-pr-cvs1:/tmp/cvs-serv15765 Modified Files: Bundle.properties Log Message: fixed missing resources for detach action Index: Bundle.properties =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/Bundle.properties,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** Bundle.properties 10 Sep 2002 19:33:26 -0000 1.10 --- Bundle.properties 11 Sep 2002 19:45:25 -0000 1.11 *************** *** 64,65 **** --- 64,73 ---- LBL_ShowHistogram=Show Histogram LBL_Start=Start + + HINT_detachAction=Detaches from currently profiled session. + + LBL_BTAction=Open Backtrace + + LBL_CTAction=Open Call Tree + + LBL_detachAction=Detach |
From: Pavel V. <va...@us...> - 2002-09-11 19:12:24
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions In directory usw-pr-cvs1:/tmp/cvs-serv4977 Added Files: StartProfiler.java Log Message: start action --- NEW FILE: StartProfiler.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.actions; import java.io.IOException; import org.openide.TopManager; import org.openide.cookies.ExecCookie; import org.openide.cookies.SourceCookie; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.CookieAction; import org.openide.loaders.DataObject; import org.openide.execution.Executor; import net.sourceforge.javaprofiler.module.ProfilerExecutor; import org.openide.nodes.Node; import java.util.ResourceBundle; public class StartProfiler extends CookieAction { private static ResourceBundle bundle=NbBundle.getBundle(StartProfiler.class ); protected Class[] cookieClasses() { return new Class[]{ExecCookie.class}; } protected int mode() { return MODE_EXACTLY_ONE; } protected boolean enable(Node[] activatedNodes) { if (! super.enable(activatedNodes)) return false; // to be more restrictive, we require the SourceCookie // both java and class modules will add this cookie SourceCookie sc=(SourceCookie)activatedNodes[0].getCookie( SourceCookie.class); return sc!=null; } protected void performAction(Node[] activatedNodes) { System.err.println("Perform action."); if (activatedNodes.length != 1) return; //System.err.println("After test1"); DataObject dt=(DataObject) activatedNodes[0].getCookie(DataObject.class ); if (dt==null) return; //System.err.println("After test2"); ProfilerExecutor ex=(ProfilerExecutor) Executor.find( ProfilerExecutor.class); if (ex==null) throw new IllegalStateException("Cannot find ProfilerExecutor"); try { //System.err.println("About to start profiler"); ex.execute(dt); //System.err.println("Done"); } catch (IOException e) { TopManager.getDefault().notifyException(e); } } public String getName() { return bundle.getString("LBL_Start"); } public HelpCtx getHelpCtx() { return new HelpCtx(getClass()); } protected String iconResource() { return "/net/sourceforge/javaprofiler/module/resources/StartIcon.gif"; } } /* * $Log: StartProfiler.java,v $ * Revision 1.1 2002/09/11 19:12:19 vachis * start action * */ |
From: Pavel V. <va...@us...> - 2002-09-11 19:11:43
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/resources In directory usw-pr-cvs1:/tmp/cvs-serv4804 Added Files: LaunchAction.gif StartIcon.gif Log Message: start action icon --- NEW FILE: LaunchAction.gif --- GIF89a --- NEW FILE: StartIcon.gif --- GIF89a |
From: Pavel V. <va...@us...> - 2002-09-11 19:09:02
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions In directory usw-pr-cvs1:/tmp/cvs-serv3857 Modified Files: AttachAction.java ContinueAction.java DetachAction.java DisableGCAction.java EnableGCAction.java FinishAction.java GCAction.java ListenAction.java PauseAction.java SnapshotAction.java Log Message: enabling/disabling actions Index: AttachAction.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/AttachAction.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** AttachAction.java 10 Sep 2002 19:33:26 -0000 1.3 --- AttachAction.java 11 Sep 2002 19:08:51 -0000 1.4 *************** *** 74,77 **** --- 74,93 ---- TopManager.getDefault().setStatusText( "Attaching to Profiler...done"); + ((CallableSystemAction) findObject( PauseAction.class )) + .setEnabled( true ); + ((CallableSystemAction) findObject( SnapshotAction.class )) + .setEnabled( true ); + ((CallableSystemAction) findObject( GCAction.class )) + .setEnabled( true ); + ((CallableSystemAction) findObject( DisableGCAction.class )) + .setEnabled( true ); + ((CallableSystemAction) findObject( FinishAction.class )) + .setEnabled( true ); + ((CallableSystemAction) findObject( DetachAction.class )) + .setEnabled( true ); + + ((CallableSystemAction) findObject( ListenAction.class )) + .setEnabled( false ); + this.setEnabled( false ); ok=true; } catch (ConnectingException e) { *************** *** 117,120 **** --- 133,139 ---- /* * $Log$ + * Revision 1.4 2002/09/11 19:08:51 vachis + * enabling/disabling actions + * * Revision 1.3 2002/09/10 19:33:26 vachis * launch action Index: ContinueAction.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/ContinueAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** ContinueAction.java 27 Jan 2002 23:14:45 -0000 1.2 --- ContinueAction.java 11 Sep 2002 19:08:52 -0000 1.3 *************** *** 41,44 **** --- 41,58 ---- if (session!=null) { session.getVM().resumeThreads(); + ((CallableSystemAction) findObject( PauseAction.class )) + .setEnabled( true ); + this.setEnabled( false ); + + if (((PauseAction) findObject( PauseAction.class )).wasGCEnabled()) { + ((CallableSystemAction) findObject( GCAction.class )) + .setEnabled( true ); + ((CallableSystemAction) findObject( DisableGCAction.class )) + .setEnabled( true ); + } + else { + ((CallableSystemAction) findObject( EnableGCAction.class )) + .setEnabled( true ); + } } } *************** *** 59,62 **** --- 73,77 ---- super.initialize(); putProperty(Action.SHORT_DESCRIPTION, NbBundle.getMessage(ContinueAction.class, "HINT_continueAction")); + this.setEnabled( false ); } *************** *** 65,68 **** --- 80,86 ---- /* * $Log$ + * Revision 1.3 2002/09/11 19:08:52 vachis + * enabling/disabling actions + * * Revision 1.2 2002/01/27 23:14:45 stolis * Reference to wrong class removed. Index: DetachAction.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/DetachAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** DetachAction.java 10 Sep 2002 19:33:26 -0000 1.2 --- DetachAction.java 11 Sep 2002 19:08:52 -0000 1.3 *************** *** 43,46 **** --- 43,70 ---- session.getVM().disconnect(); data.removeSession(session); + ((CallableSystemAction) findObject( ListenAction.class )) + .setEnabled( true ); + ((CallableSystemAction) findObject( AttachAction.class )) + .setEnabled( true ); + this.setEnabled( false ); + ((CallableSystemAction) findObject( FinishAction.class )) + .setEnabled( false ); + + ((CallableSystemAction) findObject( PauseAction.class )) + .setEnabled( false ); + ((CallableSystemAction) findObject( SnapshotAction.class )) + .setEnabled( false ); + ((CallableSystemAction) findObject( GCAction.class )) + .setEnabled( false ); + ((CallableSystemAction) findObject( EnableGCAction.class )) + .setEnabled( false ); + ((CallableSystemAction) findObject( FinishAction.class )) + .setEnabled( false ); + ((CallableSystemAction) findObject( DetachAction.class )) + .setEnabled( false ); + ((CallableSystemAction) findObject( ContinueAction.class )) + .setEnabled( false ); + ((CallableSystemAction) findObject( DisableGCAction.class )) + .setEnabled( false ); } } *************** *** 61,64 **** --- 85,89 ---- super.initialize(); putProperty(Action.SHORT_DESCRIPTION, NbBundle.getMessage(DetachAction.class, "HINT_detachAction")); + this.setEnabled( false ); } *************** *** 67,70 **** --- 92,98 ---- /* * $Log$ + * Revision 1.3 2002/09/11 19:08:52 vachis + * enabling/disabling actions + * * Revision 1.2 2002/09/10 19:33:26 vachis * launch action Index: DisableGCAction.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/DisableGCAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** DisableGCAction.java 27 Jan 2002 23:19:58 -0000 1.1 --- DisableGCAction.java 11 Sep 2002 19:08:52 -0000 1.2 *************** *** 41,44 **** --- 41,49 ---- if (session!=null) { session.getVM().enableGC(false); + ((CallableSystemAction) findObject( EnableGCAction.class )) + .setEnabled( true ); + ((CallableSystemAction) findObject( GCAction.class )) + .setEnabled( false ); + this.setEnabled( false ); } } *************** *** 59,62 **** --- 64,68 ---- super.initialize(); putProperty(Action.SHORT_DESCRIPTION, NbBundle.getMessage(DisableGCAction.class, "HINT_disableGCAction")); + this.setEnabled( false ); } *************** *** 65,68 **** --- 71,77 ---- /* * $Log$ + * Revision 1.2 2002/09/11 19:08:52 vachis + * enabling/disabling actions + * * Revision 1.1 2002/01/27 23:19:58 stolis * DisableGC action. Index: EnableGCAction.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/EnableGCAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** EnableGCAction.java 27 Jan 2002 23:19:28 -0000 1.1 --- EnableGCAction.java 11 Sep 2002 19:08:52 -0000 1.2 *************** *** 41,44 **** --- 41,49 ---- if (session!=null) { session.getVM().enableGC(true); + ((CallableSystemAction) findObject( DisableGCAction.class )) + .setEnabled( true ); + ((CallableSystemAction) findObject( GCAction.class )) + .setEnabled( true ); + this.setEnabled( false ); } } *************** *** 59,62 **** --- 64,68 ---- super.initialize(); putProperty(Action.SHORT_DESCRIPTION, NbBundle.getMessage(EnableGCAction.class, "HINT_enableGCAction")); + this.setEnabled( false ); } *************** *** 65,68 **** --- 71,77 ---- /* * $Log$ + * Revision 1.2 2002/09/11 19:08:52 vachis + * enabling/disabling actions + * * Revision 1.1 2002/01/27 23:19:28 stolis * EnableGC action. Index: FinishAction.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/FinishAction.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** FinishAction.java 14 Oct 2001 22:17:27 -0000 1.1.1.1 --- FinishAction.java 11 Sep 2002 19:08:52 -0000 1.2 *************** *** 43,46 **** --- 43,69 ---- session.getVM().exit(0); data.removeSession(session); + ((CallableSystemAction) findObject( ListenAction.class )) + .setEnabled( true ); + ((CallableSystemAction) findObject( AttachAction.class )) + .setEnabled( true ); + this.setEnabled( false ); + ((CallableSystemAction) findObject( DetachAction.class )) + .setEnabled( false ); + ((CallableSystemAction) findObject( PauseAction.class )) + .setEnabled( false ); + ((CallableSystemAction) findObject( SnapshotAction.class )) + .setEnabled( false ); + ((CallableSystemAction) findObject( GCAction.class )) + .setEnabled( false ); + ((CallableSystemAction) findObject( EnableGCAction.class )) + .setEnabled( false ); + ((CallableSystemAction) findObject( FinishAction.class )) + .setEnabled( false ); + ((CallableSystemAction) findObject( DetachAction.class )) + .setEnabled( false ); + ((CallableSystemAction) findObject( ContinueAction.class )) + .setEnabled( false ); + ((CallableSystemAction) findObject( DisableGCAction.class )) + .setEnabled( false ); } } *************** *** 61,64 **** --- 84,88 ---- super.initialize(); putProperty(Action.SHORT_DESCRIPTION, NbBundle.getMessage(FinishAction.class, "HINT_finishAction")); + this.setEnabled( false ); } *************** *** 67,70 **** --- 91,97 ---- /* * $Log$ + * Revision 1.2 2002/09/11 19:08:52 vachis + * enabling/disabling actions + * * Revision 1.1.1.1 2001/10/14 22:17:27 stolis * The very first version of profiler module. Index: GCAction.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/GCAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** GCAction.java 27 Jan 2002 23:18:58 -0000 1.1 --- GCAction.java 11 Sep 2002 19:08:52 -0000 1.2 *************** *** 59,62 **** --- 59,63 ---- super.initialize(); putProperty(Action.SHORT_DESCRIPTION, NbBundle.getMessage(GCAction.class, "HINT_GCAction")); + this.setEnabled( false ); } *************** *** 65,68 **** --- 66,72 ---- /* * $Log$ + * Revision 1.2 2002/09/11 19:08:52 vachis + * enabling/disabling actions + * * Revision 1.1 2002/01/27 23:18:58 stolis * GC action. Index: ListenAction.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/ListenAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** ListenAction.java 16 May 2002 12:11:00 -0000 1.1 --- ListenAction.java 11 Sep 2002 19:08:52 -0000 1.2 *************** *** 101,104 **** --- 101,122 ---- ProfilerData.getData().addSession(session); panel=null; + ((CallableSystemAction) findObject( PauseAction.class )) + .setEnabled( true ); + ((CallableSystemAction) findObject( SnapshotAction.class )) + .setEnabled( true ); + ((CallableSystemAction) findObject( GCAction.class )) + .setEnabled( true ); + ((CallableSystemAction) findObject( DisableGCAction.class )) + .setEnabled( true ); + ((CallableSystemAction) findObject( FinishAction.class )) + .setEnabled( true ); + ((CallableSystemAction) findObject( DetachAction.class )) + .setEnabled( true ); + + ((CallableSystemAction) findObject( AttachAction.class )) + .setEnabled( false ); + ((CallableSystemAction) findObject( ListenAction.class )) + .setEnabled( false ); + } catch (ConnectingException e) { ProfilerData.getData().removeConListener(conLis); *************** *** 117,120 **** --- 135,141 ---- /* * $Log$ + * Revision 1.2 2002/09/11 19:08:52 vachis + * enabling/disabling actions + * * Revision 1.1 2002/05/16 12:11:00 stolis * Listen and terminate listener actions. Index: PauseAction.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/PauseAction.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** PauseAction.java 14 Oct 2001 22:17:22 -0000 1.1.1.1 --- PauseAction.java 11 Sep 2002 19:08:52 -0000 1.2 *************** *** 36,39 **** --- 36,45 ---- */ public class PauseAction extends CallableSystemAction { + //FIXME + private static boolean awasGCEnabled = true; + + public boolean wasGCEnabled() { + return awasGCEnabled; + } public void performAction () { *************** *** 41,44 **** --- 47,63 ---- if (session!=null) { session.getVM().suspendThreads(); + awasGCEnabled = ((CallableSystemAction) findObject( GCAction.class )) + .isEnabled(); + + ((CallableSystemAction) findObject( ContinueAction.class )) + .setEnabled( true ); + this.setEnabled( false ); + ((CallableSystemAction) findObject( GCAction.class )) + .setEnabled( false ); + ((CallableSystemAction) findObject( DisableGCAction.class )) + .setEnabled( false ); + ((CallableSystemAction) findObject( EnableGCAction.class )) + .setEnabled( false ); + } } *************** *** 59,62 **** --- 78,82 ---- super.initialize(); putProperty(Action.SHORT_DESCRIPTION, NbBundle.getMessage(PauseAction.class, "HINT_pauseAction")); + this.setEnabled( false ); } *************** *** 65,68 **** --- 85,91 ---- /* * $Log$ + * Revision 1.2 2002/09/11 19:08:52 vachis + * enabling/disabling actions + * * Revision 1.1.1.1 2001/10/14 22:17:22 stolis * The very first version of profiler module. Index: SnapshotAction.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/SnapshotAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** SnapshotAction.java 26 Feb 2002 00:44:51 -0000 1.2 --- SnapshotAction.java 11 Sep 2002 19:08:52 -0000 1.3 *************** *** 59,62 **** --- 59,63 ---- super.initialize(); putProperty(Action.SHORT_DESCRIPTION, NbBundle.getMessage(SnapshotAction.class, "HINT_snapshotAction")); + this.setEnabled( false ); } *************** *** 65,68 **** --- 66,72 ---- /* * $Log$ + * Revision 1.3 2002/09/11 19:08:52 vachis + * enabling/disabling actions + * * Revision 1.2 2002/02/26 00:44:51 stolis * Refactoring of snapshot action. |
From: Pavel V. <va...@us...> - 2002-09-11 19:08:18
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module In directory usw-pr-cvs1:/tmp/cvs-serv3688 Modified Files: ProfilerExecutor.java Log Message: pass on/off to library insted of true/false Index: ProfilerExecutor.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/ProfilerExecutor.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** ProfilerExecutor.java 11 Sep 2002 16:11:32 -0000 1.4 --- ProfilerExecutor.java 11 Sep 2002 19:08:15 -0000 1.5 *************** *** 157,175 **** } private String getProfilerOptions() { StringBuffer options=new StringBuffer("-Xrunprofiler:"); ! options.append("alloc=").append(isAlloc()); options.append(',').append("alloc_level=").append(levelName(getAllocLevel())); options.append(',').append("alloc_trace_depth=").append(getAllocTraceDepth()); ! options.append(',').append("alloc_thread=").append(isAllocThread()); ! options.append(',').append("cpu=").append(isCPU()); options.append(',').append("cpu_level=").append(levelName(getCPULevel())); options.append(',').append("cpu_trace_depth=").append(getCPUTraceDepth()); ! options.append(',').append("cpu_thread=").append(isCPUThread()); options.append(',').append("cpu_method=").append(methodName(getCPUMethod())); ! options.append(',').append("mon=").append(isMon()); options.append(',').append("mon_level=").append(levelName(getMonLevel())); options.append(',').append("mon_trace_depth=").append(getMonTraceDepth()); ! options.append(',').append("mon_thread=").append(isMonThread()); options.append(',').append("commun_type=").append(communName(getCommunType())); if (getCommunType()==COMMUN_SOCKET) { --- 157,181 ---- } + private String yesno( boolean test ) { + if ( test ) + return "on"; + else + return "off"; + } private String getProfilerOptions() { StringBuffer options=new StringBuffer("-Xrunprofiler:"); ! options.append("alloc=").append(yesno(isAlloc())); options.append(',').append("alloc_level=").append(levelName(getAllocLevel())); options.append(',').append("alloc_trace_depth=").append(getAllocTraceDepth()); ! options.append(',').append("alloc_thread=").append(yesno(isAllocThread())); ! options.append(',').append("cpu=").append(yesno(isCPU())); options.append(',').append("cpu_level=").append(levelName(getCPULevel())); options.append(',').append("cpu_trace_depth=").append(getCPUTraceDepth()); ! options.append(',').append("cpu_thread=").append(yesno(isCPUThread())); options.append(',').append("cpu_method=").append(methodName(getCPUMethod())); ! options.append(',').append("mon=").append(yesno(isMon())); options.append(',').append("mon_level=").append(levelName(getMonLevel())); options.append(',').append("mon_trace_depth=").append(getMonTraceDepth()); ! options.append(',').append("mon_thread=").append(yesno(isMonThread())); options.append(',').append("commun_type=").append(communName(getCommunType())); if (getCommunType()==COMMUN_SOCKET) { *************** *** 558,561 **** --- 564,570 ---- /* * $Log$ + * Revision 1.5 2002/09/11 19:08:15 vachis + * pass on/off to library insted of true/false + * * Revision 1.4 2002/09/11 16:11:32 vachis * bug fix |
From: Pavel V. <va...@us...> - 2002-09-11 19:07:07
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl In directory usw-pr-cvs1:/tmp/cvs-serv3273 Modified Files: VirtualMachineImpl.java Log Message: really horribele pacth fixed expcetion have occured when snapshot is created during paused VM Index: VirtualMachineImpl.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/VirtualMachineImpl.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** VirtualMachineImpl.java 10 Sep 2002 19:28:07 -0000 1.15 --- VirtualMachineImpl.java 11 Sep 2002 19:07:00 -0000 1.16 *************** *** 104,110 **** //PENDING: to pass configuration //PENDING: if not_suspendedVM then suspendVM and resumeVM ! suspendThreads(); SnapshotImpl snap = new SnapshotImpl( iprof ); ! resumeThreads(); return snap; } --- 104,122 ---- //PENDING: to pass configuration //PENDING: if not_suspendedVM then suspendVM and resumeVM ! //!!!FIXME ! boolean alreadySusp = false; ! try { ! suspendThreads(); ! } catch (RuntimeException e) { ! if (e.getMessage().startsWith( "TODO: handle this: " ) ) { ! alreadySusp = true; ! } ! else ! throw e; ! } SnapshotImpl snap = new SnapshotImpl( iprof ); ! if ( !alreadySusp ) { ! resumeThreads(); ! } return snap; } *************** *** 292,295 **** --- 304,313 ---- /* * $Log$ + * Revision 1.16 2002/09/11 19:07:00 vachis + * really horribele pacth + * + * fixed + * expcetion have occured when snapshot is created during paused VM + * * Revision 1.15 2002/09/10 19:28:07 vachis * empty error handler methods |
From: Pavel V. <va...@us...> - 2002-09-11 16:12:22
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes In directory usw-pr-cvs1:/tmp/cvs-serv11659 Modified Files: SessionKiller.java Log Message: bug fix by lukas Index: SessionKiller.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes/SessionKiller.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** SessionKiller.java 31 Jul 2002 21:34:30 -0000 1.3 --- SessionKiller.java 11 Sep 2002 16:12:15 -0000 1.4 *************** *** 52,56 **** if (session.getVM().isShutdown()) { // create snapshot ! ProfilerSettings ps=(ProfilerSettings)SystemOption.findObject(ProfilerSettings.class); if (ps.getSnapshotOnExit()) { session.createSnapshot(); --- 52,56 ---- if (session.getVM().isShutdown()) { // create snapshot ! ProfilerSettings ps=(ProfilerSettings)SystemOption.findObject(ProfilerSettings.class, true); if (ps.getSnapshotOnExit()) { session.createSnapshot(); *************** *** 75,78 **** --- 75,82 ---- /* * $Log$ + * Revision 1.4 2002/09/11 16:12:15 vachis + * bug fix + * by lukas + * * Revision 1.3 2002/07/31 21:34:30 vachis * method renamed to isShutdown() |
From: Pavel V. <va...@us...> - 2002-09-11 16:11:37
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module In directory usw-pr-cvs1:/tmp/cvs-serv11387 Modified Files: ProfilerSettings.java ProfilerExecutor.java Log Message: bug fix by lukas Index: ProfilerSettings.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/ProfilerSettings.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** ProfilerSettings.java 26 Feb 2002 00:34:22 -0000 1.2 --- ProfilerSettings.java 11 Sep 2002 16:11:32 -0000 1.3 *************** *** 35,38 **** --- 35,39 ---- protected void initialize () { + super.initialize(); setWorkspace("profiling"); setSnapshotOnExit(true); *************** *** 74,77 **** --- 75,82 ---- /* * $Log$ + * Revision 1.3 2002/09/11 16:11:32 vachis + * bug fix + * by lukas + * * Revision 1.2 2002/02/26 00:34:22 stolis * Snapshot_on_exit property added. Index: ProfilerExecutor.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/ProfilerExecutor.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** ProfilerExecutor.java 10 Sep 2002 19:29:10 -0000 1.3 --- ProfilerExecutor.java 11 Sep 2002 16:11:32 -0000 1.4 *************** *** 558,562 **** /* * $Log$ ! * Revision 1.3 2002/09/10 19:29:10 vachis * by lukas * --- 558,563 ---- /* * $Log$ ! * Revision 1.4 2002/09/11 16:11:32 vachis ! * bug fix * by lukas * |
From: Pavel V. <va...@us...> - 2002-09-10 19:35:41
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes In directory usw-pr-cvs1:/tmp/cvs-serv9734 Modified Files: SnapshotNode2.java Log Message: by lukas Index: SnapshotNode2.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes/SnapshotNode2.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** SnapshotNode2.java 3 Sep 2002 17:52:41 -0000 1.2 --- SnapshotNode2.java 10 Sep 2002 19:35:38 -0000 1.3 *************** *** 100,127 **** } }); ! props.put(new PropertySupport.ReadOnly("time", long.class, bundle.getString("LBL_snapshotTime"), bundle.getString("HINT_snapshotTime")) { public Object getValue() { ! return new Long(snapshot.getSnapshot().time()); } }); ! props.put(new PropertySupport.ReadOnly("totalMemory", long.class, bundle.getString("LBL_totalMemory"), bundle.getString("HINT_totalMemory")) { public Object getValue() { return new Long(snapshot.getSnapshot().totalMemory()); } ! }); ! props.put(new PropertySupport.ReadOnly("freeMemory", long.class, bundle.getString("LBL_freeMemory"), bundle.getString("HINT_freeMemory")) { public Object getValue() { return new Long(snapshot.getSnapshot().freeMemory()); } ! }); ! props.put(new PropertySupport.ReadOnly("takenMemory", long.class, bundle.getString("LBL_takenMemory"), bundle.getString("HINT_takenMemory")) { public Object getValue() { return new Long(snapshot.getSnapshot().totalMemory()-snapshot.getSnapshot().freeMemory()); } ! }); return sheet; } --- 100,128 ---- } }); ! props.put(new PropertySupport.ReadOnly("time", String.class, bundle.getString("LBL_snapshotTime"), bundle.getString("HINT_snapshotTime")) { public Object getValue() { ! return (new java.text.SimpleDateFormat("dd.MM.yyyy")).format( ! new Date( snapshot.getSnapshot().time() )); } }); ! /*props.put(new PropertySupport.ReadOnly("totalMemory", long.class, bundle.getString("LBL_totalMemory"), bundle.getString("HINT_totalMemory")) { public Object getValue() { return new Long(snapshot.getSnapshot().totalMemory()); } ! });*/ ! /*props.put(new PropertySupport.ReadOnly("freeMemory", long.class, bundle.getString("LBL_freeMemory"), bundle.getString("HINT_freeMemory")) { public Object getValue() { return new Long(snapshot.getSnapshot().freeMemory()); } ! });*/ ! /*props.put(new PropertySupport.ReadOnly("takenMemory", long.class, bundle.getString("LBL_takenMemory"), bundle.getString("HINT_takenMemory")) { public Object getValue() { return new Long(snapshot.getSnapshot().totalMemory()-snapshot.getSnapshot().freeMemory()); } ! }); */ return sheet; } *************** *** 171,174 **** --- 172,179 ---- /* * $Log$ + * Revision 1.3 2002/09/10 19:35:38 vachis + * + * by lukas + * * Revision 1.2 2002/09/03 17:52:41 petrul * fixed: was refering SnapshotNode |
From: Pavel V. <va...@us...> - 2002-09-10 19:35:03
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime In directory usw-pr-cvs1:/tmp/cvs-serv9474 Modified Files: ImageR.java Log Message: by lukas Index: ImageR.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/realtime/ImageR.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** ImageR.java 3 Sep 2002 17:48:08 -0000 1.15 --- ImageR.java 10 Sep 2002 19:34:56 -0000 1.16 *************** *** 131,137 **** * list. */ ! private Map childListeners=new HashMap(1); /** Maps from image child type to <code>ChildrenListener</code> list. */ ! private Map imageChildListeners=new HashMap(1); /** This object is returned by getTimerTask(). */ --- 131,137 ---- * list. */ ! private Map childListeners=Collections.synchronizedMap(new HashMap(1)); /** Maps from image child type to <code>ChildrenListener</code> list. */ ! private Map imageChildListeners=Collections.synchronizedMap(new HashMap(1)); /** This object is returned by getTimerTask(). */ *************** *** 1252,1258 **** task=new TimerTask() { public void run() { ! Iterator it=childListeners.keySet().iterator(); ! while (it.hasNext()) { ! Long key=(Long) it.next(); int type=(int) (key.longValue() >> 32); int objId=(int) key.longValue(); --- 1252,1261 ---- task=new TimerTask() { public void run() { ! // the set may change, so we cannot safely iterate, we make ! // a copy and go through the copy. ! Long[] keys=(Long[]) childListeners.keySet().toArray(new ! Long[0]); ! for (int i=0; i<keys.length; i++) { ! Long key=keys[i]; int type=(int) (key.longValue() >> 32); int objId=(int) key.longValue(); *************** *** 1261,1267 **** data.refresh(type); } ! it=imageChildListeners.keySet().iterator(); ! while (it.hasNext()) { ! Long key=(Long) it.next(); int type=(int) (key.longValue() >> 32); --- 1264,1272 ---- data.refresh(type); } ! ! keys=(Long[]) imageChildListeners.keySet().toArray(new ! Long[0]); ! for (int i=0; i<keys.length; i++) { ! Long key=keys[i]; int type=(int) (key.longValue() >> 32); |
From: Pavel V. <va...@us...> - 2002-09-10 19:33:29
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions In directory usw-pr-cvs1:/tmp/cvs-serv9029 Modified Files: AttachAction.java Bundle.properties DetachAction.java Log Message: launch action by lukas Index: AttachAction.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/AttachAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** AttachAction.java 16 May 2002 12:14:26 -0000 1.2 --- AttachAction.java 10 Sep 2002 19:33:26 -0000 1.3 *************** *** 61,64 **** --- 61,87 ---- dialog=TopManager.getDefault().createDialog(descr); dialog.show(); + + // at the time of writing, connect() can block, so we better move it off + // event-dispatching thread + if (descr.getValue().equals(DialogDescriptor.OK_OPTION)) { + boolean ok=false; + TopManager.getDefault().setStatusText("Attaching to Profiler..."); + try { + //PENDING + // switch workspace + Session session=panel.connect(); + ProfilerData.getData().addSession(session); + TopManager.getDefault().setStatusText( + "Attaching to Profiler...done"); + ok=true; + } catch (ConnectingException e) { + TopManager.getDefault().notifyException(e); + } finally { + if (!ok) + TopManager.getDefault().setStatusText( + "Attaching to Profiler...error"); + } + } + panel=null; } *************** *** 81,109 **** /** ! * Attaches to the profiled process. * * @param event ActionEvent from the Attach to VM dialog. */ ! public void actionPerformed(ActionEvent event) { ! if (event.getSource().equals(DialogDescriptor.OK_OPTION)) { ! try { ! //PENDING ! // switch workspace ! Session session=panel.connect(); ! ProfilerData.getData().addSession(session); ! } catch (ConnectingException e) { ! TopManager.getDefault().notifyException(e); ! } ! } ! panel=null; dialog.setVisible(false); dialog.dispose(); } } - } /* * $Log$ * Revision 1.2 2002/05/16 12:14:26 stolis * Attach panel generalized for both attach and listen connectors. --- 104,124 ---- /** ! * Closes the dialog. * * @param event ActionEvent from the Attach to VM dialog. */ ! public void actionPerformed(ActionEvent event) { dialog.setVisible(false); dialog.dispose(); } } } /* * $Log$ + * Revision 1.3 2002/09/10 19:33:26 vachis + * launch action + * by lukas + * * Revision 1.2 2002/05/16 12:14:26 stolis * Attach panel generalized for both attach and listen connectors. Index: Bundle.properties =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/Bundle.properties,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** Bundle.properties 6 Sep 2002 19:16:13 -0000 1.9 --- Bundle.properties 10 Sep 2002 19:33:26 -0000 1.10 *************** *** 19,23 **** ## Lukas Petru and Marek Przeczek. ## ! LBL_attachAction=Attach LBL_destroyAction=Destroy HINT_finishAction=Finishes currently profiled session. --- 19,23 ---- ## Lukas Petru and Marek Przeczek. ## ! LBL_attachAction=Attach... LBL_destroyAction=Destroy HINT_finishAction=Finishes currently profiled session. *************** *** 63,72 **** LBL_ShowTable=Show Table LBL_ShowHistogram=Show Histogram ! ! LBL_BTAction=Open Backtrace ! ! LBL_CTAction=Open Call Tree ! ! LBL_detachAction=Detach ! ! HINT_detachAction=Detaches from currently profiled session. --- 63,65 ---- LBL_ShowTable=Show Table LBL_ShowHistogram=Show Histogram ! LBL_Start=Start Index: DetachAction.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/DetachAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** DetachAction.java 6 Sep 2002 19:16:51 -0000 1.1 --- DetachAction.java 10 Sep 2002 19:33:26 -0000 1.2 *************** *** 41,45 **** Session session=data.currentSession(); if (session!=null) { ! session.getVM().dispose(); data.removeSession(session); } --- 41,45 ---- Session session=data.currentSession(); if (session!=null) { ! session.getVM().disconnect(); data.removeSession(session); } *************** *** 67,70 **** --- 67,74 ---- /* * $Log$ + * Revision 1.2 2002/09/10 19:33:26 vachis + * launch action + * by lukas + * * Revision 1.1 2002/09/06 19:16:51 vachis * new detach action |
From: Pavel V. <va...@us...> - 2002-09-10 19:33:13
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/resources In directory usw-pr-cvs1:/tmp/cvs-serv8928 Modified Files: mf-layer.xml Log Message: launch action by lukas Index: mf-layer.xml =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/resources/mf-layer.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** mf-layer.xml 6 Sep 2002 19:15:49 -0000 1.5 --- mf-layer.xml 10 Sep 2002 19:33:10 -0000 1.6 *************** *** 26,29 **** --- 26,30 ---- <folder name="Actions"> <folder name="Profiler"> + <file name="net-sourceforge-javaprofiler-module-actions-StartProfiler.instance" /> <file name="net-sourceforge-javaprofiler-module-actions-AttachAction.instance" /> <file name="net-sourceforge-javaprofiler-module-actions-ListenAction.instance" /> *************** *** 45,49 **** <folder name="Profiler"> <file name="net-sourceforge-javaprofiler-module-actions-ProfilerWindowAction.instance" /> ! <attr name="net-sourceforge-javaprofiler-module-actions-ProfilerWindowAction.instance/net-sourceforge-javaprofiler-module-actions-AttachAction.instance" boolvalue="true" /> <file name="net-sourceforge-javaprofiler-module-actions-AttachAction.instance" /> <attr name="net-sourceforge-javaprofiler-module-actions-AttachAction.instance/net-sourceforge-javaprofiler-module-actions-ListenAction.instance" boolvalue="true" /> --- 46,52 ---- <folder name="Profiler"> <file name="net-sourceforge-javaprofiler-module-actions-ProfilerWindowAction.instance" /> ! <attr name="net-sourceforge-javaprofiler-module-actions-ProfilerWindowAction.instance/net-sourceforge-javaprofiler-module-actions-StartProfiler.instance" boolvalue="true" /> ! <file name="net-sourceforge-javaprofiler-module-actions-StartProfiler.instance" /> ! <attr name="net-sourceforge-javaprofiler-module-actions-StartProfiler.instance/net-sourceforge-javaprofiler-module-actions-AttachAction.instance" boolvalue="true" /> <file name="net-sourceforge-javaprofiler-module-actions-AttachAction.instance" /> <attr name="net-sourceforge-javaprofiler-module-actions-AttachAction.instance/net-sourceforge-javaprofiler-module-actions-ListenAction.instance" boolvalue="true" /> *************** *** 89,93 **** <folder name="Profiler"> <file name="net-sourceforge-javaprofiler-module-actions-ProfilerWindowAction.instance" /> ! <attr name="net-sourceforge-javaprofiler-module-actions-ProfilerWindowAction.instance/net-sourceforge-javaprofiler-module-actions-AttachAction.instance" boolvalue="true" /> <file name="net-sourceforge-javaprofiler-module-actions-AttachAction.instance" /> <attr name="net-sourceforge-javaprofiler-module-actions-AttachAction.instance/net-sourceforge-javaprofiler-module-actions-ListenAction.instance" boolvalue="true" /> --- 92,98 ---- <folder name="Profiler"> <file name="net-sourceforge-javaprofiler-module-actions-ProfilerWindowAction.instance" /> ! <attr name="net-sourceforge-javaprofiler-module-actions-ProfilerWindowAction.instance/net-sourceforge-javaprofiler-module-actions-StartProfiler.instance" boolvalue="true" /> ! <file name="net-sourceforge-javaprofiler-module-actions-StartProfiler.instance" /> ! <attr name="net-sourceforge-javaprofiler-module-actions-StartProfiler.instance/net-sourceforge-javaprofiler-module-actions-AttachAction.instance" boolvalue="true" /> <file name="net-sourceforge-javaprofiler-module-actions-AttachAction.instance" /> <attr name="net-sourceforge-javaprofiler-module-actions-AttachAction.instance/net-sourceforge-javaprofiler-module-actions-ListenAction.instance" boolvalue="true" /> |
From: Pavel V. <va...@us...> - 2002-09-10 19:29:13
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module In directory usw-pr-cvs1:/tmp/cvs-serv7488 Modified Files: ProfilerExecutor.java Log Message: by lukas Index: ProfilerExecutor.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/ProfilerExecutor.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** ProfilerExecutor.java 26 Feb 2002 00:32:24 -0000 1.2 --- ProfilerExecutor.java 10 Sep 2002 19:29:10 -0000 1.3 *************** *** 64,67 **** --- 64,69 ---- NbBundle.getMessage(ProfilerExecutor.class, "HINT_profilerFormat") ); + /** Library default value of connectMode */ + private static final int CONNECT_MODE_DEFAULT=MODE_SERVER; /** Holds value of property alloc. */ private boolean alloc=true; *************** *** 109,118 **** protected Process createProcess (ExecInfo info) throws IOException { ! return getExternalExecutor ().exec (new ProfilerFormat (info, getClassPath (), getBootClassPath (), getRepositoryPath (), getLibraryPath (), ! getProfilerOptions())); } --- 111,125 ---- protected Process createProcess (ExecInfo info) throws IOException { ! ProfilerFormat format=new ProfilerFormat (info, getClassPath (), getBootClassPath (), getRepositoryPath (), getLibraryPath (), ! getProfilerOptions()); ! NbProcessDescriptor exe=getExternalExecutor (); ! // visual clue to what is being executed ! System.out.print( format.format(exe.getProcessName())+" " ); ! System.out.println( format.format(exe.getArguments()) ); ! return exe.exec (format, getEnvironmentVariables ()); } *************** *** 166,182 **** options.append(',').append("mon_thread=").append(isMonThread()); options.append(',').append("commun_type=").append(communName(getCommunType())); ! if (!"".equals(getCommunHost())) { ! options.append(',').append("commun_host=").append(getCommunHost()); } - if (0!=getCommunPort()) { - options.append(',').append("commun_port=").append(getCommunPort()); - } - if (0!=getCommunShmemSize()) { - options.append(',').append("commun_shmem_size=").append(getCommunShmemSize()); - } - if (!"".equals(getCommunShmemID())) { - options.append(',').append("commun_shmem_id=").append(getCommunShmemID()); - } - options.append(',').append("connect_mode=").append(modeName(getConnectMode())); return options.toString(); } --- 173,193 ---- options.append(',').append("mon_thread=").append(isMonThread()); options.append(',').append("commun_type=").append(communName(getCommunType())); ! if (getCommunType()==COMMUN_SOCKET) { ! if (!"".equals(getCommunHost())) { ! options.append(',').append("commun_host=").append(getCommunHost()); ! } ! if (0!=getCommunPort()) { ! options.append(',').append("commun_port=").append(getCommunPort()); ! } ! if (CONNECT_MODE_DEFAULT!=getConnectMode()) ! options.append(',').append("connect_mode=").append(modeName(getConnectMode())); ! } else { ! if (0!=getCommunShmemSize()) { ! options.append(',').append("commun_shmem_size=").append(getCommunShmemSize()); ! } ! if (!"".equals(getCommunShmemID())) { ! options.append(',').append("commun_shmem_id=").append(getCommunShmemID()); ! } } return options.toString(); } *************** *** 547,550 **** --- 558,564 ---- /* * $Log$ + * Revision 1.3 2002/09/10 19:29:10 vachis + * by lukas + * * Revision 1.2 2002/02/26 00:32:24 stolis * Forgotten '=' characters added. |
From: Pavel V. <va...@us...> - 2002-09-10 19:28:11
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl In directory usw-pr-cvs1:/tmp/cvs-serv7035 Modified Files: VirtualMachineImpl.java Log Message: empty error handler methods Index: VirtualMachineImpl.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/VirtualMachineImpl.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** VirtualMachineImpl.java 3 Sep 2002 17:48:50 -0000 1.14 --- VirtualMachineImpl.java 10 Sep 2002 19:28:07 -0000 1.15 *************** *** 31,35 **** * Implementation of Virtual Machine. * ! * @see net.sourceforge.javaprofiler.jpi.VirtualMachine * @author Jan Stola */ --- 31,35 ---- * Implementation of Virtual Machine. * ! * @see net.sourceforge.javaprofiler.jpi.VirtualMachineRef * @author Jan Stola */ *************** *** 169,173 **** * target VM is closed, and the target VM prepares to accept another * subsequent connection from this profiler or another profiler, including ! * the following tasks: All threads suspended by {@link ThreadInfo#suspend()} * are resumed. Garbage collection is re-enabled. Any current method * invocations executing in the target VM are continued after --- 169,173 ---- * target VM is closed, and the target VM prepares to accept another * subsequent connection from this profiler or another profiler, including ! * the following tasks: All threads suspended by {@link VirtaulMachineImpl#suspend()} * are resumed. Garbage collection is re-enabled. Any current method * invocations executing in the target VM are continued after *************** *** 175,179 **** * (<code>ClassInfo</code>, <code>ThreadInfo</code>, etc.) will become invalid. */ ! public void dispose() { //PENDING iprof.stop(); --- 175,179 ---- * (<code>ClassInfo</code>, <code>ThreadInfo</code>, etc.) will become invalid. */ ! public void disconnect() { //PENDING iprof.stop(); *************** *** 230,234 **** * use exitVM() method instead. * ! * @see isShutdowned(), exitVM() */ public void shutdown() { --- 230,234 ---- * use exitVM() method instead. * ! * @see #isShutdowned(), #exitVM() */ public void shutdown() { *************** *** 237,241 **** } catch (COMMUN_Exception e) { throw new VMDisconnectedException(); ! } } --- 237,241 ---- } catch (COMMUN_Exception e) { throw new VMDisconnectedException(); ! } } *************** *** 250,254 **** * false (still running, normal operation) * ! * @see shutdown(), exitVM() */ public boolean isShutdown() { --- 250,254 ---- * false (still running, normal operation) * ! * @see #shutdown(), #exitVM() */ public boolean isShutdown() { *************** *** 277,284 **** --- 277,298 ---- } } + + /** Register a disconnection listener */ + public void addDisconnectionListener(DisconnectionListener l) { + //PENDING + } + + /** Unregister a disconnection listener */ + public void removeDisconnectionListener(DisconnectionListener l) { + //PENDING + } + } /* * $Log$ + * Revision 1.15 2002/09/10 19:28:07 vachis + * empty error handler methods + * * Revision 1.14 2002/09/03 17:48:50 petrul * changed constructor code |