private void AddBenchStats(StringBuilder log) { log.AppendLine(">> Leveldb Bench"); BackendPerformanceSnapshot snapShot = this.performanceCounter.Snapshot(); if (this.latestPerformanceSnapShot == null) { log.AppendLine(snapShot.ToString()); } else { log.AppendLine((snapShot - this.latestPerformanceSnapShot).ToString()); } this.latestPerformanceSnapShot = snapShot; }
private void AddBenchStats(StringBuilder log) { this.logger.LogTrace("()"); log.AppendLine("======DBreezeCoinView Bench======"); BackendPerformanceSnapshot snapShot = this.performanceCounter.Snapshot(); if (this.latestPerformanceSnapShot == null) { log.AppendLine(snapShot.ToString()); } else { log.AppendLine((snapShot - this.latestPerformanceSnapShot).ToString()); } this.latestPerformanceSnapShot = snapShot; this.logger.LogTrace("(-)"); }