profileMethod
profileMethod(m: Method; b: Boolean);
The profileMethod method of the Process class selects or deselects a method to be profiled for the target process used as the method receiver.
The target process can be any current process, including the requesting process itself or a process executing on another node.
You would usually call this method before method profiling is started for the target process using the beginMethodProfiling method with the option parameter set to two (2) or three (3), to indicate a subset of methods are to be profiled.
The m parameter is a Method object reference, which can be a JADE method or an external method. The b parameter indicates if the method is to be added to or removed from the list of nominated methods. If true, the method is added. If false, the method is removed.
You can call the method when method profiling is already in effect for the target process. Changes to the list of nominated methods take immediate effect.
It is recommended that when investigating application performance, only one of the JADE Profiler, JADE Monitor, or method profiling is used at any one time, as the results reported when any of these are combined is undefined.
The method has no effect if called to add a method that is already in the list of nominated methods. Similarly, it has no effect if removing a method that is not in the nominated list.
The list of nominated methods is retained until the removeMethodProfileInfo method is called or the target process terminates.