Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
FrameInfo.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using SiliconStudio.Paradox.Framework.MicroThreading;
6 
7 namespace SiliconStudio.Paradox.DebugTools.DataStructures
8 {
9  public class FrameInfo
10  {
11  public uint FrameNumber { get; set; }
12  public double BeginTime { get; set; }
13  public double EndTime { get; set; }
14  public List<ThreadInfo> ThreadItems { get; private set; }
15 
16  public FrameInfo()
17  {
18  ThreadItems = new List<ThreadInfo>();
19  }
20 
22  {
23  FrameInfo duplicate = new FrameInfo();
24 
25  duplicate.FrameNumber = FrameNumber;
26  duplicate.BeginTime = BeginTime;
27  duplicate.EndTime = EndTime;
28  ThreadItems.ForEach(item => duplicate.ThreadItems.Add(item.Duplicate()));
29 
30  return duplicate;
31  }
32  }
33 }