Update of /cvsroot/javaprofiler/library/src/prof
In directory usw-pr-cvs1:/tmp/cvs-serv27034/src/prof
Modified Files:
prof.h prof_jniref.cpp
Log Message:
calltree
Index: prof.h
===================================================================
RCS file: /cvsroot/javaprofiler/library/src/prof/prof.h,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -r1.39 -r1.40
*** prof.h 2001/12/01 18:15:35 1.39
--- prof.h 2002/01/31 12:31:00 1.40
***************
*** 49,52 ****
--- 49,53 ----
#include "../alloc/allocGlobalRef.h"
#include "../gc/gc.h"
+ #include "../commun/buffer.h"
/** Main profiler library class. It encapsulates all used event handlers,
***************
*** 944,947 ****
--- 945,958 ----
virtual void runGC();
+
+ /** Get calltree. This method returns a calltree of given thread.
+ ** The calltree is returned in appropriate binary format. Return code
+ ** is in first 4 bytes (jint) - RC_OK (ok) or RC_BAD_OBJ_ID (bad ID).
+ **
+ ** @param threadObjId thread ID
+ ** @param b output buffer */
+
+ virtual void getCallTree( objectID threadObjId, // in (jint)
+ Buffer& b); // out
private:
Index: prof_jniref.cpp
===================================================================
RCS file: /cvsroot/javaprofiler/library/src/prof/prof_jniref.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** prof_jniref.cpp 2001/11/21 22:31:44 1.7
--- prof_jniref.cpp 2002/01/31 12:31:00 1.8
***************
*** 66,70 ****
if (r) {
jniGlobalRefs.remove(r);
! delete r;
}
}
--- 66,70 ----
if (r) {
jniGlobalRefs.remove(r);
! r->destroy();
}
}
***************
*** 98,102 ****
if (r) {
jniWeakGlobalRefs.remove(r);
! delete r;
}
}
--- 98,102 ----
if (r) {
jniWeakGlobalRefs.remove(r);
! r->destroy();
}
}
|