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: Marek P. <ma...@us...> - 2002-01-31 12:31:05
|
Update of /cvsroot/javaprofiler/library/src/shared In directory usw-pr-cvs1:/tmp/cvs-serv27034/src/shared Modified Files: thread.h Log Message: calltree Index: thread.h =================================================================== RCS file: /cvsroot/javaprofiler/library/src/shared/thread.h,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -r1.23 -r1.24 *** thread.h 2001/11/21 22:31:51 1.23 --- thread.h 2002/01/31 12:31:01 1.24 *************** *** 52,55 **** --- 52,56 ---- #include "../commun/buffer.h" #include "../allocator/allocator.h" + #include "../calltree/callTree.h" /** Thread. This class consists of data gained *************** *** 138,141 **** --- 139,147 ---- unsigned long monitorEnterTime; + + public: + + /// thread's call tree (tree of called methods) + CallTree callTree; private: |
Update of /cvsroot/javaprofiler/library/src/calltree In directory usw-pr-cvs1:/tmp/cvs-serv27034/src/calltree Added Files: Makefile Makefile.mak Makefile.rules callTree.cpp callTree.h callTreeItem.cpp callTreeItem.h dir.info Log Message: calltree --- NEW FILE: Makefile --- include ../../config.mk include Makefile.rules --- NEW FILE: Makefile.mak --- !include ../../config.mk !include Makefile.rules --- NEW FILE: Makefile.rules --- callTree.o \ callTree.obj: callTree.cpp $(CCC) $(CPPFLAGS) callTree.cpp callTreeItem.o \ callTreeItem.obj: callTreeItem.cpp $(CCC) $(CPPFLAGS) callTreeItem.cpp --- NEW FILE: callTree.cpp --- /* * 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. */ #include "../calltree/callTree.h" CallTree::~CallTree(){ while( root) { while( root) { current = root; root = root->children.first(); } root = current->parent; if( root) root->children.remove( current)->destroy(); } if( current) current->destroy(); } void CallTree::getBinaryData( Buffer& b) { CallTreeItem* p = root; CallTreeItem* q = NULL; while( 1) { while( p) { p->getBinaryData( b); q = p; p = p->children.first(); } if( q) p = q->parent; if( !p) break; CallTreeItem* r = p->children.next( q); q = p; p = r; } } --- NEW FILE: callTree.h --- /* * 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. */ #ifndef _CALLTREE_H_ #define _CALLTREE_H_ #include "../calltree/callTreeItem.h" #include "../commun/buffer.h" /** CallTree of the thread. Java methods are called in given ** Java thread and on the base of the stack of these calls ** we can construct a tree - a calltree. This calltree shows ** us how a method calls another methods and how these methods ** call anothers etc. Using this tree we can easily compute and ** show cumulative and pure time, call stack etc. This class only ** encapsulates a list of CallTreeItem objects. ** ** @see CallTreeItem, Thread ** ** @author Marek Przeczek */ class CallTree { public: /// root of the calltree (first method called in the thread) CallTreeItem* root; /// current method (just called and running) CallTreeItem* current; public: /// Default constructor. CallTree() : root( NULL), current( NULL) {} /// Destructor. ~CallTree(); public: /** Get binary data. This method adds the whole calltree ** to the end of output buffer 'b' - in binary format ** appropriate eg. for transfer to client. ** ** @param b reference to output buffer */ void getBinaryData( Buffer& b); }; #endif // _CALLTREE_H_ --- NEW FILE: callTreeItem.cpp --- /* * 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. */ #include "../calltree/callTreeItem.h" #include "../shared/method.h" #ifdef USE_ALLOCATOR Allocator CallTreeItem::_allocator; #endif void CallTreeItem::getBinaryData( Buffer& b) { b += cumulativeTime; b += hits; b += pureTime; b += method->getProfID(); b += method->getProfID(); b += (jint)children.length(); } --- NEW FILE: callTreeItem.h --- /* * 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. */ #ifndef _CALLTREE_ITEM_H_ #define _CALLTREE_ITEM_H_ #include "../list/listItem.h" #include "../main/includes.h" #include "../list/list.h" #include "../allocator/allocator.h" #include "../commun/buffer.h" /** An item of the calltree. This class describes ** one item of the calltree. It contains all data ** which are required and possible to gain. ** One CallTreeItem corresponds to one method ** in the call stack trace for given thread. ** ** @see CallTree ** ** @author Marek Przeczek */ class CallTreeItem: public LI1 { public: /// last time when a method was entered jlong startTime; public: /// time spent in the method (including sub-calls) jlong cumulativeTime; /// number of calls of the method jlong hits; /// time spent in the method (excluding sub-calls) jlong pureTime; public: /// information about the method Method* method; public: /// parent in the tree (method who called this one) CallTreeItem* parent; /// methods called by this method List<CallTreeItem, LI1> children; public: /// Default constructor. CallTreeItem() : startTime( 0), cumulativeTime( 0), hits( 0), pureTime( 0), method( NULL), parent( NULL) {} /// Destructor. virtual ~CallTreeItem() {} #ifdef USE_ALLOCATOR private: /// allocator static Allocator _allocator; public: /** Overloaded new() operator. */ void* operator new( size_t sz) { return _allocator.get( sz);} /** Overloaded delete() operator. */ void operator delete( void* unit) { _allocator.put( unit);} #endif public: /** Get binary data. This method adds all necessary data ** to the end of buffer 'b' in binary format which can ** then be used eg. for transfer to client. ** ** @param b reference to output buffer */ void getBinaryData( Buffer& b); }; #endif // _CALLTREE_ITEM_H_ --- NEW FILE: dir.info --- FILES = callTree callTreeItem CLEAN_FILES = *.pdb *.obj *.o |
From: Marek P. <ma...@us...> - 2002-01-31 12:31:05
|
Update of /cvsroot/javaprofiler/library/src/setup In directory usw-pr-cvs1:/tmp/cvs-serv27034/src/setup Modified Files: setup.cpp Log Message: calltree Index: setup.cpp =================================================================== RCS file: /cvsroot/javaprofiler/library/src/setup/setup.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** setup.cpp 2001/11/21 22:31:49 1.7 --- setup.cpp 2002/01/31 12:31:00 1.8 *************** *** 83,93 **** } ! void Setup::processOption(char* option) { char* eq; ! if (!(eq = strchr(option, '='))) return; *eq = '\0'; ! setParameter(option, eq + 1); } --- 83,103 ---- } ! void Setup::processOption( char* option) { char* eq; ! if( !(eq = strchr( option, '='))) { ! ! if( !strcmp( option, "version")) { ! ! cout << "Java Profiling Tool - profiler library" << endl; ! cout << "http://javaprofiler.sourceforge.net/" << endl << endl; ! cout << "build: " << __DATE__ << " " << __TIME__ << endl << endl; ! } ! return; ! } ! *eq = '\0'; ! setParameter( option, eq+1); } |
From: Marek P. <ma...@us...> - 2002-01-31 12:29:42
|
Update of /cvsroot/javaprofiler/library/src/calltree In directory usw-pr-cvs1:/tmp/cvs-serv26574/src/calltree Log Message: Directory /cvsroot/javaprofiler/library/src/calltree added to the repository |
From: Marek P. <ma...@us...> - 2002-01-31 12:27:00
|
Update of /cvsroot/javaprofiler/library/demo/06 In directory usw-pr-cvs1:/tmp/cvs-serv25518/demo/06 Log Message: Directory /cvsroot/javaprofiler/library/demo/06 added to the repository |
From: Pavel V. <va...@us...> - 2002-01-31 06:03:47
|
Update of /cvsroot/javaprofiler/jpiimpl In directory usw-pr-cvs1:/tmp/cvs-serv3364/jpiimpl Modified Files: build.xml Log Message: small fix Index: build.xml =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/build.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** build.xml 2002/01/15 18:38:37 1.3 --- build.xml 2002/01/31 06:03:43 1.4 *************** *** 3,8 **** <!-- configuration ************************************************** --> ! <path id="project.doxygen.dir" path="D:\Program Files\doxygen-1.2.12"/> ! <path id="project.doxygen.exec" path="${project.doxygen.dir}\bin\doxygen.exe"/> <!-- end of configuration ******************************************* --> --- 3,8 ---- <!-- configuration ************************************************** --> ! <path id="project.doxygen.dir" location="D:\Program Files\doxygen-1.2.12"/> ! <path id="project.doxygen.exec" location="${project.doxygen.dir}\bin\doxygen.exe"/> <!-- end of configuration ******************************************* --> *************** *** 30,34 **** ! <!-- <target depends="init" name="interface"> <javac debug="true" failonerror="true" srcdir="interface/net"> <classpath> <pathelement location="jpiimpl"/> <pathelement location="interface"/> </classpath> <src> <pathelement location="jpiimpl/net"/> <pathelement location="interface/net"/> </src> </javac> </target> --> --- 30,45 ---- ! <!-- <target depends="init" name="interface"> ! <javac debug="true" failonerror="true" srcdir="interface/net"> ! <classpath> ! <pathelement location="jpiimpl"/> ! <pathelement location="interface"/> ! </classpath> ! <src> ! <pathelement location="jpiimpl/net"/> ! <pathelement location="interface/net"/> ! </src> ! </javac> ! </target> --> *************** *** 72,92 **** ! <!-- <target name="test" depends="init,all" description="Try running it."> <java classname="com.foo.Main" fork="true" failonerror="true"> <classpath> <pathelement location="."/> </classpath> --> <!-- Pass some args, perhaps: --> <!-- <arg value="-myfile"/> --> <!-- Will be given as an absolute path: --> ! <!-- <arg file="myfile.txt"/> </java> </target> --> <target depends="init" description="Javadoc for my API." name="javadoc"> <mkdir dir="jpiimpl/docs/javadoc"/> ! <javadoc Windowtitle="JPI and Implementation" defaultexcludes="yes" destdir="jpiimpl/docs/javadoc" group="JPI net.sourceforge.javaprofiler.jpi*,Implementation net.sourceforge.javaprofiler.jpiimpl*" private="on"> <doctitle>Java Profiling Interface and Implementation</doctitle> <package name="net.sourceforge.javaprofiler.jpiimpl.*"/> <package name="net.sourceforge.javaprofiler.jpi.*"/> ! <!-- <group title="Group 1 Packages" packages="net.sourceforge.javaprofiler.jpi*"/> <group title="Group 2 Packages" packages="com.dummy.test.b*:com.dummy.test.c*:net*"/> --> ! <!-- <group title="Java Profiling Interface" > <package name="net.sourceforge.javaprofiler.jpi*"/> </group> <group title="Implementation" > <package name="net.sourceforge.net.jpiimpl*"/> </group> --> <sourcepath> --- 83,117 ---- ! <!-- <target name="test" depends="init,all" description="Try running it."> ! <java classname="com.foo.Main" fork="true" failonerror="true"> ! <classpath> ! <pathelement location="."/> ! </classpath> --> <!-- Pass some args, perhaps: --> <!-- <arg value="-myfile"/> --> <!-- Will be given as an absolute path: --> ! <!-- <arg file="myfile.txt"/> ! </java> ! </target> --> <target depends="init" description="Javadoc for my API." name="javadoc"> <mkdir dir="jpiimpl/docs/javadoc"/> ! <javadoc Windowtitle="JPI and Implementation" defaultexcludes="yes" destdir="jpiimpl/docs/javadoc" ! group="JPI net.sourceforge.javaprofiler.jpi*,Implementation net.sourceforge.javaprofiler.jpiimpl*" ! private="on"> <doctitle>Java Profiling Interface and Implementation</doctitle> <package name="net.sourceforge.javaprofiler.jpiimpl.*"/> <package name="net.sourceforge.javaprofiler.jpi.*"/> ! <!-- <group title="Group 1 Packages" packages="net.sourceforge.javaprofiler.jpi*"/> ! <group title="Group 2 Packages" packages="com.dummy.test.b*:com.dummy.test.c*:net*"/> --> ! <!-- <group title="Java Profiling Interface" > ! <package name="net.sourceforge.javaprofiler.jpi*"/> ! </group> ! <group title="Implementation" > ! <package name="net.sourceforge.net.jpiimpl*"/> ! </group> --> <sourcepath> *************** *** 100,104 **** <target depends="init" description="Doxygen documentation for my API." name="doxygen"> <mkdir dir="jpiimpl/docs/doxygen"/> ! <!-- <exec executable="doxygen" failonerro="no"> //+params for os <arg line=""/> <arg vaule=""/> <arg path=""/> </exec> --> </target> --- 125,133 ---- <target depends="init" description="Doxygen documentation for my API." name="doxygen"> <mkdir dir="jpiimpl/docs/doxygen"/> ! <!-- <exec executable="doxygen" failonerro="no"> //+params for os ! <arg line=""/> ! <arg vaule=""/> ! <arg path=""/> ! </exec> --> </target> |
From: Marek P. <ma...@us...> - 2002-01-30 00:26:25
|
Update of /cvsroot/javaprofiler/library/src2 In directory usw-pr-cvs1:/tmp/cvs-serv30642/src2 Modified Files: Makefile.rules Log Message: fixes Index: Makefile.rules =================================================================== RCS file: /cvsroot/javaprofiler/library/src2/Makefile.rules,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** Makefile.rules 2001/11/25 22:33:47 1.6 --- Makefile.rules 2002/01/30 00:26:22 1.7 *************** *** 5,9 **** CommunShMem.o \ CommunShMem.obj: CommunShMem.cpp ../src/main/includes.h ! $(JAVAH) -o CommunShMem.h $(JPIIMPL2).CommunShMem $(CCC) $(CPPFLAGS) CommunShMem.cpp --- 5,9 ---- CommunShMem.o \ CommunShMem.obj: CommunShMem.cpp ../src/main/includes.h ! $(JAVAH) -o CommunShMem.h -classpath . $(JPIIMPL2).CommunShMem $(CCC) $(CPPFLAGS) CommunShMem.cpp |
From: Marek P. <ma...@us...> - 2002-01-30 00:26:25
|
Update of /cvsroot/javaprofiler/library/src/main In directory usw-pr-cvs1:/tmp/cvs-serv30642/src/main Modified Files: includes.h Log Message: fixes Index: includes.h =================================================================== RCS file: /cvsroot/javaprofiler/library/src/main/includes.h,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -r1.29 -r1.30 *** includes.h 2002/01/27 15:17:24 1.29 --- includes.h 2002/01/30 00:26:22 1.30 *************** *** 57,60 **** --- 57,61 ---- #include <time.h> #include <signal.h> + #include <stdlib.h> #ifndef USE_RAW_MONITORS |
From: Marek P. <ma...@us...> - 2002-01-30 00:26:25
|
Update of /cvsroot/javaprofiler/library In directory usw-pr-cvs1:/tmp/cvs-serv30642 Modified Files: config.mk Log Message: fixes Index: config.mk =================================================================== RCS file: /cvsroot/javaprofiler/library/config.mk,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -r1.34 -r1.35 *** config.mk 2002/01/28 18:32:51 1.34 --- config.mk 2002/01/30 00:26:22 1.35 *************** *** 44,53 **** # choose one of following two possibilities ! #FLAGS = -O0 -D_DEBUG ! FLAGS = -O3 -DNDEBUG -fno-rtti -fno-exceptions ! ! # shared library dynamically or statically linked ! # with gcc and stdc++ libraries ! # choose one of following two possibilities LDFLAGS = $(DEFINES) -shared -o $(PROF_LIBRARY_NAME) --- 44,49 ---- # choose one of following two possibilities ! FLAGS = -O0 -D_DEBUG ! #FLAGS = -O3 -DNDEBUG -fno-rtti -fno-exceptions LDFLAGS = $(DEFINES) -shared -o $(PROF_LIBRARY_NAME) |
From: Pavel V. <va...@us...> - 2002-01-30 00:23:23
|
Update of /cvsroot/javaprofiler/test/snapshot In directory usw-pr-cvs1:/tmp/cvs-serv29964 Modified Files: run1.bat PrintSnap.java Log Message: fix Index: run1.bat =================================================================== RCS file: /cvsroot/javaprofiler/test/snapshot/run1.bat,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** run1.bat 2002/01/26 19:37:10 1.3 --- run1.bat 2002/01/30 00:23:20 1.4 *************** *** 3,6 **** SET CLASSPATH=%JAVA_HOME%\demo\jfc\Notepad\Notepad.jar;%CLASSPATH% set path=%JAVA_HOME%\bin;%path% ! java -Xrun..\..\library\src\profiler\profiler:commun_type=socket Notepad ! rem > out1.txt --- 3,5 ---- SET CLASSPATH=%JAVA_HOME%\demo\jfc\Notepad\Notepad.jar;%CLASSPATH% set path=%JAVA_HOME%\bin;%path% ! java -Xrun..\library\src\profiler\profiler:commun_type=socket Notepad rem > out1.txt Index: PrintSnap.java =================================================================== RCS file: /cvsroot/javaprofiler/test/snapshot/PrintSnap.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** PrintSnap.java 2002/01/26 19:36:18 1.1 --- PrintSnap.java 2002/01/30 00:23:20 1.2 *************** *** 86,90 **** --- 86,97 ---- try { System.out.println( "Ready" ); + + // til profiled program is going, do nothing + while( !iprof.isShutdowned()) Thread.sleep( 1000); + + System.out.println( "DebugOut START" ); printSnapShot(); + System.out.println( "DebugOut END" ); + iprof.shutdown(); } |
From: Marek P. <ma...@us...> - 2002-01-28 18:32:54
|
Update of /cvsroot/javaprofiler/library/config In directory usw-pr-cvs1:/tmp/cvs-serv25717/config Modified Files: config_sparc_sunos58_gcc302.mk config_x86_linux_gcc302.mk Log Message: Index: config_sparc_sunos58_gcc302.mk =================================================================== RCS file: /cvsroot/javaprofiler/library/config/config_sparc_sunos58_gcc302.mk,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** config_sparc_sunos58_gcc302.mk 2002/01/27 14:33:24 1.2 --- config_sparc_sunos58_gcc302.mk 2002/01/28 18:32:51 1.3 *************** *** 37,41 **** # modify as needed ! DEFINES = -DSUNOS -DUSE_RAW_MONITORS -DUSE_ALLOCATOR -fpic INCLUDES = -I$(JAVA_PATH)/include -I$(JAVA_PATH)/include/solaris --- 37,41 ---- # modify as needed ! DEFINES = -DSUNOS -DUSE_RAW_MONITORS -DUSE_ALLOCATOR INCLUDES = -I$(JAVA_PATH)/include -I$(JAVA_PATH)/include/solaris *************** *** 53,62 **** # (compilation without -DUSE_RAW_MONITORS) # ! #LDLIBS = -lpthread -lthread LDFLAGS2 = $(DEFINES) -shared -o $(NATIVE_LIBRARY_NAME) LDLIBS2 = ! CPPFLAGS = -c $(FLAGS) $(DEFINES) $(INCLUDES) ################################################################ --- 53,62 ---- # (compilation without -DUSE_RAW_MONITORS) # ! #LDLIBS = $(LDLIBS) -lpthread -lthread LDFLAGS2 = $(DEFINES) -shared -o $(NATIVE_LIBRARY_NAME) LDLIBS2 = ! CPPFLAGS = -fpic -c $(FLAGS) $(DEFINES) $(INCLUDES) ################################################################ Index: config_x86_linux_gcc302.mk =================================================================== RCS file: /cvsroot/javaprofiler/library/config/config_x86_linux_gcc302.mk,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** config_x86_linux_gcc302.mk 2002/01/28 14:00:00 1.5 --- config_x86_linux_gcc302.mk 2002/01/28 18:32:51 1.6 *************** *** 47,54 **** #FLAGS = -O3 -DNDEBUG -fno-rtti -fno-exceptions - # shared library dynamically or statically linked - # with gcc and stdc++ libraries - # choose one of following two possibilities - LDFLAGS = $(DEFINES) -shared -o $(PROF_LIBRARY_NAME) LDLIBS = --- 47,50 ---- |
From: Marek P. <ma...@us...> - 2002-01-28 18:32:54
|
Update of /cvsroot/javaprofiler/library In directory usw-pr-cvs1:/tmp/cvs-serv25717 Modified Files: config.mk Log Message: Index: config.mk =================================================================== RCS file: /cvsroot/javaprofiler/library/config.mk,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -r1.33 -r1.34 *** config.mk 2002/01/28 13:06:38 1.33 --- config.mk 2002/01/28 18:32:51 1.34 *************** *** 20,24 **** CCC = "$(COMPILER_PATH)/bin/g++" ! LD = "$(COMPILER_PATH)/bin/gcc" JAVAC = "$(JAVA_PATH)/bin/javac" JAVAH = "$(JAVA_PATH)/bin/javah" --- 20,24 ---- CCC = "$(COMPILER_PATH)/bin/g++" ! LD = "$(COMPILER_PATH)/bin/g++" JAVAC = "$(JAVA_PATH)/bin/javac" JAVAH = "$(JAVA_PATH)/bin/javah" *************** *** 44,49 **** # choose one of following two possibilities ! FLAGS = -O0 -D_DEBUG ! #FLAGS = -O3 -DNDEBUG -fno-rtti -fno-exceptions # shared library dynamically or statically linked --- 44,49 ---- # choose one of following two possibilities ! #FLAGS = -O0 -D_DEBUG ! FLAGS = -O3 -DNDEBUG -fno-rtti -fno-exceptions # shared library dynamically or statically linked *************** *** 52,65 **** LDFLAGS = $(DEFINES) -shared -o $(PROF_LIBRARY_NAME) ! LDLIBS = -lstdc++ LDFLAGS2 = $(DEFINES) -shared -o $(NATIVE_LIBRARY_NAME) ! LDLIBS2 = -lstdc++ ! ! #LDFLAGS = $(DEFINES) -shared -static -static-libgcc -o $(PROF_LIBRARY_NAME) ! #LDLIBS = $(COMPILER_PATH)/lib/libstdc++.a ! # ! #LDFLAGS2 = $(DEFINES) -shared -static -static-libgcc -o $(NATIVE_LIBRARY_NAME) ! #LDLIBS2 = $(COMPILER_PATH)/lib/libstdc++.a CPPFLAGS = -fpic -c $(FLAGS) $(DEFINES) $(INCLUDES) --- 52,59 ---- LDFLAGS = $(DEFINES) -shared -o $(PROF_LIBRARY_NAME) ! LDLIBS = LDFLAGS2 = $(DEFINES) -shared -o $(NATIVE_LIBRARY_NAME) ! LDLIBS2 = CPPFLAGS = -fpic -c $(FLAGS) $(DEFINES) $(INCLUDES) |
From: Marek P. <ma...@us...> - 2002-01-28 14:00:03
|
Update of /cvsroot/javaprofiler/library/config In directory usw-pr-cvs1:/tmp/cvs-serv12605/config Modified Files: config_x86_linux_gcc302.mk Log Message: changes back Index: config_x86_linux_gcc302.mk =================================================================== RCS file: /cvsroot/javaprofiler/library/config/config_x86_linux_gcc302.mk,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** config_x86_linux_gcc302.mk 2002/01/28 13:06:38 1.4 --- config_x86_linux_gcc302.mk 2002/01/28 14:00:00 1.5 *************** *** 20,24 **** CCC = "$(COMPILER_PATH)/bin/g++" ! LD = "$(COMPILER_PATH)/bin/gcc" JAVAC = "$(JAVA_PATH)/bin/javac" JAVAH = "$(JAVA_PATH)/bin/javah" --- 20,24 ---- CCC = "$(COMPILER_PATH)/bin/g++" ! LD = "$(COMPILER_PATH)/bin/g++" JAVAC = "$(JAVA_PATH)/bin/javac" JAVAH = "$(JAVA_PATH)/bin/javah" *************** *** 52,65 **** LDFLAGS = $(DEFINES) -shared -o $(PROF_LIBRARY_NAME) ! LDLIBS = -lstdc++ LDFLAGS2 = $(DEFINES) -shared -o $(NATIVE_LIBRARY_NAME) ! LDLIBS2 = -lstdc++ ! ! #LDFLAGS = $(DEFINES) -shared -static -static-libgcc -o $(PROF_LIBRARY_NAME) ! #LDLIBS = $(COMPILER_PATH)/lib/libstdc++.a ! # ! #LDFLAGS2 = $(DEFINES) -shared -static -static-libgcc -o $(NATIVE_LIBRARY_NAME) ! #LDLIBS2 = $(COMPILER_PATH)/lib/libstdc++.a CPPFLAGS = -fpic -c $(FLAGS) $(DEFINES) $(INCLUDES) --- 52,59 ---- LDFLAGS = $(DEFINES) -shared -o $(PROF_LIBRARY_NAME) ! LDLIBS = LDFLAGS2 = $(DEFINES) -shared -o $(NATIVE_LIBRARY_NAME) ! LDLIBS2 = CPPFLAGS = -fpic -c $(FLAGS) $(DEFINES) $(INCLUDES) |
From: Marek P. <ma...@us...> - 2002-01-28 13:06:42
|
Update of /cvsroot/javaprofiler/library/config In directory usw-pr-cvs1:/tmp/cvs-serv698/config Modified Files: config_x86_linux_gcc302.mk Log Message: config file for linux changed Index: config_x86_linux_gcc302.mk =================================================================== RCS file: /cvsroot/javaprofiler/library/config/config_x86_linux_gcc302.mk,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** config_x86_linux_gcc302.mk 2002/01/26 22:50:27 1.3 --- config_x86_linux_gcc302.mk 2002/01/28 13:06:38 1.4 *************** *** 20,24 **** CCC = "$(COMPILER_PATH)/bin/g++" ! LD = "$(COMPILER_PATH)/bin/g++" JAVAC = "$(JAVA_PATH)/bin/javac" JAVAH = "$(JAVA_PATH)/bin/javah" --- 20,24 ---- CCC = "$(COMPILER_PATH)/bin/g++" ! LD = "$(COMPILER_PATH)/bin/gcc" JAVAC = "$(JAVA_PATH)/bin/javac" JAVAH = "$(JAVA_PATH)/bin/javah" *************** *** 37,41 **** # modify as needed ! DEFINES = -DLINUX -DUSE_RAW_MONITORS -DUSE_ALLOCATOR -fpic INCLUDES = -I$(JAVA_PATH)/include -I$(JAVA_PATH)/include/linux --- 37,41 ---- # modify as needed ! DEFINES = -DLINUX -DUSE_RAW_MONITORS -DUSE_ALLOCATOR INCLUDES = -I$(JAVA_PATH)/include -I$(JAVA_PATH)/include/linux *************** *** 44,57 **** # choose one of following two possibilities ! FLAGS = -O0 -D_DEBUG #FLAGS = -O3 -DNDEBUG -fno-rtti -fno-exceptions ! LDFLAGS = $(DEFINES) -shared -o $(PROF_LIBRARY_NAME) ! LDLIBS = LDFLAGS2 = $(DEFINES) -shared -o $(NATIVE_LIBRARY_NAME) ! LDLIBS2 = ! CPPFLAGS = -c $(FLAGS) $(DEFINES) $(INCLUDES) ################################################################ --- 44,67 ---- # choose one of following two possibilities ! FLAGS = -O0 -D_DEBUG #FLAGS = -O3 -DNDEBUG -fno-rtti -fno-exceptions ! # shared library dynamically or statically linked ! # with gcc and stdc++ libraries ! # choose one of following two possibilities ! ! LDFLAGS = $(DEFINES) -shared -o $(PROF_LIBRARY_NAME) ! LDLIBS = -lstdc++ LDFLAGS2 = $(DEFINES) -shared -o $(NATIVE_LIBRARY_NAME) ! LDLIBS2 = -lstdc++ ! ! #LDFLAGS = $(DEFINES) -shared -static -static-libgcc -o $(PROF_LIBRARY_NAME) ! #LDLIBS = $(COMPILER_PATH)/lib/libstdc++.a ! # ! #LDFLAGS2 = $(DEFINES) -shared -static -static-libgcc -o $(NATIVE_LIBRARY_NAME) ! #LDLIBS2 = $(COMPILER_PATH)/lib/libstdc++.a ! CPPFLAGS = -fpic -c $(FLAGS) $(DEFINES) $(INCLUDES) ################################################################ |
From: Marek P. <ma...@us...> - 2002-01-28 13:06:41
|
Update of /cvsroot/javaprofiler/library In directory usw-pr-cvs1:/tmp/cvs-serv698 Modified Files: config.mk Log Message: config file for linux changed Index: config.mk =================================================================== RCS file: /cvsroot/javaprofiler/library/config.mk,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -r1.32 -r1.33 *** config.mk 2002/01/27 15:17:24 1.32 --- config.mk 2002/01/28 13:06:38 1.33 *************** *** 20,24 **** CCC = "$(COMPILER_PATH)/bin/g++" ! LD = "$(COMPILER_PATH)/bin/g++" JAVAC = "$(JAVA_PATH)/bin/javac" JAVAH = "$(JAVA_PATH)/bin/javah" --- 20,24 ---- CCC = "$(COMPILER_PATH)/bin/g++" ! LD = "$(COMPILER_PATH)/bin/gcc" JAVAC = "$(JAVA_PATH)/bin/javac" JAVAH = "$(JAVA_PATH)/bin/javah" *************** *** 37,41 **** # modify as needed ! DEFINES = -DLINUX -DUSE_RAW_MONITORS -DUSE_ALLOCATOR -fpic INCLUDES = -I$(JAVA_PATH)/include -I$(JAVA_PATH)/include/linux --- 37,41 ---- # modify as needed ! DEFINES = -DLINUX -DUSE_RAW_MONITORS -DUSE_ALLOCATOR INCLUDES = -I$(JAVA_PATH)/include -I$(JAVA_PATH)/include/linux *************** *** 44,57 **** # choose one of following two possibilities ! FLAGS = -O0 -D_DEBUG #FLAGS = -O3 -DNDEBUG -fno-rtti -fno-exceptions ! LDFLAGS = $(DEFINES) -shared -o $(PROF_LIBRARY_NAME) ! LDLIBS = LDFLAGS2 = $(DEFINES) -shared -o $(NATIVE_LIBRARY_NAME) ! LDLIBS2 = ! CPPFLAGS = -c $(FLAGS) $(DEFINES) $(INCLUDES) ################################################################ --- 44,67 ---- # choose one of following two possibilities ! FLAGS = -O0 -D_DEBUG #FLAGS = -O3 -DNDEBUG -fno-rtti -fno-exceptions ! # shared library dynamically or statically linked ! # with gcc and stdc++ libraries ! # choose one of following two possibilities ! ! LDFLAGS = $(DEFINES) -shared -o $(PROF_LIBRARY_NAME) ! LDLIBS = -lstdc++ LDFLAGS2 = $(DEFINES) -shared -o $(NATIVE_LIBRARY_NAME) ! LDLIBS2 = -lstdc++ ! ! #LDFLAGS = $(DEFINES) -shared -static -static-libgcc -o $(PROF_LIBRARY_NAME) ! #LDLIBS = $(COMPILER_PATH)/lib/libstdc++.a ! # ! #LDFLAGS2 = $(DEFINES) -shared -static -static-libgcc -o $(NATIVE_LIBRARY_NAME) ! #LDLIBS2 = $(COMPILER_PATH)/lib/libstdc++.a ! CPPFLAGS = -fpic -c $(FLAGS) $(DEFINES) $(INCLUDES) ################################################################ |
From: Jan S. <st...@us...> - 2002-01-27 23:21:44
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions In directory usw-pr-cvs1:/tmp/cvs-serv8888 Modified Files: Bundle.properties Log Message: Localization of GC, enableGC, disableGC and createSnapshot actions. Index: Bundle.properties =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/Bundle.properties,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** Bundle.properties 2001/10/14 22:15:29 1.1.1.1 --- Bundle.properties 2002/01/27 23:21:36 1.2 *************** *** 37,38 **** --- 37,70 ---- LBL_pauseAction=Pause LBL_finishAction=Finish + + HINT_GCAction=Forces GC in the currently profiled session. + + LBL_GCAction=GC + + HINT_snapshotAction=Creates snapshot of the currently profiled session. + + LBL_snapshotAction=Create Snapshot + + LBL_enableGCAction=Enable GC + + LBL_disableGCAction=Disable GC + + HINT_enableGCAction=Enables GC in the currently profiled session. + + HINT_disableGCAction=Disables GC in the currently profiled session. + + LBL_GCSessionAction=GC + + LBL_enableGCSessionAction=Enable GC + + LBL_disableGCSessionAction=Disable GC + + LBL_snapshotSessionAction=Create Snapshot + + HINT_disableGCSessionAction=Disables GC in the selected sessions. + + HINT_enableGCSessionAction=Enables GC in the selected sessions. + + HINT_GCSessionAction=Forces GC in the selected sessions. + + HINT_snapshotSessionAction=Creates snapshots of the selected sessions. |
From: Jan S. <st...@us...> - 2002-01-27 23:20:02
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions In directory usw-pr-cvs1:/tmp/cvs-serv8499 Added Files: DisableGCSessionAction.java DisableGCAction.java Log Message: DisableGC action. --- NEW FILE: DisableGCSessionAction.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 javax.swing.Action; import org.openide.nodes.Node; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.CookieAction; /** * Action that disables GC in the selected sessions. * * @author Jan Stola */ public class DisableGCSessionAction extends CookieAction { protected Class[] cookieClasses() { return new Class[]{SessionCookie.class}; } protected int mode() { return MODE_ALL; } protected void performAction(Node[] nodes) { for (int i=0; i<nodes.length; i++) { SessionCookie cookie=(SessionCookie)nodes[i].getCookie(SessionCookie.class); cookie.disableGC(); } } public String getName() { return NbBundle.getMessage(DisableGCSessionAction.class, "LBL_disableGCSessionAction"); } protected String iconResource() { return "/net/sourceforge/javaprofiler/module/resources/DisableGCSessionActionIcon.gif"; } public HelpCtx getHelpCtx() { return new HelpCtx(DisableGCSessionAction.class); } protected void initialize() { super.initialize(); putProperty(Action.SHORT_DESCRIPTION, NbBundle.getMessage(DisableGCSessionAction.class, "HINT_disableGCSessionAction")); } } /* * $Log: DisableGCSessionAction.java,v $ * Revision 1.1 2002/01/27 23:19:58 stolis * DisableGC action. * */ --- NEW FILE: DisableGCAction.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 javax.swing.Action; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.CallableSystemAction; import net.sourceforge.javaprofiler.module.data.Session; import net.sourceforge.javaprofiler.module.data.ProfilerData; /** * Action that disables GC in the current session. * * @author Jan Stola */ public class DisableGCAction extends CallableSystemAction { public void performAction () { Session session=ProfilerData.getData().currentSession(); if (session!=null) { session.getVM().enableGC(false); } } public String getName () { return NbBundle.getMessage(DisableGCAction.class, "LBL_disableGCAction"); } protected String iconResource () { return "/net/sourceforge/javaprofiler/module/resources/DisableGCActionIcon.gif"; } public HelpCtx getHelpCtx () { return new HelpCtx(DisableGCAction.class); } protected void initialize () { super.initialize(); putProperty(Action.SHORT_DESCRIPTION, NbBundle.getMessage(DisableGCAction.class, "HINT_disableGCAction")); } } /* * $Log: DisableGCAction.java,v $ * Revision 1.1 2002/01/27 23:19:58 stolis * DisableGC action. * */ |
From: Jan S. <st...@us...> - 2002-01-27 23:19:31
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions In directory usw-pr-cvs1:/tmp/cvs-serv8404 Added Files: EnableGCSessionAction.java EnableGCAction.java Log Message: EnableGC action. --- NEW FILE: EnableGCSessionAction.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 javax.swing.Action; import org.openide.nodes.Node; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.CookieAction; /** * Action that enables GC in the selected sessions. * * @author Jan Stola */ public class EnableGCSessionAction extends CookieAction { protected Class[] cookieClasses() { return new Class[]{SessionCookie.class}; } protected int mode() { return MODE_ALL; } protected void performAction(Node[] nodes) { for (int i=0; i<nodes.length; i++) { SessionCookie cookie=(SessionCookie)nodes[i].getCookie(SessionCookie.class); cookie.enableGC(); } } public String getName() { return NbBundle.getMessage(EnableGCSessionAction.class, "LBL_enableGCSessionAction"); } protected String iconResource() { return "/net/sourceforge/javaprofiler/module/resources/EnableGCSessionActionIcon.gif"; } public HelpCtx getHelpCtx() { return new HelpCtx(EnableGCSessionAction.class); } protected void initialize() { super.initialize(); putProperty(Action.SHORT_DESCRIPTION, NbBundle.getMessage(EnableGCSessionAction.class, "HINT_enableGCSessionAction")); } } /* * $Log: EnableGCSessionAction.java,v $ * Revision 1.1 2002/01/27 23:19:28 stolis * EnableGC action. * */ --- NEW FILE: EnableGCAction.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 javax.swing.Action; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.CallableSystemAction; import net.sourceforge.javaprofiler.module.data.Session; import net.sourceforge.javaprofiler.module.data.ProfilerData; /** * Action that enables GC in the current session. * * @author Jan Stola */ public class EnableGCAction extends CallableSystemAction { public void performAction () { Session session=ProfilerData.getData().currentSession(); if (session!=null) { session.getVM().enableGC(true); } } public String getName () { return NbBundle.getMessage(EnableGCAction.class, "LBL_enableGCAction"); } protected String iconResource () { return "/net/sourceforge/javaprofiler/module/resources/EnableGCActionIcon.gif"; } public HelpCtx getHelpCtx () { return new HelpCtx(EnableGCAction.class); } protected void initialize () { super.initialize(); putProperty(Action.SHORT_DESCRIPTION, NbBundle.getMessage(EnableGCAction.class, "HINT_enableGCAction")); } } /* * $Log: EnableGCAction.java,v $ * Revision 1.1 2002/01/27 23:19:28 stolis * EnableGC action. * */ |
From: Jan S. <st...@us...> - 2002-01-27 23:19:00
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions In directory usw-pr-cvs1:/tmp/cvs-serv8287 Added Files: GCSessionAction.java GCAction.java Log Message: GC action. --- NEW FILE: GCSessionAction.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 javax.swing.Action; import org.openide.nodes.Node; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.CookieAction; /** * Action that forces GC in the selected sessions. * * @author Jan Stola */ public class GCSessionAction extends CookieAction { protected Class[] cookieClasses() { return new Class[]{SessionCookie.class}; } protected int mode() { return MODE_ALL; } protected void performAction(Node[] nodes) { for (int i=0; i<nodes.length; i++) { SessionCookie cookie=(SessionCookie)nodes[i].getCookie(SessionCookie.class); cookie.gc(); } } public String getName() { return NbBundle.getMessage(GCSessionAction.class, "LBL_GCSessionAction"); } protected String iconResource() { return "/net/sourceforge/javaprofiler/module/resources/GCSessionActionIcon.gif"; } public HelpCtx getHelpCtx() { return new HelpCtx(GCSessionAction.class); } protected void initialize() { super.initialize(); putProperty(Action.SHORT_DESCRIPTION, NbBundle.getMessage(GCSessionAction.class, "HINT_GCSessionAction")); } } /* * $Log: GCSessionAction.java,v $ * Revision 1.1 2002/01/27 23:18:58 stolis * GC action. * */ --- NEW FILE: GCAction.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 javax.swing.Action; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.CallableSystemAction; import net.sourceforge.javaprofiler.module.data.Session; import net.sourceforge.javaprofiler.module.data.ProfilerData; /** * Action that forces GC in the current session. * * @author Jan Stola */ public class GCAction extends CallableSystemAction { public void performAction () { Session session=ProfilerData.getData().currentSession(); if (session!=null) { session.getVM().gc(); } } public String getName () { return NbBundle.getMessage(GCAction.class, "LBL_GCAction"); } protected String iconResource () { return "/net/sourceforge/javaprofiler/module/resources/GCActionIcon.gif"; } public HelpCtx getHelpCtx () { return new HelpCtx(GCAction.class); } protected void initialize () { super.initialize(); putProperty(Action.SHORT_DESCRIPTION, NbBundle.getMessage(GCAction.class, "HINT_GCAction")); } } /* * $Log: GCAction.java,v $ * Revision 1.1 2002/01/27 23:18:58 stolis * GC action. * */ |
From: Jan S. <st...@us...> - 2002-01-27 23:18:28
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions In directory usw-pr-cvs1:/tmp/cvs-serv8192 Added Files: SnapshotSessionAction.java SnapshotAction.java Log Message: Snapshot action. --- NEW FILE: SnapshotSessionAction.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 javax.swing.Action; import org.openide.nodes.Node; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.CookieAction; /** * Action that creates snapshots of the selected sessions. * * @author Jan Stola */ public class SnapshotSessionAction extends CookieAction { protected Class[] cookieClasses() { return new Class[]{SessionCookie.class}; } protected int mode() { return MODE_ALL; } protected void performAction(Node[] nodes) { for (int i=0; i<nodes.length; i++) { SessionCookie cookie=(SessionCookie)nodes[i].getCookie(SessionCookie.class); cookie.createSnapshot(); } } public String getName() { return NbBundle.getMessage(SnapshotSessionAction.class, "LBL_snapshotSessionAction"); } protected String iconResource() { return "/net/sourceforge/javaprofiler/module/resources/SnapshotSessionActionIcon.gif"; } public HelpCtx getHelpCtx() { return new HelpCtx(SnapshotSessionAction.class); } protected void initialize() { super.initialize(); putProperty(Action.SHORT_DESCRIPTION, NbBundle.getMessage(SnapshotSessionAction.class, "HINT_snapshotSessionAction")); } } /* * $Log: SnapshotSessionAction.java,v $ * Revision 1.1 2002/01/27 23:18:26 stolis * Snapshot action. * */ --- NEW FILE: SnapshotAction.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 javax.swing.Action; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.CallableSystemAction; import net.sourceforge.javaprofiler.jpi.Snapshot; import net.sourceforge.javaprofiler.module.data.Session; import net.sourceforge.javaprofiler.module.data.ProfilerData; /** * Action that creates snapshot of the current session. * * @author Jan Stola */ public class SnapshotAction extends CallableSystemAction { public void performAction () { Session session=ProfilerData.getData().currentSession(); if (session!=null) { Snapshot snapshot=session.getVM().createSnapshot(); ProfilerData.getData().addSnapshot(new net.sourceforge.javaprofiler.module.data.Snapshot(snapshot)); } } public String getName () { return NbBundle.getMessage(SnapshotAction.class, "LBL_snapshotAction"); } protected String iconResource () { return "/net/sourceforge/javaprofiler/module/resources/SnapshotActionIcon.gif"; } public HelpCtx getHelpCtx () { return new HelpCtx(SnapshotAction.class); } protected void initialize () { super.initialize(); putProperty(Action.SHORT_DESCRIPTION, NbBundle.getMessage(SnapshotAction.class, "HINT_snapshotAction")); } } /* * $Log: SnapshotAction.java,v $ * Revision 1.1 2002/01/27 23:18:26 stolis * Snapshot action. * */ |
From: Jan S. <st...@us...> - 2002-01-27 23:17:54
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions In directory usw-pr-cvs1:/tmp/cvs-serv8042 Added Files: SnapshotCookie.java Log Message: Cookie for snapshot. --- NEW FILE: SnapshotCookie.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 org.openide.nodes.Node; /** * Cookie for snapshots. * * @author Jan Stola */ public interface SnapshotCookie extends Node.Cookie { } /* * $Log: SnapshotCookie.java,v $ * Revision 1.1 2002/01/27 23:17:51 stolis * Cookie for snapshot. * */ |
From: Jan S. <st...@us...> - 2002-01-27 23:16:10
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions In directory usw-pr-cvs1:/tmp/cvs-serv7719 Modified Files: SessionCookie.java Log Message: GC, enableGC, disableGC, createSnapshot methods added. Index: SessionCookie.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/SessionCookie.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** SessionCookie.java 2001/10/14 22:17:11 1.1.1.1 --- SessionCookie.java 2002/01/27 23:16:06 1.2 *************** *** 50,57 **** --- 50,80 ---- public void makeCurrent(); + /** + * Creates snapshot of the session. + */ + public void createSnapshot(); + + /** + * Forces GC in the session. + */ + public void gc(); + + /** + * Enables GC in the session. + */ + public void enableGC(); + + /** + * Disables GC in the session. + */ + public void disableGC(); + } /* * $Log$ + * Revision 1.2 2002/01/27 23:16:06 stolis + * GC, enableGC, disableGC, createSnapshot methods added. + * * Revision 1.1.1.1 2001/10/14 22:17:11 stolis * The very first version of profiler module. |
From: Jan S. <st...@us...> - 2002-01-27 23:14:47
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions In directory usw-pr-cvs1:/tmp/cvs-serv7241 Modified Files: ContinueAction.java Log Message: Reference to wrong class removed. Index: ContinueAction.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/ContinueAction.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** ContinueAction.java 2001/10/14 22:17:22 1.1.1.1 --- ContinueAction.java 2002/01/27 23:14:45 1.2 *************** *** 45,49 **** public String getName () { ! return NbBundle.getMessage(PauseAction.class, "LBL_continueAction"); } --- 45,49 ---- public String getName () { ! return NbBundle.getMessage(ContinueAction.class, "LBL_continueAction"); } *************** *** 65,68 **** --- 65,71 ---- /* * $Log$ + * Revision 1.2 2002/01/27 23:14:45 stolis + * Reference to wrong class removed. + * * Revision 1.1.1.1 2001/10/14 22:17:22 stolis * The very first version of profiler module. |
From: Jan S. <st...@us...> - 2002-01-27 23:13:50
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes In directory usw-pr-cvs1:/tmp/cvs-serv7003 Modified Files: Bundle.properties Log Message: Localization of SnapshotNode. Index: Bundle.properties =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes/Bundle.properties,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** Bundle.properties 2001/10/14 22:18:09 1.1.1.1 --- Bundle.properties 2002/01/27 23:13:48 1.2 *************** *** 30,31 **** --- 30,41 ---- HINT_sessionCurrent=True, if this session is current. HINT_sessionRemote=True, if this session is remote. + + HINT_snapshotNode=Snapshot of some profiled process. + + HINT_snapshotTime=Creation time of the snapshot. + + HINT_snapshotName=Name of the snapshot. + + LBL_snapshotName=Name + + LBL_snapshotTime=Time |
From: Jan S. <st...@us...> - 2002-01-27 23:12:20
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes In directory usw-pr-cvs1:/tmp/cvs-serv6633 Modified Files: SessionsNode.java Log Message: Children updated to keep track of snapshots, too. Index: SessionsNode.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes/SessionsNode.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** SessionsNode.java 2001/10/14 22:18:09 1.1.1.1 --- SessionsNode.java 2002/01/27 23:12:18 1.2 *************** *** 31,34 **** --- 31,35 ---- import net.sourceforge.javaprofiler.module.data.ProfilerData; import net.sourceforge.javaprofiler.module.data.Session; + import net.sourceforge.javaprofiler.module.data.Snapshot; /** *************** *** 69,78 **** public static class SessionsChildren extends Children.Keys { ! protected Node[] createNodes(Object key) { ! return new Node[]{new SessionNode((Session)key)}; } public void update() { ! setKeys(ProfilerData.getData().sessions()); } --- 70,88 ---- public static class SessionsChildren extends Children.Keys { ! protected Node[] createNodes(Object key) { ! if (key instanceof Session) { ! // key is Session ! return new Node[]{new SessionNode((Session)key)}; ! } else { ! // key is Snapshot ! return new Node[]{new SnapshotNode((Snapshot)key)}; ! } } public void update() { ! ProfilerData data=ProfilerData.getData(); ! Collection keySet=data.sessions(); ! keySet.addAll(data.snapshots()); ! setKeys(keySet); } *************** *** 83,86 **** --- 93,99 ---- /* * $Log$ + * Revision 1.2 2002/01/27 23:12:18 stolis + * Children updated to keep track of snapshots, too. + * * Revision 1.1.1.1 2001/10/14 22:18:09 stolis * The very first version of profiler module. |