From: Pavel V. <va...@us...> - 2002-07-15 21:41:01
|
Update of /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi In directory usw-pr-cvs1:/tmp/cvs-serv21377 Modified Files: Snapshot.java Log Message: Configuration class added Index: Snapshot.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/Snapshot.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Snapshot.java 2 Jul 2002 20:12:59 -0000 1.1 --- Snapshot.java 15 Jul 2002 21:40:58 -0000 1.2 *************** *** 31,34 **** --- 31,77 ---- */ public interface Snapshot extends VirtualMachineImageRef, Serializable { + + public static interface Configuration { + + //globals + /**Enables monitoring of Garbage Collector actions. */ + public void enableGCRuns( boolean enable ); + //public void enableArenas( boolean enable ); + /**Enables profiling of CPU. */ + public void enableCPU( boolean enable ); + /**Enables profiling of monitors. */ + public void enableMon( boolean enable ); + /**Enables profiling of allocations. */ + public void enableAlloc( boolean enable ); + + //roots + /** Sets which profilng modes will include distinguishing to types. + * Nowadays valid value of parameter is <code>Contstats.NONE </code>or + * <code>Contstats.ALLOC</code> + */ + public void includeTypes( int where ); + /** Sets which profilng modes will include distinguishing to thread. + * Valid value of parameter is any combination combination of <code> Contstats.CPU </code>, + * <code> Contstats.ALLOC </code> and <code> Contstats.MON </code> + */ + public void includeThread( int where ); + /** Sets granuality for give profilng mode. + * + *@param forWhat Profiling mode(s), combination of <code> Contstats.CPU </code>, + * <code> Contstats.ALLOC </code> and <code> Contstats.MON </code> + *@param granuality Granulity if <code> Constats.METHOD </code> or + * <code> Constats.TRACE </code> + */ + public void setGranuality( int forWhat, int granuality ); + + /** Sets simple trace filter for give profilng mode. + *@param forWhat Profiling mode(s), combination of <code> Contstats.CPU </code>, + * <code> Contstats.ALLOC </code> and <code> Contstats.MON </code> + *@param value Only tracess with grater value will be inlcuded in the snapshot. + */ + public void setSimpleTraceFilter( int forWhat, int value ); //alloc, mon, cpu + + //public void setRootFilter( int rootType, Filter filter ); //Thread, type, trace, method + } /** *************** *** 57,60 **** --- 100,106 ---- /* * $Log$ + * Revision 1.2 2002/07/15 21:40:58 vachis + * Configuration class added + * * Revision 1.1 2002/07/02 20:12:59 stolis * Snapshot. |