Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: Measuring CPU, Memory Usage and I/O in Java
|
Posted: Dec 21, 2002 6:06 PM
|
|
If you want the quick 'n' dirty approach, you could do this: dynamically create a jscript file that uses WMI to get performance info, which is communicated back via a text file in the %temp% directory.
The less quick, less dirty approach would be to use JNI. The C/C++ implementation of the native stuff could either get the information from the HKEY_DYN_DATA portion of the registry, or also use WMI (using WMI from C++ is a little messier than from jscript, of course, but possible nonetheless).
|
|