Class GameProfilingSystem
public class GameProfilingSystem : GameSystemBase, IDisposable, ICollectorHolder, IGameSystemBase, IComponent, IReferencable, IUpdateable, IDrawable, IContentable
- Inheritance
-
GameProfilingSystem
- Implements
- Inherited Members
- Extension Methods
Constructors
GameProfilingSystem(IServiceRegistry)
Initializes a new instance of the GameProfilingSystem class.
public GameProfilingSystem(IServiceRegistry registry)
Parameters
registry
IServiceRegistryThe service registry.
Properties
CurrentResultPage
Sets or gets the profiling result page to display.
public uint CurrentResultPage { get; set; }
Property Value
FilteringMode
Sets or gets which data should be displayed on screen.
public GameProfilingResults FilteringMode { get; set; }
Property Value
RefreshTime
Sets or gets the refreshing time of the profiling information in milliseconds.
public double RefreshTime { get; set; }
Property Value
RenderTarget
The render target where the profiling results should be rendered into. If null, the Game.GraphicsDevice.Presenter.BackBuffer is used.
public Texture RenderTarget { get; set; }
Property Value
SortingMode
Sets or gets the way the printed information will be sorted.
public GameProfilingSorting SortingMode { get; set; }
Property Value
TextColor
Sets or gets the color to use when drawing the profiling system fonts.
public Color4 TextColor { get; set; }
Property Value
Methods
Destroy()
Disposes of object resources.
protected override void Destroy()
DisableProfiling()
Disables the profiling system drawing.
public void DisableProfiling()
Draw(GameTime)
Draws this instance.
public override void Draw(GameTime gameTime)
Parameters
gameTime
GameTimeThe current timing.
EnableProfiling(bool, params ProfilingKey[])
Enables the profiling system drawing.
public void EnableProfiling(bool excludeKeys = false, params ProfilingKey[] keys)
Parameters
excludeKeys
boolIf true the keys specified after are excluded from rendering, if false they will be exclusively included.
keys
ProfilingKey[]The keys to exclude or include.