Description
Sets the number of seconds you want to elapse between heap operations (for example, malloc, free, HeapAlloc) before the next late detect scan. By default, Purify performs a late detect scan after every 200 heap operations or if 10 seconds has elapsed between the currently active heap operation and the last heap operation, whichever comes first.
Syntax
int PurifySetLateDetectScanInterval(int seconds)
seconds |
The number of seconds elapsed between heap operations. (For example, if you specify 20 seconds Purify checks to see if 20 seconds has elapsed between the last heap operation and the current heap operation. If 20 seconds has elapsed, Purify performs a late detect scan.) |
Returns
n |
Where n is the interval value previously in effect. |
Notes
§ When Purify discovers errors from a late detect scan, it generates Late Detect Array Bounds Write (ABWL) or Late Detect Free Memory Write (FMWL) messages in the Error View.
§ To specify the number of heap operations you want the program to perform, use PurifySetLateDetectScanCounter.
§ This function is especially useful when you are using minimally instrumented modules.
§ You can also specify this information in Late detect scan interval in the Advanced tab in the Purify settings dialog boxes.
§ Late detect scans can impact run-time performance, depending on how often Purify performs the scan and how many blocks are allocated when Purify performs the scan.
(C) Copyright IBM Corporation 1992, 2010.