From: Marek P. <ma...@us...> - 2001-11-28 00:02:43
|
Update of /cvsroot/javaprofiler/library/src/commun In directory usw-pr-cvs1:/tmp/cvs-serv24296/src/commun Modified Files: iprof.cpp iprof.h Log Message: changes in interface enableGC(), disableGC(), runGC() added Index: iprof.cpp =================================================================== RCS file: /cvsroot/javaprofiler/library/src/commun/iprof.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** iprof.cpp 2001/11/21 22:31:42 1.10 --- iprof.cpp 2001/11/28 00:02:40 1.11 *************** *** 58,61 **** --- 58,64 ---- _func[F_GET_ALL] = &IProf::_getAll; _func[F_GET_CHANGED] = &IProf::_getChanged; + _func[F_ENABLE_GC] = &IProf::_enableGC; + _func[F_DISABLE_GC] = &IProf::_disableGC; + _func[F_RUN_GC] = &IProf::_runGC; if( setup.com.communType == Setup::COMMUN_SOCKET) *************** *** 248,250 **** --- 251,271 ---- void* buf2 = &b; seq.forEach( sToBin, &buf2); + } + + void IProf::_enableGC( Buffer& b) { + + enableGC(); + b.clear(); + } + + void IProf::_disableGC( Buffer& b) { + + disableGC(); + b.clear(); + } + + void IProf::_runGC( Buffer& b) { + + runGC(); + b.clear(); } Index: iprof.h =================================================================== RCS file: /cvsroot/javaprofiler/library/src/commun/iprof.h,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** iprof.h 2001/11/21 22:31:42 1.13 --- iprof.h 2001/11/28 00:02:40 1.14 *************** *** 67,71 **** /// number of methods of the interface ! FUNC_COUNT = 9 }; --- 67,71 ---- /// number of methods of the interface ! FUNC_COUNT = 12 }; *************** *** 142,146 **** /// getChanged() ! F_GET_CHANGED = 8 }; --- 142,155 ---- /// getChanged() ! F_GET_CHANGED = 8, ! ! /// enableGC() ! F_ENABLE_GC = 9, ! ! /// disableGC() ! F_DISABLE_GC = 10, ! ! /// runGC() ! F_RUN_GC = 11 }; *************** *** 550,553 **** --- 559,595 ---- void _getChanged( Buffer& b) { _getAllOrChanged( 0, b);} + /** Enable Java garbage collector. This method processes + ** in/out buffer, gains arguments and calls enableGC() + ** method. When finished, in 'b' there is binary output + ** of called method. + ** + ** @param b in/out buffer + ** + ** @see disableGC(), runGC() */ + + void _enableGC( Buffer& b); + + /** Disable Java garbage collector. This method processes + ** in/out buffer, gains arguments and calls disableGC() + ** method. When finished, in 'b' there is binary output + ** of called method. + ** + ** @param b in/out buffer + ** + ** @see enableGC(), runGC() */ + + void _disableGC( Buffer& b); + + /** Run Java garbage collector explicitly. This method + ** processes in/out buffer, gains arguments and calls + ** runGC() method. When finished, in 'b' there is binary + ** output of called method. + ** + ** @param b in/out buffer + ** + ** @see enableGC(), disableGC() */ + + void _runGC( Buffer& b); + private: *************** *** 633,636 **** --- 675,699 ---- jint optionalArg, // in (jint) seqID& seq) = 0; // out + + /** Enable Java garbage collector. An abstract method + ** implemented by Prof class. + ** + ** @see Prof::enableGC(), Prof */ + + virtual void enableGC() = 0; + + /** Disable Java garbage collector. An abstract method + ** implemented by Prof class. + ** + ** @see Prof::disableGC(), Prof */ + + virtual void disableGC() = 0; + + /** Run Java garbage collector explicitly. An abstract + ** method implemented by Prof class. + ** + ** @see Prof::runGC(), Prof */ + + virtual void runGC() = 0; private: |