jvmti - getThreadCpuTime

hi,

I'm a student from the university of catania and I'm trying to build a little vm monitor application. My first target is to get some informations about the use of cpu for all the threads running in the virtual machine.

I'm using JVMTI library and I've built a little agent but I get some troubles. It seems that the jlong value returned by the getThreadCpuTime function is always the same in each loop even if the state of my test-thread is always running... so it's impossible for me to calculate time spent by each thread in a loop period. Can you help me?

[586 byte] By [skioppettoa] at [2007-10-3 5:52:06]
# 1
Which platform are you using, Windows?-kto
kellyohaira at 2007-7-15 0:00:44 > top of Java-index,Core,Monitoring & Management...
# 2
Your agent code has a couple of errors.Please, see my reply at the link: http://forum.java.sun.com/thread.jspa?threadID=771560&tstart=0Regards,Serguei
ss45998a at 2007-7-15 0:00:44 > top of Java-index,Core,Monitoring & Management...