Wildly inaccurate results??
ScottW
Posts: 2
I just downloaded the 14 day trial of the ants profiler and I'm getting results that appear to be wildly inaccurate.
I'm profiling a .Net 2.0 WinForms application with a C++/CLI assembly.
The profiler tells me that nearly all of my time is spent in code that works on a DataSet (time spent with children - 13 s). And the code that calls the methods in the C++/CLI assembly is just 1.2 s w/ children.
However when I profile the old-fashioned way using a high-res timer (QueryPerformanceCounter), I get 6 seconds for the C++/CLI methods and a fraction of a second for the DataSet.
What's going on here?
I'm profiling a .Net 2.0 WinForms application with a C++/CLI assembly.
The profiler tells me that nearly all of my time is spent in code that works on a DataSet (time spent with children - 13 s). And the code that calls the methods in the C++/CLI assembly is just 1.2 s w/ children.
However when I profile the old-fashioned way using a high-res timer (QueryPerformanceCounter), I get 6 seconds for the C++/CLI methods and a fraction of a second for the DataSet.
What's going on here?
Comments
Is it possible that your other profiler (sorry -- I'm not familiar with it!) is measuring CPU time (ticks)? ANTS Profiler measures real time taken for application methods, so the times include things like waiting for user input and timers waiting to expire...