Table of Contents

Class WasmGenerator

Namespace
BenchmarkDotNet.Toolchains.MonoWasm
Assembly
BenchmarkDotNet.dll
public class WasmGenerator : CsProjGenerator, IGenerator, IEquatable<CsProjGenerator>
Inheritance
WasmGenerator
Implements
Inherited Members

Constructors

WasmGenerator(string, string, string, string, bool)

public WasmGenerator(string targetFrameworkMoniker, string cliPath, string packagesPath, string customRuntimePack, bool aot)

Parameters

targetFrameworkMoniker string
cliPath string
packagesPath string
customRuntimePack string
aot bool

Methods

GenerateProject(BuildPartition, ArtifactsPaths, ILogger)

generates .csproj file with a reference to the project with benchmarks

protected override void GenerateProject(BuildPartition buildPartition, ArtifactsPaths artifactsPaths, ILogger logger)

Parameters

buildPartition BuildPartition
artifactsPaths ArtifactsPaths
logger ILogger

GenerateProjectFile(BuildPartition, ArtifactsPaths, bool, ILogger)

protected void GenerateProjectFile(BuildPartition buildPartition, ArtifactsPaths artifactsPaths, bool aot, ILogger logger)

Parameters

buildPartition BuildPartition
artifactsPaths ArtifactsPaths
aot bool
logger ILogger

GetBinariesDirectoryPath(string, string)

returns a path where executable should be found after the build (usually \bin)

protected override string GetBinariesDirectoryPath(string buildArtifactsDirectoryPath, string configuration)

Parameters

buildArtifactsDirectoryPath string
configuration string

Returns

string

GetExecutablePath(string, string)

protected override string GetExecutablePath(string binariesDirectoryPath, string programName)

Parameters

binariesDirectoryPath string
programName string

Returns

string