Mercurial > pub > ImplabNet
comparison Implab.Diagnostics.Interactive/InteractiveListener.cs @ 214:9c32ef39b851 v2
Added the time delta column to the interactive trace listener
author | cin |
---|---|
date | Fri, 14 Apr 2017 15:57:23 +0300 |
parents | cbb0bd8fc0d1 |
children | fe5101083150 |
comparison
equal
deleted
inserted
replaced
213:9ee78a345738 | 214:9c32ef39b851 |
---|---|
54 | 54 |
55 TraceViewItem item; | 55 TraceViewItem item; |
56 if (m_queue.TryDequeue(out item)) { | 56 if (m_queue.TryDequeue(out item)) { |
57 Interlocked.Decrement(ref m_queueLength); | 57 Interlocked.Decrement(ref m_queueLength); |
58 | 58 |
59 m_syncGuiThread.Send(x => m_form.AddTraceEvent(item),null); | 59 m_syncGuiThread.Post(x => m_form.AddTraceEvent(item),null); |
60 } else { | 60 } else { |
61 m_queueEvent.WaitOne(); | 61 m_queueEvent.WaitOne(); |
62 } | 62 } |
63 } | 63 } |
64 } | 64 } |
111 var item = new TraceViewItem { | 111 var item = new TraceViewItem { |
112 Indent = args.Operation.Level, | 112 Indent = args.Operation.Level, |
113 Message = entry.ToString(), | 113 Message = entry.ToString(), |
114 Thread = args.ThreadId, | 114 Thread = args.ThreadId, |
115 Channel = args.Channel.ToString(), | 115 Channel = args.Channel.ToString(), |
116 Timestamp = Environment.TickCount | 116 Timestamp = Environment.TickCount, |
117 TimeDelta = args.OperationTimeOffset | |
117 }; | 118 }; |
118 | 119 |
119 Enqueue(item); | 120 Enqueue(item); |
120 } | 121 } |
121 } | 122 } |