forked from dotnet/BenchmarkDotNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIEngine.cs
More file actions
46 lines (34 loc) · 1.09 KB
/
IEngine.cs
File metadata and controls
46 lines (34 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using BenchmarkDotNet.Characteristics;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Reports;
using JetBrains.Annotations;
using Perfolizer.Horology;
using NotNullAttribute = JetBrains.Annotations.NotNullAttribute;
namespace BenchmarkDotNet.Engines
{
[SuppressMessage("ReSharper", "UnusedMemberInSuper.Global")]
public interface IEngine : IDisposable
{
[NotNull]
IHost Host { get; }
void WriteLine();
void WriteLine(string line);
[NotNull]
Job TargetJob { get; }
long OperationsPerInvoke { get; }
[CanBeNull]
Func<ValueTask> GlobalSetupAction { get; }
[CanBeNull]
Func<ValueTask> GlobalCleanupAction { get; }
[NotNull]
Func<long, IClock, ValueTask<ClockSpan>> WorkloadAction { get; }
[NotNull]
Func<long, IClock, ValueTask<ClockSpan>> OverheadAction { get; }
IResolver Resolver { get; }
Measurement RunIteration(IterationData data);
RunResults Run();
}
}