blob: 95dc11f4845ba1ebe5d50795ac02463e7614ebd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
using System;
using System.Collections.Generic;
namespace StardewModdingAPI.Framework.PerformanceCounter
{
internal struct PeakEntry
{
/// <summary>The actual execution time in milliseconds.</summary>
public readonly double ExecutionTimeMilliseconds;
/// <summary>The DateTime when the entry occured.</summary>
public DateTime EventTime;
/// <summary>The context list, which records all sources involved in exceeding the threshold.</summary>
public readonly List<AlertContext> Context;
public PeakEntry(double executionTimeMilliseconds, DateTime eventTime, List<AlertContext> context)
{
this.ExecutionTimeMilliseconds = executionTimeMilliseconds;
this.EventTime = eventTime;
this.Context = context;
}
}
}
|