comparison Implab/Diagnostics/TraceContext.cs @ 195:ea485487a424 v2

minor changes
author cin
date Wed, 04 May 2016 12:28:08 +0300
parents 04d4c92d0f28
children 71e543dbe65a
comparison
equal deleted inserted replaced
194:d45bdf510514 195:ea485487a424
54 54
55 public void StartLogicalOperation() { 55 public void StartLogicalOperation() {
56 StartLogicalOperation(String.Empty); 56 StartLogicalOperation(String.Empty);
57 } 57 }
58 58
59 public void EndLogicalOperation() { 59 public LogicalOperation EndLogicalOperation() {
60 var op = m_current.EndLogicalOperation(); 60 return m_current.EndLogicalOperation();
61 LogChannel<TraceEvent>.Default.LogEvent(new TraceEvent(TraceEventType.OperationCompleted, String.Format("-{0} : {1}ms",op.Name, op.Duration)));
62 } 61 }
63 62
64 public LogicalOperation DetachLogicalOperation() { 63 public LogicalOperation DetachLogicalOperation() {
65 var prev = m_current.DetachLogicalOperation(); 64 var prev = m_current.DetachLogicalOperation();
66 //LogChannel<TraceEvent>.Default.LogEvent(new TraceEvent(TraceEventType.Detach, String.Format("{0} -> {1}",prev.Name, CurrentOperation.Name))); 65 //LogChannel<TraceEvent>.Default.LogEvent(new TraceEvent(TraceEventType.Detach, String.Format("{0} -> {1}",prev.Name, CurrentOperation.Name)));