Tag: dottrace

当我对一个程序进行抽样时它是如何实现的,它实际上比不进行分析更快?

我使用DotTrace 4.5性能 发布模式下的时间: 2400000000 Basic: 00:00:08.8051103 2400000000 Five: 00:00:09.1561338 2400000000 Overload: 00:00:16.3740938 2400000000 IListtoFive: 00:00:15.5841445 在发布模式下进行性能分析的时间。 2400000000 Basic: 00:00:01.0048224 2400000000 Five: 00:00:03.5416982 2400000000 Overload: 00:00:11.8009959 2400000000 IListtoFive: 00:00:11.2568770 我的代码: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; namespace testLineIndex { class Program { static long Five(int s0, int s1, int s2, int s3, […]