I was profiling a big application programmed in.Net C# with dotTrace sampling mode and realized that there was an important difference of times between stopwatch measurement vs. dotTrace Sampling profiling. For example, if I measure only with the stopwatch, scenario lasts 78 seconds; however if I measure time when Sampling mode profiling is active, it lasts 87 seconds(I know there may be overheads like 2%-3%, but I got more than 10%). The scenario includes a file operation and some logical operations in total.
I also tried different dotTrace versions like 5.5.6 - 10 and 2016 versions, and the same results came up.
All measurements were made in same circumstances, and there was no different application or background service running.
Is there anyone got the same problem and an obvious reason or solution for this situation?
Thank for any help.