summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/PerformanceCounter/AlertEntry.cs
blob: 284af1cea3e1647083d6207c4a70ca21d07dab45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System.Collections.Generic;

namespace StardewModdingAPI.Framework.PerformanceCounter
{
    internal struct AlertEntry
    {
        public PerformanceCounterCollection Collection;
        public double ExecutionTimeMilliseconds;
        public double Threshold;
        public List<AlertContext> Context;

        public AlertEntry(PerformanceCounterCollection collection, double executionTimeMilliseconds, double threshold, List<AlertContext> context)
        {
            this.Collection = collection;
            this.ExecutionTimeMilliseconds = executionTimeMilliseconds;
            this.Threshold = threshold;
            this.Context = context;
        }
    }
}