C# Class KEngine.Profiler

显示文件 Open project: mr-kelly/KEngine

Public Properties

Property Type Description
bEnable bool

Public Methods

Method Description
BeginSample ( string strName ) : void
BeginWatch ( Enum emKey ) : void

BeginWatch(string)的任意枚举版

BeginWatch ( string key ) : void

使用Stopwatch, debug模式下无行为

EndSample ( ) : void
EndWatch ( Enum emKey ) : void

EndWatch的任意枚举版

EndWatch ( string key, string name = null ) : void

结束性能监测,输出监测的时间消耗

Method Details

BeginSample() public static method

public static BeginSample ( string strName ) : void
strName string
return void

BeginWatch() public static method

BeginWatch(string)的任意枚举版
public static BeginWatch ( Enum emKey ) : void
emKey System.Enum
return void

BeginWatch() public static method

使用Stopwatch, debug模式下无行为
public static BeginWatch ( string key ) : void
key string
return void

EndSample() public static method

public static EndSample ( ) : void
return void

EndWatch() public static method

EndWatch的任意枚举版
public static EndWatch ( Enum emKey ) : void
emKey System.Enum
return void

EndWatch() public static method

结束性能监测,输出监测的时间消耗
public static EndWatch ( string key, string name = null ) : void
key string
name string
return void

Property Details

bEnable public_oe static_oe property

public static bool bEnable
return bool