The Process class now provides the following methods that enable you to get and send the method cache statistics of the executing process. (For details about displaying method cache statistics in the JADE Monitor, see "Method Cache Statistics in the JADE Monitor (NFS 64890)", later in this document.)
The getMethodCacheStatistics method, which has the following signature, retrieves information about the method cache of the executing process and stores it in the passed in JadeDynamicObject.
getMethodCacheStatistics(jdo: JadeDynamicObject input);
The JadeDynamicObject is updated to include properties that contain statistics about the method cache and string pool of the executing process.
The sendMethodCacheStatistics method, which has the following signature, programmatically requests a target process (the receiver) to send a notification containing statistics about the method cache of the target process.
sendMethodCacheStatistics() serverExecution;
The target process can be any current process, including the requesting process itself or a process executing on another node.
To retrieve the call stack information and send the notifications, the target process is activated temporarily or interrupted, after which it resumes whatever it was doing.
The sendMethodCacheStatistics method is asynchronous; that is, it does not wait until the information is received. The information is received through notifications sometime after the method is called.
The JadeProcessEvents category now provides the Process_Method_Cache_Stats_Event global constant.