Interface IBenchmarkTrace
Exposed to the end-user by BenchmarkContext so they can add diagnostic messages to the output of a benchmark.
Namespace: NBench
Assembly: NBench.dll
Syntax
public interface IBenchmarkTrace
Methods
Debug(String)
Write a debug event to the NBench output
Declaration
void Debug(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message we're going to write to output. |
Error(Exception, String)
Write an error to the NBench output
Declaration
void Error(Exception ex, string message)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | ex | The System.Exception raised during the benchmark. |
System.String | message | The message we're going to write to output. |
Error(String)
Write an error to the NBench output
Declaration
void Error(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message we're going to write to output. |
Info(String)
Write a info event to the NBench output
Declaration
void Info(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message we're going to write to output. |
Warning(String)
Write a warning to the NBench output
Declaration
void Warning(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message we're going to write to output. |