JitInfo.GetCompilationTime(Boolean) 方法

定义

获取 JIT 编译器在编译方法上花费的时间。 如果 currentThreadtrue,则此值的范围限定为当前线程;否则,这是全局值。

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 编译器在编译方法上花费的时间。

适用于