* Get color style based on frame time.
(ms: number)
| 116 | * Get color style based on frame time. |
| 117 | */ |
| 118 | function getFrameTimeStyle(ms: number): TextStyle { |
| 119 | if (ms <= 18) return GOOD_STYLE; |
| 120 | if (ms <= 33) return WARN_STYLE; |
| 121 | return ERROR_STYLE; |
| 122 | } |
| 123 | |
| 124 | /** |
| 125 | * Create a labeled value row. |