summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/PerformanceMonitoring/AlertEntry.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-06 00:44:24 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-06 00:44:24 -0500
commita179466e6b2800846bd425e2fe61de80d52d77bd (patch)
tree5acd41fd7a65caab01f18374f5997a6df416af82 /src/SMAPI/Framework/PerformanceMonitoring/AlertEntry.cs
parentc5be446701d4e24a03d8464e9b080ce74d158223 (diff)
downloadSMAPI-a179466e6b2800846bd425e2fe61de80d52d77bd.tar.gz
SMAPI-a179466e6b2800846bd425e2fe61de80d52d77bd.tar.bz2
SMAPI-a179466e6b2800846bd425e2fe61de80d52d77bd.zip
remove experimental performance counters
Unfortunately this impacted SMAPI's memory usage and the data was often misinterpreted by players.
Diffstat (limited to 'src/SMAPI/Framework/PerformanceMonitoring/AlertEntry.cs')
-rw-r--r--src/SMAPI/Framework/PerformanceMonitoring/AlertEntry.cs38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/SMAPI/Framework/PerformanceMonitoring/AlertEntry.cs b/src/SMAPI/Framework/PerformanceMonitoring/AlertEntry.cs
deleted file mode 100644
index d5a0b343..00000000
--- a/src/SMAPI/Framework/PerformanceMonitoring/AlertEntry.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-namespace StardewModdingAPI.Framework.PerformanceMonitoring
-{
- /// <summary>A single alert entry.</summary>
- internal readonly struct AlertEntry
- {
- /*********
- ** Accessors
- *********/
- /// <summary>The collection in which the alert occurred.</summary>
- public PerformanceCounterCollection Collection { get; }
-
- /// <summary>The actual execution time in milliseconds.</summary>
- public double ExecutionTimeMilliseconds { get; }
-
- /// <summary>The configured alert threshold in milliseconds.</summary>
- public double ThresholdMilliseconds { get; }
-
- /// <summary>The sources involved in exceeding the threshold.</summary>
- public AlertContext[] Context { get; }
-
-
- /*********
- ** Public methods
- *********/
- /// <summary>Construct an instance.</summary>
- /// <param name="collection">The collection in which the alert occurred.</param>
- /// <param name="executionTimeMilliseconds">The actual execution time in milliseconds.</param>
- /// <param name="thresholdMilliseconds">The configured alert threshold in milliseconds.</param>
- /// <param name="context">The sources involved in exceeding the threshold.</param>
- public AlertEntry(PerformanceCounterCollection collection, double executionTimeMilliseconds, double thresholdMilliseconds, AlertContext[] context)
- {
- this.Collection = collection;
- this.ExecutionTimeMilliseconds = executionTimeMilliseconds;
- this.ThresholdMilliseconds = thresholdMilliseconds;
- this.Context = context;
- }
- }
-}