|
229 | 229 | <!-- ===== 7. Wait Stats categories ======================================================== --> |
230 | 230 |
|
231 | 231 | <!-- Fixed per category: the same wait type must keep the same colour across every chart and |
232 | | - legend in the app, so these are identity, not palette. Do not reuse them elsewhere. --> |
233 | | - <SolidColorBrush x:Key="WaitCategory.Unknown" Color="#8E8E93"/> |
234 | | - <SolidColorBrush x:Key="WaitCategory.CPU" Color="#00bd23"/> |
235 | | - <SolidColorBrush x:Key="WaitCategory.Worker Thread" Color="#52E3B5"/> |
236 | | - <SolidColorBrush x:Key="WaitCategory.Lock" Color="#EE5A24"/> |
237 | | - <SolidColorBrush x:Key="WaitCategory.Latch" Color="#F368E0"/> |
238 | | - <SolidColorBrush x:Key="WaitCategory.Buffer Latch" Color="#f5069e"/> |
239 | | - <SolidColorBrush x:Key="WaitCategory.Buffer IO" Color="#2d13f2"/> |
240 | | - <SolidColorBrush x:Key="WaitCategory.Compilation" Color="#A29BFE"/> |
241 | | - <SolidColorBrush x:Key="WaitCategory.SQL CLR" Color="#b8dcdc"/> |
242 | | - <SolidColorBrush x:Key="WaitCategory.Mirroring" Color="#54625f"/> |
243 | | - <SolidColorBrush x:Key="WaitCategory.Transaction" Color="#c77416"/> |
244 | | - <SolidColorBrush x:Key="WaitCategory.Preemptive" Color="#FD79A8"/> |
245 | | - <SolidColorBrush x:Key="WaitCategory.Service Broker" Color="#E17055"/> |
246 | | - <SolidColorBrush x:Key="WaitCategory.Tran Log IO" Color="#0984E3"/> |
247 | | - <SolidColorBrush x:Key="WaitCategory.Network IO" Color="#75bbf8"/> |
248 | | - <SolidColorBrush x:Key="WaitCategory.Parallelism" Color="#7B4FFF"/> |
249 | | - <SolidColorBrush x:Key="WaitCategory.Memory" Color="#FDCB6E"/> |
250 | | - <SolidColorBrush x:Key="WaitCategory.Tracing" Color="#B2BEC3"/> |
251 | | - <SolidColorBrush x:Key="WaitCategory.Full Text Search" Color="#DFE6E9"/> |
252 | | - <SolidColorBrush x:Key="WaitCategory.Other Disk IO" Color="#636E72"/> |
253 | | - <SolidColorBrush x:Key="WaitCategory.Replication" Color="#81ECEC"/> |
254 | | - <SolidColorBrush x:Key="WaitCategory.Log Rate Governor" Color="#FAB1A0"/> |
255 | | - <SolidColorBrush x:Key="WaitCategory.Others" Color="#555D66"/> |
| 232 | + legend in the app, so these are identity, not palette. Do not reuse them elsewhere. |
| 233 | +
|
| 234 | + Laid out rather than picked. Hue carries the family — greens for compute, blues for storage |
| 235 | + and network, warm for contention, grey for the buckets that mean "no information" — and |
| 236 | + WITHIN a family the categories are spaced up a lightness ladder. That second part is what |
| 237 | + makes the chart readable to a red-green colour deficiency, where the hues inside a family |
| 238 | + collapse together and lightness is all that survives. Twenty-three categories cannot all be |
| 239 | + told apart by colour alone under that condition; the ladder is what keeps neighbours in the |
| 240 | + same chart from merging, and the legend is what answers the rest. |
| 241 | +
|
| 242 | + Every colour clears 3:1 against the page background, which is the floor for a graphical |
| 243 | + object you are expected to read. Three of them used to fail it — Buffer IO sat at 2.00, |
| 244 | + a saturated blue so dark it was effectively a hole in the chart — and two pairs shared a |
| 245 | + hue outright. Nearest neighbours are now 12 apart in CIELAB with normal vision and 6 under |
| 246 | + simulated deuteranopia, with no outliers below that. |
| 247 | +
|
| 248 | + If you repaint one, check it against its family's ladder and re-measure both numbers. --> |
| 249 | + <!-- Highlight is the selection stroke, not a category: white, and it stays that way. --> |
| 250 | + <SolidColorBrush x:Key="WaitCategory.Unknown" Color="#9CA1A5"/> |
| 251 | + <SolidColorBrush x:Key="WaitCategory.CPU" Color="#3EBD50"/> |
| 252 | + <SolidColorBrush x:Key="WaitCategory.Worker Thread" Color="#72E1A9"/> |
| 253 | + <SolidColorBrush x:Key="WaitCategory.Lock" Color="#FB6640"/> |
| 254 | + <SolidColorBrush x:Key="WaitCategory.Latch" Color="#FEB5ED"/> |
| 255 | + <SolidColorBrush x:Key="WaitCategory.Buffer Latch" Color="#E8469D"/> |
| 256 | + <SolidColorBrush x:Key="WaitCategory.Buffer IO" Color="#238CFA"/> |
| 257 | + <SolidColorBrush x:Key="WaitCategory.Compilation" Color="#A1A3FB"/> |
| 258 | + <SolidColorBrush x:Key="WaitCategory.SQL CLR" Color="#63C5C6"/> |
| 259 | + <SolidColorBrush x:Key="WaitCategory.Mirroring" Color="#30907E"/> |
| 260 | + <SolidColorBrush x:Key="WaitCategory.Transaction" Color="#DB9027"/> |
| 261 | + <SolidColorBrush x:Key="WaitCategory.Preemptive" Color="#FFA8C0"/> |
| 262 | + <SolidColorBrush x:Key="WaitCategory.Service Broker" Color="#FF9289"/> |
| 263 | + <SolidColorBrush x:Key="WaitCategory.Tran Log IO" Color="#8AC6FF"/> |
| 264 | + <SolidColorBrush x:Key="WaitCategory.Network IO" Color="#BBE2FE"/> |
| 265 | + <SolidColorBrush x:Key="WaitCategory.Parallelism" Color="#9A84FE"/> |
| 266 | + <SolidColorBrush x:Key="WaitCategory.Memory" Color="#FFE6B1"/> |
| 267 | + <SolidColorBrush x:Key="WaitCategory.Tracing" Color="#BDC8CE"/> |
| 268 | + <SolidColorBrush x:Key="WaitCategory.Full Text Search" Color="#D8F2FC"/> |
| 269 | + <SolidColorBrush x:Key="WaitCategory.Other Disk IO" Color="#0FB3E2"/> |
| 270 | + <SolidColorBrush x:Key="WaitCategory.Replication" Color="#5DF9ED"/> |
| 271 | + <SolidColorBrush x:Key="WaitCategory.Log Rate Governor" Color="#FFCACA"/> |
| 272 | + <SolidColorBrush x:Key="WaitCategory.Others" Color="#676E73"/> |
256 | 273 | <SolidColorBrush x:Key="WaitCategory.Highlight" Color="#FFFFFF"/> |
257 | 274 |
|
258 | 275 | </ResourceDictionary> |
0 commit comments