Метод | Описание | |
---|---|---|
Dispose ( ) : void | ||
Initialize ( ) : void |
Step 1: Initialize the run. For example, initialize the performance counters.
|
|
Record ( ) : void |
Step 4: Now let us record the sampling data we just collected for this run, and aggregate the results if necessary.
|
|
Run ( ) : void |
This is the starting point.
|
|
RunBase ( |
||
RunTest ( ) : void |
Step 2: Run the test by scheduling multiple background threads to send the messages to the server.
|
|
Sample ( ) : void |
Step 3: Collect samples data at certain sampling rate ( configurable ) while the test is still running but after certain warm up time.
|
Метод | Описание | |
---|---|---|
CreateReceiver ( int connectionIndex ) : IDisposable |
Sets up the receivers for the messages. For example, it can set up the client connection and HubProxies so that in the hub cases, this can receives messages from the server. In the low level case, it can set up the subscribers for the messagebus.
|
|
Dispose ( bool disposing ) : void | ||
GetContractName ( ) : string | ||
GetPerformanceCounters ( IPerformanceCounterManager counterManager ) : IPerformanceCounter[] | ||
InitializePerformanceCounters ( ) : void |
Called by the Initialize method to initialize a default set of perf counters
|
|
RecordAggregates ( string key, long values ) : void |
Aggregate the sample data by sorting the input array and dispaly the Median/Average/Stddev for a particular measurement
|
|
Send ( int senderIndex, string source ) : Task |
Sends the messages from client to the server or inject message into connection or the message bus.
|
Метод | Описание | |
---|---|---|
Sender ( object state ) : void |
protected abstract CreateReceiver ( int connectionIndex ) : IDisposable | ||
connectionIndex | int | |
Результат | IDisposable |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Результат | void |
protected GetPerformanceCounters ( IPerformanceCounterManager counterManager ) : IPerformanceCounter[] | ||
counterManager | IPerformanceCounterManager | |
Результат | IPerformanceCounter[] |
protected InitializePerformanceCounters ( ) : void | ||
Результат | void |
protected RecordAggregates ( string key, long values ) : void | ||
key | string | |
values | long | |
Результат | void |
public RunBase ( |
||
runData | ||
Результат | System |
protected abstract Send ( int senderIndex, string source ) : Task | ||
senderIndex | int | |
source | string | |
Результат | Task |