JitInfo.GetCompilationTime(Boolean) 方法

定义

获取 JIT 编译器编译方法所用的时间。 true如果是currentThread,则此值的范围限定为当前线程;否则为全局值。

public static TimeSpan GetCompilationTime(bool currentThread = false);
static member GetCompilationTime : bool -> TimeSpan
Public Shared Function GetCompilationTime (Optional currentThread As Boolean = false) As TimeSpan

参数

currentThread
Boolean

true 返回特定于当前线程的值; false 返回全局值。 默认值为 false

返回

JIT 编译器在编译方法所用的时间量。

适用于