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
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
buildPartitionBuildPartitionartifactsPathsArtifactsPathsloggerILogger
GenerateProjectFile(BuildPartition, ArtifactsPaths, bool, ILogger)
protected void GenerateProjectFile(BuildPartition buildPartition, ArtifactsPaths artifactsPaths, bool aot, ILogger logger)
Parameters
buildPartitionBuildPartitionartifactsPathsArtifactsPathsaotboolloggerILogger
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
Returns
GetExecutablePath(string, string)
protected override string GetExecutablePath(string binariesDirectoryPath, string programName)