Isak Savo
Isak Savo

Reputation: 35904

What time unit is used in the Visual Studio 2010 instrumentation profiler?

The profiler in Visual Studio 2010 is great and all, but I can't see what unit the time results in the instrumentation profiler is reported in. The results table is just numbers and I can't find anywhere in the UI where I can set the unit (as there is in e.g. AQTime).

enter image description here

I've read through the "Understanding Instrumentation Data" section on MSDN but it just uses time to explain the numbers. ("The total time that was spent executing...")

Does anyone know what unit (milliseconds, microseconds, ticks, etc.) that is used? I'm guessing milliseconds but I'm not 100% sure.

Upvotes: 3

Views: 2056

Answers (2)

Massimiliano Peluso
Massimiliano Peluso

Reputation: 26737

The time is in milliseconds (msec) or processor cycles (ticks).

According to the MSDN docs (It refers to vs2008 but it's still the same):

The time in milliseconds (msec) or processor cycles (ticks) that was spent in the direct execution of this function, excluding time spent in child functions called by this function.

Upvotes: 1

Isak Savo
Isak Savo

Reputation: 35904

I found there's a tooltip on the column headers on the result table which states "The time spent in this function (msec)" which confirms that it is indeed milliseconds.

Tooltip has the answer

Upvotes: 6

Related Questions