Example #1
0
        private static PerfTraceThreadContext InitializeCurrent()
        {
            var context = new PerfTraceThreadContext(Thread.CurrentThread.ManagedThreadId);

            _threads.Add(context);
            return(context);
        }
Example #2
0
 public TimerDisposable(PerfTraceThreadContext context, string eventType, string instance)
 {
     _context   = context;
     _eventType = eventType;
     _instance  = instance;
     _startUtc  = DateTime.UtcNow;
 }
 public TimerDisposable(PerfTraceThreadContext context, string eventType, string instance)
 {
     _context = context;
     _eventType = eventType;
     _instance = instance;
     _startUtc = DateTime.UtcNow;
 }
Example #4
0
 private static PerfTraceThreadContext InitializeCurrent()
 {
     var context = new PerfTraceThreadContext(Thread.CurrentThread.ManagedThreadId);
     _threads.Add(context);
     return context;
 }