Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ProfilingEvent.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 System;
4 using System.Collections.Generic;
5 
6 namespace SiliconStudio.Core.Diagnostics
7 {
8  /// <summary>
9  /// A profiling event generated by <see cref="Profiler"/>.
10  /// </summary>
11  public struct ProfilingEvent
12  {
13  /// <summary>
14  /// The unique identifier.
15  /// </summary>
16  public readonly int Id;
17 
18  /// <summary>
19  /// The profile key.
20  /// </summary>
21  public readonly ProfilingKey Key;
22 
23  /// <summary>
24  /// The type of the profile.
25  /// </summary>
26  public readonly ProfilingMessageType Type;
27 
28  /// <summary>
29  /// The timestamp.
30  /// </summary>
31  public readonly long TimeStamp;
32 
33  /// <summary>
34  /// The elapsed time since Begin event.
35  /// </summary>
36  public readonly long ElapsedTime;
37 
38  /// <summary>
39  /// The text.
40  /// </summary>
41  public readonly string Text;
42 
43  /// <summary>
44  /// The attributes
45  /// </summary>
46  public readonly Dictionary<object, object> Attributes;
47 
48  /// <summary>
49  /// Initializes a new instance of the <see cref="ProfilingEvent" /> struct.
50  /// </summary>
51  /// <param name="profileId">The profile identifier.</param>
52  /// <param name="profilingKey">The profiling key.</param>
53  /// <param name="profilingType">Type of the profiling.</param>
54  /// <param name="elapsedTime">The elapsed time.</param>
55  /// <param name="text">The text.</param>
56  /// <param name="attributes">The attributes.</param>
57  public ProfilingEvent(int profileId, ProfilingKey profilingKey, ProfilingMessageType profilingType, long timeStamp, long elapsedTime, string text, Dictionary<object, object> attributes)
58  {
59  Id = profileId;
60  Key = profilingKey;
61  Type = profilingType;
62  TimeStamp = timeStamp;
63  ElapsedTime = elapsedTime;
64  Text = text;
65  Attributes = attributes;
66  }
67  }
68 }
readonly ProfilingKey Key
The profile key.
A key to identify a specific profile.
Definition: ProfilingKey.cs:11
readonly long TimeStamp
The timestamp.
readonly int Id
The unique identifier.
ProfilingEvent(int profileId, ProfilingKey profilingKey, ProfilingMessageType profilingType, long timeStamp, long elapsedTime, string text, Dictionary< object, object > attributes)
Initializes a new instance of the ProfilingEvent struct.
readonly ProfilingMessageType Type
The type of the profile.
ProfilingMessageType
Type of a profiling message.
readonly Dictionary< object, object > Attributes
The attributes
readonly long ElapsedTime
The elapsed time since Begin event.
A profiling event generated by Profiler.