Table of Contents

Class Generator

Namespace
BenchmarkDotNet.Toolchains.Roslyn
Assembly
BenchmarkDotNet.dll
public class Generator : GeneratorBase, IGenerator
Inheritance
Generator
Implements
Inherited Members

Constructors

Generator()

public Generator()

Methods

GenerateBuildScript(BuildPartition, ArtifactsPaths)

generates a script can be used when debugging compilation issues

protected override void GenerateBuildScript(BuildPartition buildPartition, ArtifactsPaths artifactsPaths)

Parameters

buildPartition BuildPartition
artifactsPaths ArtifactsPaths

GetArtifactsToCleanup(ArtifactsPaths)

returns a list of artifacts that should be removed after running the benchmarks

protected override string[] GetArtifactsToCleanup(ArtifactsPaths artifactsPaths)

Parameters

artifactsPaths ArtifactsPaths

Returns

string[]

GetBuildArtifactsDirectoryPath(BuildPartition, string)

returns a path to the folder where auto-generated project and code are going to be placed

protected override string GetBuildArtifactsDirectoryPath(BuildPartition buildPartition, string programName)

Parameters

buildPartition BuildPartition
programName string

Returns

string