Part of MyRenderProfiler, this is per-thread profiler
More...
|
| MyProfiler (bool memoryProfiling, string name, string axisName) |
|
void | SetNewLevelLimit (int newLevelLimit) |
|
HistoryLock | LockHistory (out int lastValidFrame) |
|
void | CommitFrame () |
| Adds current frame to history and clear it Returns number of calls this frame More...
|
|
void | ClearFrame () |
| Clears current frame. More...
|
|
void | Reset () |
|
void | InitMemoryHack (string name) |
|
void | StartBlock (string name, string memberName, int line, string file, int forceOrder=int.MaxValue) |
|
void | EndBlock (string member, int line, string file, MyTimeSpan?customTime=null, float customValue=0, string timeFormat=null, string valueFormat=null, string callFormat=null) |
|
void | ProfileCustomValue (string name, string member, int line, string file, float value, MyTimeSpan?customTime, string timeFormat, string valueFormat, string callFormat=null) |
|
StringBuilder | Dump () |
|
MyProfilerObjectBuilderInfo | GetObjectBuilderInfo () |
|
void | Init (MyProfilerObjectBuilderInfo data) |
|
Part of MyRenderProfiler, this is per-thread profiler
Definition at line 22 of file MyProfiler.cs.
VRage.Profiler.MyProfiler.MyProfiler |
( |
bool |
memoryProfiling, |
|
|
string |
name, |
|
|
string |
axisName |
|
) |
| |
|
inline |
void VRage.Profiler.MyProfiler.ClearFrame |
( |
| ) |
|
|
inline |
void VRage.Profiler.MyProfiler.CommitFrame |
( |
| ) |
|
|
inline |
Adds current frame to history and clear it Returns number of calls this frame
Definition at line 190 of file MyProfiler.cs.
static MyProfilerBlock VRage.Profiler.MyProfiler.CreateExternalBlock |
( |
string |
name, |
|
|
int |
blockId |
|
) |
| |
|
inlinestatic |
StringBuilder VRage.Profiler.MyProfiler.Dump |
( |
| ) |
|
|
inline |
void VRage.Profiler.MyProfiler.EndBlock |
( |
string |
member, |
|
|
int |
line, |
|
|
string |
file, |
|
|
MyTimeSpan? |
customTime = null , |
|
|
float |
customValue = 0 , |
|
|
string |
timeFormat = null , |
|
|
string |
valueFormat = null , |
|
|
string |
callFormat = null |
|
) |
| |
|
inline |
void VRage.Profiler.MyProfiler.InitMemoryHack |
( |
string |
name | ) |
|
|
inline |
HistoryLock VRage.Profiler.MyProfiler.LockHistory |
( |
out int |
lastValidFrame | ) |
|
|
inline |
void VRage.Profiler.MyProfiler.ProfileCustomValue |
( |
string |
name, |
|
|
string |
member, |
|
|
int |
line, |
|
|
string |
file, |
|
|
float |
value, |
|
|
MyTimeSpan? |
customTime, |
|
|
string |
timeFormat, |
|
|
string |
valueFormat, |
|
|
string |
callFormat = null |
|
) |
| |
|
inline |
void VRage.Profiler.MyProfiler.Reset |
( |
| ) |
|
|
inline |
void VRage.Profiler.MyProfiler.SetNewLevelLimit |
( |
int |
newLevelLimit | ) |
|
|
inline |
void VRage.Profiler.MyProfiler.StartBlock |
( |
string |
name, |
|
|
string |
memberName, |
|
|
int |
line, |
|
|
string |
file, |
|
|
int |
forceOrder = int.MaxValue |
|
) |
| |
|
inline |
bool VRage.Profiler.MyProfiler.AutoCommit = true |
Enable for background workers. It will automatically commit after top level profiling block is closed
Definition at line 78 of file MyProfiler.cs.
bool VRage.Profiler.MyProfiler.EnableAsserts = true |
|
static |
readonly int VRage.Profiler.MyProfiler.MAX_FRAMES = 1024 |
|
static |
readonly bool VRage.Profiler.MyProfiler.MemoryProfiling |
readonly Thread VRage.Profiler.MyProfiler.OwnerThread |
readonly Stopwatch VRage.Profiler.MyProfiler.Stopwatch = new Stopwatch() |
int [] VRage.Profiler.MyProfiler.TotalCalls = new int[MAX_FRAMES] |
readonly int VRage.Profiler.MyProfiler.UPDATE_WINDOW = 16 |
|
static |
string VRage.Profiler.MyProfiler.AxisName |
|
get |
string VRage.Profiler.MyProfiler.DisplayedName |
|
get |
int VRage.Profiler.MyProfiler.LastFrameIndexDebug |
|
get |
int VRage.Profiler.MyProfiler.LevelLimit |
|
get |
The documentation for this class was generated from the following file: