-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
102 changed files
with
3,289 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,40 @@ | ||
# MeasureMap Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/). | ||
|
||
## vNext | ||
|
||
### Added | ||
- Benchmarks Trace throughput per second | ||
- Customizable Tracer for Results | ||
|
||
### Changed | ||
- Benchmarks now Trace iterartions instead of memory used | ||
- Complete redo of the trace output | ||
|
||
### Fixed | ||
|
||
## v2.0.0 | ||
### Added | ||
- Add ThreadId and Iteration to the Tracedetails | ||
- Wait for all threads to end | ||
|
||
### Changed | ||
- Changed Targetframework to netstandard2.0 | ||
- Changed from Task to full Threads | ||
- Display more infos in the traces | ||
- Use Stopwatch instead of DateTime.Now for more accuracy | ||
- Wait for all threads to end | ||
|
||
|
||
### Fixed | ||
|
||
## v1.7.0 | ||
### Added | ||
- Set the duration that a Profilersession should run for | ||
- Set a Interval to define the pace a task should be executed at | ||
|
||
### Changed | ||
- Updated .NET Versions to .NetStandard 2.1 and .NET Framework 4.8 | ||
|
||
### Fixed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
using MeasureMap.Tracers; | ||
using MeasureMap.Tracers.Metrics; | ||
|
||
namespace MeasureMap | ||
{ | ||
/// <summary> | ||
/// Extension methods for the IBenchmarkResult | ||
/// </summary> | ||
public static class BenchmarkResultExtensions | ||
{ | ||
/// <summary> | ||
/// Traces the output of a Benchmark Test | ||
/// </summary> | ||
/// <param name="result"></param> | ||
/// <returns></returns> | ||
public static void Trace(this IBenchmarkResult result) | ||
{ | ||
result.Trace(TraceOptions.Default.Tracer, TraceOptions.Default.ResultWriter, TraceOptions.Default.Clone()); | ||
} | ||
|
||
/// <summary> | ||
/// Traces the output of a Benchmark Test | ||
/// </summary> | ||
/// <param name="result"></param> | ||
/// <param name="metrics"></param> | ||
/// <returns></returns> | ||
public static void Trace(this IBenchmarkResult result, TraceMetrics metrics) | ||
{ | ||
var options = TraceOptions.Default.Clone(); | ||
options.Metrics = metrics; | ||
result.Trace(options); | ||
} | ||
|
||
/// <summary> | ||
/// Trace the output of a Benchmark Test | ||
/// </summary> | ||
/// <param name="result"></param> | ||
/// <param name="options"></param> | ||
public static void Trace(this IBenchmarkResult result, TraceOptions options) | ||
{ | ||
result.Trace(options.Tracer, options.ResultWriter, options); | ||
} | ||
|
||
/// <summary> | ||
/// Trace the output of a Benchmark Test | ||
/// </summary> | ||
/// <param name="result"></param> | ||
/// <param name="tracer"></param> | ||
public static void Trace(this IBenchmarkResult result, ITracer tracer) | ||
{ | ||
result.Trace(tracer, TraceOptions.Default.ResultWriter, TraceOptions.Default.Clone()); | ||
} | ||
|
||
/// <summary> | ||
/// Trace the output of a Benchmark Test | ||
/// </summary> | ||
/// <param name="result"></param> | ||
/// <param name="writer"></param> | ||
public static void Trace(this IBenchmarkResult result, IResultWriter writer) | ||
{ | ||
result.Trace(TraceOptions.Default.Tracer, writer, TraceOptions.Default.Clone()); | ||
} | ||
|
||
/// <summary> | ||
/// Trace the output of a Benchmark Test | ||
/// </summary> | ||
/// <param name="result"></param> | ||
/// <param name="tracer"></param> | ||
/// <param name="writer"></param> | ||
public static void Trace(this IBenchmarkResult result, ITracer tracer, IResultWriter writer) | ||
{ | ||
result.Trace(tracer, writer, TraceOptions.Default.Clone()); | ||
} | ||
|
||
/// <summary> | ||
/// Trace the output of a Benchmark Test | ||
/// </summary> | ||
/// <param name="result"></param> | ||
/// <param name="tracer"></param> | ||
/// <param name="writer"></param> | ||
/// <param name="options"></param> | ||
public static void Trace(this IBenchmarkResult result, ITracer tracer, IResultWriter writer, TraceOptions options) | ||
{ | ||
options.Metrics ??= BenchmarkTraceMetrics.GetDefaultTraceMetrics(); | ||
|
||
tracer.Trace(result, writer, options); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace MeasureMap | ||
{ | ||
/// <summary> | ||
/// Defines the redults of benchmarktests | ||
/// </summary> | ||
public interface IBenchmarkResult : IEnumerable<IProfilerResult> | ||
{ | ||
/// <summary> | ||
/// Add a result of benchmarktest | ||
/// </summary> | ||
/// <param name="name">The name of the result</param> | ||
/// <param name="result">The result</param> | ||
void Add(string name, IProfilerResult result); | ||
|
||
/// <summary> | ||
/// Gets the amount of iterations that the benchmarktests were run | ||
/// </summary> | ||
int Iterations { get; } | ||
|
||
/// <summary> | ||
/// Gets the keys collection | ||
/// </summary> | ||
IEnumerable<string> Keys { get; } | ||
|
||
/// <summary> | ||
/// Indexer for benchmarkresults | ||
/// </summary> | ||
/// <param name="key"></param> | ||
/// <returns></returns> | ||
IProfilerResult this[string key] { get; } | ||
} | ||
} |
Oops, something went wrong.