Space Engineers
Classes | Static Public Member Functions | Static Public Attributes | Properties | List of all members
VRage.MySimpleProfiler Class Reference

A simple performance profiler intended to show players information about which area of the game is slowing it down More...

Classes

class  MySimpleProfilingBlock
 
class  PerformanceWarning
 

Static Public Member Functions

static void Init ()
 Special settings for profiling blocks should be set here More...
 
static void Begin (string key)
 Begin new profiling block More...
 
static void End (string key)
 End profiling block More...
 
static void BeginGPUBlock (string key)
 Set which GPU profiling block is going to receive timing next More...
 
static void EndGPUBlock (MyTimeSpan time)
 Log timing of currently set GPU block More...
 
static void Commit ()
 Check performance and reset time More...
 
static void SetBlockSettings (string key, int thresholdFrame=100, int thresholdSecond=10, bool gpu=false, MySimpleProfilingBlock.ProfilingBlockType type=MySimpleProfilingBlock.ProfilingBlockType.BLOCK)
 Set special settings for a profiling block More...
 
static void ShowServerPerformanceWarning (string key)
 Show performance warning received from server More...
 

Static Public Attributes

static Action< MySimpleProfilingBlockShowPerformanceWarning
 

Properties

static Dictionary< string, PerformanceWarningCurrentWarnings [get]
 

Detailed Description

A simple performance profiler intended to show players information about which area of the game is slowing it down

Definition at line 16 of file MySimpleProfiler.cs.

Member Function Documentation

static void VRage.MySimpleProfiler.Begin ( string  key)
inlinestatic

Begin new profiling block

Definition at line 116 of file MySimpleProfiler.cs.

static void VRage.MySimpleProfiler.BeginGPUBlock ( string  key)
inlinestatic

Set which GPU profiling block is going to receive timing next

Definition at line 159 of file MySimpleProfiler.cs.

static void VRage.MySimpleProfiler.Commit ( )
inlinestatic

Check performance and reset time

Definition at line 189 of file MySimpleProfiler.cs.

static void VRage.MySimpleProfiler.End ( string  key)
inlinestatic

End profiling block

Definition at line 136 of file MySimpleProfiler.cs.

static void VRage.MySimpleProfiler.EndGPUBlock ( MyTimeSpan  time)
inlinestatic

Log timing of currently set GPU block

Definition at line 174 of file MySimpleProfiler.cs.

static void VRage.MySimpleProfiler.Init ( )
inlinestatic

Special settings for profiling blocks should be set here

Definition at line 89 of file MySimpleProfiler.cs.

static void VRage.MySimpleProfiler.SetBlockSettings ( string  key,
int  thresholdFrame = 100,
int  thresholdSecond = 10,
bool  gpu = false,
MySimpleProfilingBlock.ProfilingBlockType  type = MySimpleProfilingBlock.ProfilingBlockType.BLOCK 
)
inlinestatic

Set special settings for a profiling block

Definition at line 227 of file MySimpleProfiler.cs.

static void VRage.MySimpleProfiler.ShowServerPerformanceWarning ( string  key)
inlinestatic

Show performance warning received from server

Definition at line 287 of file MySimpleProfiler.cs.

Member Data Documentation

Action<MySimpleProfilingBlock> VRage.MySimpleProfiler.ShowPerformanceWarning
static

Definition at line 79 of file MySimpleProfiler.cs.

Property Documentation

Dictionary<string, PerformanceWarning> VRage.MySimpleProfiler.CurrentWarnings
staticget

Definition at line 82 of file MySimpleProfiler.cs.


The documentation for this class was generated from the following file: