Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Data.SqlClient/tests/StressTests/System.Data.StressRunner/PerfCounters.cs')
-rw-r--r--src/System.Data.SqlClient/tests/StressTests/System.Data.StressRunner/PerfCounters.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/System.Data.SqlClient/tests/StressTests/System.Data.StressRunner/PerfCounters.cs b/src/System.Data.SqlClient/tests/StressTests/System.Data.StressRunner/PerfCounters.cs
new file mode 100644
index 0000000000..3921ca1402
--- /dev/null
+++ b/src/System.Data.SqlClient/tests/StressTests/System.Data.StressRunner/PerfCounters.cs
@@ -0,0 +1,34 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+
+namespace DPStressHarness
+{
+ public class PerfCounters
+ {
+ private long _requestsCounter;
+ //private long rpsCounter;
+
+ private long _exceptionsCounter;
+ //private long epsCounter;
+
+ public PerfCounters()
+ {
+
+ }
+
+ public void IncrementRequestsCounter()
+ {
+ _requestsCounter++;
+ }
+
+ public void IncrementExceptionsCounter()
+ {
+ _exceptionsCounter++;
+ }
+ }
+}