Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
GameProfilingKeys.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using SiliconStudio.Core.Diagnostics;
4 
5 namespace SiliconStudio.Paradox.Games
6 {
7  /// <summary>
8  /// Keys used for profiling the game class.
9  /// </summary>
10  public static class GameProfilingKeys
11  {
12  public static readonly ProfilingKey Game = new ProfilingKey("Game");
13 
14  /// <summary>
15  /// Profiling initialization of a Game instance.
16  /// </summary>
17  public static readonly ProfilingKey GameInitialize = new ProfilingKey(Game, "Initialize");
18 
19  /// <summary>
20  /// Profiling load content of a Game instance.
21  /// </summary>
22  public static readonly ProfilingKey GameLoadContent = new ProfilingKey(Game, "LoadContent");
23 
24  /// <summary>
25  /// Profiling initialization of a <see cref="IGameSystemBase"/>.
26  /// </summary>
27  public static readonly ProfilingKey GameSystemInitialize = new ProfilingKey(Game, "GameSystem.Initialize");
28 
29  /// <summary>
30  /// Profiling LoadContent of a <see cref="IGameSystemBase"/>.
31  /// </summary>
32  public static readonly ProfilingKey GameSystemLoadContent = new ProfilingKey(Game, "GameSystem.LoadContent");
33 
34  /// <summary>
35  /// Profiling Draw() method of a <see cref="GameBase"/>. This profiling is only used through markers published every seconds.
36  /// </summary>
37  public static readonly ProfilingKey GameDraw = new ProfilingKey(Game, "Draw");
38 
39  /// <summary>
40  /// Profiling EndDraw() method of a <see cref="GameBase"/>. This profiling is only used through markers published every seconds.
41  /// </summary>
42  public static readonly ProfilingKey GameEndDraw = new ProfilingKey(Game, "EndDraw");
43 
44  /// <summary>
45  /// Profiling Update() method of a <see cref="GameBase"/>. This profiling is only used through markers published every seconds.
46  /// </summary>
47  public static readonly ProfilingKey GameUpdate = new ProfilingKey(Game, "Update");
48 
49  /// <summary>
50  /// Profiling Draw() method of a <see cref="GameBase"/>. This profiling is only used through markers published every seconds.
51  /// </summary>
52  public static readonly ProfilingKey GameDrawFPS = new ProfilingKey(Game, "DrawFPS", ProfilingKeyFlags.Log);
53 
54  /// <summary>
55  /// Profiling Object Database initialization.
56  /// </summary>
57  public static readonly ProfilingKey ObjectDatabaseInitialize = new ProfilingKey(Game, "ObjectDatabase.Initialize");
58 
59  /// <summary>
60  /// Profiling Entity processors initialization.
61  /// </summary>
62  public static readonly ProfilingKey EntityProcessorInitialize = new ProfilingKey(Game, "EntityProcessor.Initialize");
63  }
64 }
A key to identify a specific profile.
Definition: ProfilingKey.cs:11
Keys used for profiling the game class.
Main Game class system.
Definition: Game.cs:32