Skip to content

Commit

Permalink
MemoryDiagnoser handles IterationSetup and Cleanup since dotnet#606, …
Browse files Browse the repository at this point in the history
…removing old info from docs
  • Loading branch information
adamsitnik authored and alinasmirnova committed Sep 22, 2018
1 parent 5b75608 commit 038f05b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 43 deletions.
3 changes: 0 additions & 3 deletions docs/articles/samples/IntroSetupCleanupIteration.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ However, if you are writing a macrobenchmark (e.g. a benchmark which takes at le
BenchmarkDotNet doesn't support setup/cleanup method for a single method invocation (*an operation*),
but you can perform only one operation per iteration.
It's recommended to use `RunStrategy.Monitoring` for such cases.
Be careful: if you allocate any objects in
the [`[IterationSetup]`](xref:BenchmarkDotNet.Attributes.IterationSetupAttribute) method,
the MemoryDiagnoser results can also be spoiled.

A method which is marked by the [`[IterationCleanup]`](xref:BenchmarkDotNet.Attributes.IterationCleanupAttribute)
attribute will be executed only once *after each an iteration*.
Expand Down
39 changes: 0 additions & 39 deletions src/BenchmarkDotNet/Analysers/IterationSetupCleanupAnalyser.cs

This file was deleted.

1 change: 0 additions & 1 deletion src/BenchmarkDotNet/Configs/DefaultConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public IEnumerable<IAnalyser> GetAnalysers()
yield return EnvironmentAnalyser.Default;
yield return OutliersAnalyser.Default;
yield return MinIterationTimeAnalyser.Default;
yield return IterationSetupCleanupAnalyser.Default;
yield return MultimodalDistributionAnalyzer.Default;
yield return RuntimeErrorAnalyser.Default;
}
Expand Down

0 comments on commit 038f05b

Please sign in to comment.