Auto status change to "Under Review"
@@ -56,7 +56,7 namespace Implab.Diagnostics.Interactive | |||
|
56 | 56 | if (m_queue.TryDequeue(out item)) { |
|
57 | 57 | Interlocked.Decrement(ref m_queueLength); |
|
58 | 58 | |
|
59 |
m_syncGuiThread. |
|
|
59 | m_syncGuiThread.Post(x => m_form.AddTraceEvent(item),null); | |
|
60 | 60 | } else { |
|
61 | 61 | m_queueEvent.WaitOne(); |
|
62 | 62 | } |
@@ -113,7 +113,8 namespace Implab.Diagnostics.Interactive | |||
|
113 | 113 | Message = entry.ToString(), |
|
114 | 114 | Thread = args.ThreadId, |
|
115 | 115 | Channel = args.Channel.ToString(), |
|
116 | Timestamp = Environment.TickCount | |
|
116 | Timestamp = Environment.TickCount, | |
|
117 | TimeDelta = args.OperationTimeOffset | |
|
117 | 118 | }; |
|
118 | 119 | |
|
119 | 120 | Enqueue(item); |
@@ -23,13 +23,14 | |||
|
23 | 23 | /// the contents of this method with the code editor. |
|
24 | 24 | /// </summary> |
|
25 | 25 | private void InitializeComponent() { |
|
26 | this.components = new System.ComponentModel.Container(); | |
|
27 | 26 | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
28 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle |
|
|
27 | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); | |
|
29 | 28 | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
29 | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); | |
|
30 | 30 | this.eventsDataGrid = new System.Windows.Forms.DataGridView(); |
|
31 |
this.traceViewItemBindingSource = new System.Windows.Forms.BindingSource( |
|
|
31 | this.traceViewItemBindingSource = new System.Windows.Forms.BindingSource(); | |
|
32 | 32 | this.threadDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
33 | this.TimeDelta = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |
|
33 | 34 | this.Channel = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
34 | 35 | this.messageDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
35 | 36 | ((System.ComponentModel.ISupportInitialize)(this.eventsDataGrid)).BeginInit(); |
@@ -56,20 +57,22 | |||
|
56 | 57 | this.eventsDataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
|
57 | 58 | this.eventsDataGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
|
58 | 59 | this.threadDataGridViewTextBoxColumn, |
|
60 | this.TimeDelta, | |
|
59 | 61 | this.Channel, |
|
60 | 62 | this.messageDataGridViewTextBoxColumn}); |
|
61 | 63 | this.eventsDataGrid.DataSource = this.traceViewItemBindingSource; |
|
62 |
dataGridViewCellStyle |
|
|
63 |
dataGridViewCellStyle |
|
|
64 |
dataGridViewCellStyle |
|
|
65 |
dataGridViewCellStyle |
|
|
66 |
dataGridViewCellStyle |
|
|
67 |
dataGridViewCellStyle |
|
|
68 |
dataGridViewCellStyle |
|
|
69 |
this.eventsDataGrid.DefaultCellStyle = dataGridViewCellStyle |
|
|
64 | dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; | |
|
65 | dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window; | |
|
66 | dataGridViewCellStyle4.Font = new System.Drawing.Font("Lucida Console", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); | |
|
67 | dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.ControlText; | |
|
68 | dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; | |
|
69 | dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; | |
|
70 | dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False; | |
|
71 | this.eventsDataGrid.DefaultCellStyle = dataGridViewCellStyle4; | |
|
70 | 72 | this.eventsDataGrid.Location = new System.Drawing.Point(12, 12); |
|
71 | 73 | this.eventsDataGrid.Name = "eventsDataGrid"; |
|
72 | 74 | this.eventsDataGrid.ReadOnly = true; |
|
75 | this.eventsDataGrid.RowHeadersVisible = false; | |
|
73 | 76 | this.eventsDataGrid.RowHeadersWidth = 17; |
|
74 | 77 | this.eventsDataGrid.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.False; |
|
75 | 78 | this.eventsDataGrid.Size = new System.Drawing.Size(939, 480); |
@@ -82,31 +85,43 | |||
|
82 | 85 | // |
|
83 | 86 | // threadDataGridViewTextBoxColumn |
|
84 | 87 | // |
|
85 |
this.threadDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells |
|
|
88 | this.threadDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; | |
|
86 | 89 | this.threadDataGridViewTextBoxColumn.DataPropertyName = "Thread"; |
|
87 | 90 | this.threadDataGridViewTextBoxColumn.HeaderText = "TID"; |
|
88 | 91 | this.threadDataGridViewTextBoxColumn.Name = "threadDataGridViewTextBoxColumn"; |
|
89 | 92 | this.threadDataGridViewTextBoxColumn.ReadOnly = true; |
|
90 |
this.threadDataGridViewTextBoxColumn. |
|
|
93 | this.threadDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
|
94 | this.threadDataGridViewTextBoxColumn.Width = 32; | |
|
95 | // | |
|
96 | // TimeDelta | |
|
97 | // | |
|
98 | this.TimeDelta.DataPropertyName = "TimeDelta"; | |
|
99 | dataGridViewCellStyle2.Format = "\'+\' 0 \'ms\'"; | |
|
100 | dataGridViewCellStyle2.NullValue = null; | |
|
101 | this.TimeDelta.DefaultCellStyle = dataGridViewCellStyle2; | |
|
102 | this.TimeDelta.HeaderText = "TimeDelta"; | |
|
103 | this.TimeDelta.Name = "TimeDelta"; | |
|
104 | this.TimeDelta.ReadOnly = true; | |
|
105 | this.TimeDelta.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
|
91 | 106 | // |
|
92 | 107 | // Channel |
|
93 | 108 | // |
|
94 | this.Channel.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells; | |
|
95 | 109 | this.Channel.DataPropertyName = "Channel"; |
|
96 | 110 | this.Channel.HeaderText = "Channel"; |
|
97 | 111 | this.Channel.Name = "Channel"; |
|
98 | 112 | this.Channel.ReadOnly = true; |
|
99 | this.Channel.Width = 79; | |
|
113 | this.Channel.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
|
100 | 114 | // |
|
101 | 115 | // messageDataGridViewTextBoxColumn |
|
102 | 116 | // |
|
103 | 117 | this.messageDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; |
|
104 | 118 | this.messageDataGridViewTextBoxColumn.DataPropertyName = "FormattedMessage"; |
|
105 |
dataGridViewCellStyle |
|
|
106 |
this.messageDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle |
|
|
119 | dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; | |
|
120 | this.messageDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3; | |
|
107 | 121 | this.messageDataGridViewTextBoxColumn.HeaderText = "Message"; |
|
108 | 122 | this.messageDataGridViewTextBoxColumn.Name = "messageDataGridViewTextBoxColumn"; |
|
109 | 123 | this.messageDataGridViewTextBoxColumn.ReadOnly = true; |
|
124 | this.messageDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; | |
|
110 | 125 | // |
|
111 | 126 | // TraceForm |
|
112 | 127 | // |
@@ -127,8 +142,8 | |||
|
127 | 142 | private System.Windows.Forms.DataGridView eventsDataGrid; |
|
128 | 143 | private System.Windows.Forms.BindingSource traceViewItemBindingSource; |
|
129 | 144 | private System.Windows.Forms.DataGridViewTextBoxColumn threadDataGridViewTextBoxColumn; |
|
145 | private System.Windows.Forms.DataGridViewTextBoxColumn TimeDelta; | |
|
130 | 146 | private System.Windows.Forms.DataGridViewTextBoxColumn Channel; |
|
131 | 147 | private System.Windows.Forms.DataGridViewTextBoxColumn messageDataGridViewTextBoxColumn; |
|
132 | ||
|
133 | 148 | } |
|
134 | 149 | } No newline at end of file |
@@ -117,6 +117,9 | |||
|
117 | 117 | <resheader name="writer"> |
|
118 | 118 | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|
119 | 119 | </resheader> |
|
120 | <metadata name="TimeDelta.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
|
121 | <value>True</value> | |
|
122 | </metadata> | |
|
120 | 123 | <metadata name="Channel.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
121 | 124 | <value>True</value> |
|
122 | 125 | </metadata> |
General Comments 3
ok, latest stable version should be in default
You need to be logged in to leave comments.
Login now