ExampleMetrics.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. namespace Terminal.Gui.Examples;
  2. /// <summary>
  3. /// Contains performance and execution metrics collected during an example's execution.
  4. /// </summary>
  5. public class ExampleMetrics
  6. {
  7. /// <summary>
  8. /// Gets or sets the time when the example started.
  9. /// </summary>
  10. public DateTime StartTime { get; set; }
  11. /// <summary>
  12. /// Gets or sets the time when initialization completed.
  13. /// </summary>
  14. public DateTime? InitializedAt { get; set; }
  15. /// <summary>
  16. /// Gets or sets a value indicating whether initialization completed successfully.
  17. /// </summary>
  18. public bool InitializedSuccessfully { get; set; }
  19. /// <summary>
  20. /// Gets or sets the number of iterations executed.
  21. /// </summary>
  22. public int IterationCount { get; set; }
  23. /// <summary>
  24. /// Gets or sets the time when shutdown began.
  25. /// </summary>
  26. public DateTime? ShutdownAt { get; set; }
  27. /// <summary>
  28. /// Gets or sets a value indicating whether shutdown completed gracefully.
  29. /// </summary>
  30. public bool ShutdownGracefully { get; set; }
  31. /// <summary>
  32. /// Gets or sets the number of times the screen was cleared.
  33. /// </summary>
  34. public int ClearedContentCount { get; set; }
  35. /// <summary>
  36. /// Gets or sets the number of times views were drawn.
  37. /// </summary>
  38. public int DrawCompleteCount { get; set; }
  39. /// <summary>
  40. /// Gets or sets the number of times views were laid out.
  41. /// </summary>
  42. public int LaidOutCount { get; set; }
  43. }