Visual Studio 2010 中的探查器非常棒,但我看不到仪器探查器中报告的时间结果的单位。结果表只是数字,我在 UI 中找不到可以设置的任何位置单位(例如 AQTime 中的)。
我已通读“了解仪器数据”部分,但它只是使用时间来解释数字。 (“执行所花费的总时间...”)
有谁知道使用什么单位(毫秒、微秒、滴答声等)?我猜是毫秒,但我不能 100% 确定。
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).
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.
发布评论
评论(2)
我发现结果表的列标题上有一个工具提示,其中指出“此函数花费的时间(毫秒)”,这证实了它确实是毫秒。
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.
时间以毫秒 (msec) 或处理器周期 (ticks) 为单位。
根据 MSDN 文档(它参考vs2008但还是一样):
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):