Ejemplo n.º 1
0
 // Token: 0x06000D60 RID: 3424 RVA: 0x000385AA File Offset: 0x000367AA
 public FileSystemPerformanceTracker(string marker, IOCostStream ioCostStream, IPerformanceDataLogger logger)
 {
     if (string.IsNullOrEmpty(marker))
     {
         throw new ArgumentNullException("marker");
     }
     if (ioCostStream == null)
     {
         throw new ArgumentNullException("ioCostStream");
     }
     this.marker       = marker;
     this.ioCostStream = ioCostStream;
     this.logger       = logger;
 }
Ejemplo n.º 2
0
 public override void Close()
 {
     base.Close();
     if (IOCostStream.Tracer.IsTraceEnabled(TraceType.DebugTrace))
     {
         IOCostStream.Tracer.TraceDebug((long)this.GetHashCode(), "IOCostStream: time spent writing: {0}ms, time spent reading: {1}ms. Bytes read: {2} bytes, bytes written: {3} bytes. File: {4}", new object[]
         {
             this.writing.Elapsed.TotalMilliseconds,
             this.reading.Elapsed.TotalMilliseconds,
             this.BytesRead,
             this.BytesWritten,
             IOCostStream.GetBaseStreamFileName(base.InnerStream)
         });
     }
 }