enableClassAccessFrequencies

enableClassAccessFrequencies(enable: Boolean): Boolean;

The enableClassAccessFrequencies method of the Process class enables or disables the counting of accesses to classes depending on the value of the enable parameter. If the enable parameter is true, counting of accesses is enabled.

The method receiver can be any current process, including the requesting process itself or a process executing on another node.

The enableClassAccessFrequencies method returns true if the counting of accesses is already enabled for the current process and false otherwise.

Enabling counting of accesses where it is already enabled for the current process is ignored. Similarly, disabling counting of accesses where it is not enabled for the current process is ignored.

The getClassAccessFrequencies method of the System class returns access counts for the specified classes provided counting of class accesses is enabled.