endMethodProfiling();
The endMethodProfiling method of the Process class stops method profiling for the target process used as the method receiver.
The profiling information is retained until the removeMethodProfileInfo method is called or the target process terminates.
The endMethodProfiling method has no effect if it is called when profiling is not in effect for the target process.
One process can start method profiling on a target process, and a different process can clear or end the profiling.