void ProfSampRate(nRate286,nRate386)
When running the Microsoft Windows Profiler, this function sets the rate of code sampling.
| Parameter | Type/Description | 
| nRate286 | int Specifies the sampling rate of Profiler if the application is running with Windows in any mode other than 386 enhanced mode. The value of nRate286 ranges from 1 to 13, indicating the following sampling rates: | ||
| , | |||
| Value | Sampling Rate | ||
| 1 | 122.070 microseconds | ||
| 2 | 244.141 microseconds | ||
| 3 | 488.281 microseconds | ||
| 4 | 976.562 microseconds | ||
| 5 | 1.953125 milliseconds | ||
| 6 | 3.90625 milliseconds | ||
| 7 | 7.8125 milliseconds | ||
| 8 | 15.625 milliseconds | ||
| 9 | 31.25 milliseconds | ||
| 10 | 62.5 milliseconds | ||
| 11 | 125 milliseconds | ||
| 12 | 250 milliseconds | ||
| 13 | 500 milliseconds | ||
| nRate386 | int Specifies the sampling rate of Profiler if the application is running with Windows in 386 enhanced mode. The value of nRate386 can range from 1 to 1000, specifying the sampling rate in milliseconds. | ||
None.
The default rate is 5 (1.953125 milliseconds) for Windows in any mode other than 386 enhanced mode. The default rate is 2 milliseconds for Windows in 386 enhanced mode.
Profiler only selects the parameter appropriate for the version of Windows being used.