DA0008: Few samples collected
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
Item | Value |
---|---|
Rule Id | DA0008 |
Category | Profiling Tools Usage |
Profiling method | Sampling |
Message | Only just a few samples were collected. Consider a longer run or faster sampling rate for more significant results. |
Rule type | Information |
Cause
Just a few samples were collected in the profiling run.
Rule description
When the sampling method is used, you should collect a statistically significant number of samples to make sure that the data represent actual program behavior. To minimize sampling errors, you should try to collect at least 1000 samples of program instruction execution behavior. If you do not collect enough samples, you can be misled when you analyze the profiling data.
How to fix violations
Consider a profiling a longer run of the application or using a faster sampling rate to obtain statistically significant results. For information about how to change the sampling rate in the Visual Studio IDE, see How to: Choose sampling events. For more information about how to change the sampling rate when you use the Profiling Tools command line, see Timer in the VSPerfCmd reference.