Command
Add-BenchmarkMetric
Adds a custom benchmark metric.
Syntax
Add-BenchmarkMetric
[-Name] <String>
[-ScriptBlock] <ScriptBlock>
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Example 1
Add-BenchmarkMetric -Name 'Name'Parameters
- -Name String
- Metric name.
- -ScriptBlock ScriptBlock
- Metric block.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.