diff Implab/Diagnostics/TraceLog.cs @ 92:4c0e5ef99986 v2

rewritten tracing
author cin
date Wed, 22 Oct 2014 18:37:56 +0400
parents 790e8a997d30
children ea485487a424
line wrap: on
line diff
--- a/Implab/Diagnostics/TraceLog.cs	Tue Oct 14 09:30:45 2014 +0400
+++ b/Implab/Diagnostics/TraceLog.cs	Wed Oct 22 18:37:56 2014 +0400
@@ -14,22 +14,17 @@
     public static class TraceLog {
         [Conditional("TRACE")]
         public static void StartLogicalOperation() {
-            TraceContext.Current.StartLogicalOperation();
+            TraceContext.Instance.StartLogicalOperation();
         }
 
         [Conditional("TRACE")]
         public static void StartLogicalOperation(string name) {
-            TraceContext.Current.StartLogicalOperation(name);
+            TraceContext.Instance.StartLogicalOperation(name);
         }
 
         [Conditional("TRACE")]
         public static void EndLogicalOperation() {
-            TraceContext.Current.EndLogicalOperation();
-        }
-
-        [Conditional("TRACE")]
-        public static void BindLogicalOperationToPromise(IPromise promise) {
-            TraceContext.Current.BindLogicalOperationToPromise(promise);
+            TraceContext.Instance.EndLogicalOperation();
         }
 
         [Conditional("TRACE")]