beginLockContentionStats(tableSize: Integer);
The
After recording has been initiated, you can call the
The tableSize parameter enables you to specify the maximum number of individual contended objects that can be recorded. When the first contention for an object is noted, the object is added to the table of contentions, provided that the maximum table size has not been reached. If the table has reached the maximum size, contentions for objects not found in the table are grouped together in a single entry identified by a null object identifier; that is, the class number and instance number are both set to zero (0).
As a guideline, the size of each entry is approximately 40 bytes, so 25,000 entries would consume approximately 1M byte of memory.
Only one process at a time can control the recording of lock contentions. If a process executes the
If the process that started to record lock contentions terminates without having called the