Table of Contents

Class GameProfilingSystem

Namespace
Stride.Profiling
Assembly
Stride.Engine.dll
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 IServiceRegistry

The service registry.

Properties

CurrentResultPage

Sets or gets the profiling result page to display.

public uint CurrentResultPage { get; set; }

Property Value

uint

FilteringMode

Sets or gets which data should be displayed on screen.

public GameProfilingResults FilteringMode { get; set; }

Property Value

GameProfilingResults

RefreshTime

Sets or gets the refreshing time of the profiling information in milliseconds.

public double RefreshTime { get; set; }

Property Value

double

RenderTarget

The render target where the profiling results should be rendered into. If null, the BackBuffer is used.

public Texture RenderTarget { get; set; }

Property Value

Texture

SortingMode

Sets or gets the way the printed information will be sorted.

public GameProfilingSorting SortingMode { get; set; }

Property Value

GameProfilingSorting

TextColor

Sets or gets the color to use when drawing the profiling system fonts.

public Color4 TextColor { get; set; }

Property Value

Color4

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 GameTime

The current timing.

EnableProfiling(bool, params ProfilingKey[])

Enables the profiling system drawing.

public void EnableProfiling(bool excludeKeys = false, params ProfilingKey[] keys)

Parameters

excludeKeys bool

If true the keys specified after are excluded from rendering, if false they will be exclusively included.

keys ProfilingKey[]

The keys to exclude or include.