src/Orleans.Core/Lifecycle/LifecycleSubject.cs
/// <summary>
/// Logs the observed performance of an <see cref="OnStop"/> call.
/// </summary>
/// <param name="stage">The stage.</param>
/// <param name="elapsed">The period of time which elapsed before <see cref="OnStop"/> completed once it was initiated.</param>
Logs the observed performance of an  call.
Logs the observed performance of an call .
protected virtual void PerfMeasureOnStop(int stage, TimeSpan elapsed)
        {
            if (this.logger != null && this.logger.IsEnabled(LogLevel.Trace))
            {
                this.logger.LogTrace(
                    (int)ErrorCode.SiloStartPerfMeasure,
                    "Stopping lifecycle stage {Stage} took {Elapsed} Milliseconds",
                    stage,
                    elapsed.TotalMilliseconds);
            }
        }
protected virtual void PerfMeasureOnStop ( int stage , TimeSpan elapsed ) { if ( this . logger != null && this . logger . IsEnabled ( LogLevel . Trace ) ) { this . logger . LogTrace ( ( int ) ErrorCode . SiloStartPerfMeasure , " " , stage , elapsed . TotalMilliseconds ) ; } }
Logs the observed performance of an  call.
Logs the observed performance of an call .
stage
int
None
elapsed
TimeSpan
The period of time which elapsed before  completed once it was initiated.
The period of time which elapsed before completed once it was initiated .