Product Information > JADE Object Manager Guide > Chapter 4 - JADE System Instrumentation and Diagnosis > ProcessbeginMethodProfiling Method

Process::beginMethodProfiling Method

 beginMethodProfiling(option: Integer);

The Process class beginMethodProfiling method starts dynamic method profiling for the receiving Process instance, which can be any current process including processes running on other nodes.

The values for the option parameter and the corresponding range of methods to be profiled are listed in the following table.

Value Profiles …
1 All called methods whether nominated or not
2 Nominated methods and their nested method calls
3 Nominated methods only

Methods are nominated using the profileMethod method of the Process class.

The following actions occur if the beginMethodProfiling method is called when profiling is already in effect for the target process.

  1. Profiling information is reset

  2. The profiling option is adjusted to match the option parameter

  3. The list of nominated methods is retained

Methods specified as serverExecution are not profiled, unless executed from server applications or in single user mode.