- Notifications
You must be signed in to change notification settings - Fork1
Commitd5b1c3b
authored
impl: support for displaying network latency (#108)
Under the "Additional environment information". Unfortunately it was notpossible any other way. The description property is modifiable howeverToolbox renders the description label only as long as the SSH connectionis not established. As soon as an ssh connection is running thedescription label is used as mechanism to notify users about availableIDE updates.It also appears that we can't have any other extra tab, other than"Tools", "Projects" and "Settings". There is a secondary informationattribute API, but it is not usable to show recurring metrics infobecause it can only beconfigured once, it is not a mutable field.The best effort was to add the information in the Settings page, and itis worth highlighting that the metrics are only refreshed when usereither:- switches between tabs- expands/collapses the "Additional environment information" section.There is no programmatic mechanism to notify the information in theSettings page that latency changed.The network metrics are loaded from the pid files created by the sshcommand. Toolbox spawns a native process running the SSH client. The sshclient then spawns another process which is associated to the coderproxy command. SSH network metrics are saved into json files with thename equal to the pid of the ssh command (not to be confused with theproxy command's name).-resolves#100 -resolves#1011 parent0dfd81c commitd5b1c3b
File tree
35 files changed
+320
-31
lines changed- src
- main
- kotlin/com/coder/toolbox
- cli
- sdk/v2/models
- settings
- store
- views
- resources/localization
- test
- kotlin/com/coder/toolbox
- cli
- sdk/v2/models
- resources/fixtures/outputs
35 files changed
+320
-31
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 |
| |
6 | 10 |
| |
7 | 11 |
| |
|
Lines changed: 54 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| 5 | + | |
5 | 6 |
| |
6 | 7 |
| |
7 | 8 |
| |
| 9 | + | |
8 | 10 |
| |
9 | 11 |
| |
10 | 12 |
| |
11 | 13 |
| |
12 | 14 |
| |
13 | 15 |
| |
| 16 | + | |
14 | 17 |
| |
15 | 18 |
| |
16 | 19 |
| |
| |||
20 | 23 |
| |
21 | 24 |
| |
22 | 25 |
| |
| 26 | + | |
| 27 | + | |
23 | 28 |
| |
24 | 29 |
| |
25 | 30 |
| |
26 | 31 |
| |
27 | 32 |
| |
28 | 33 |
| |
| 34 | + | |
| 35 | + | |
29 | 36 |
| |
30 | 37 |
| |
31 | 38 |
| |
| 39 | + | |
| 40 | + | |
32 | 41 |
| |
33 | 42 |
| |
34 | 43 |
| |
| |||
44 | 53 |
| |
45 | 54 |
| |
46 | 55 |
| |
47 |
| - | |
48 | 56 |
| |
49 | 57 |
| |
50 | 58 |
| |
51 | 59 |
| |
52 | 60 |
| |
53 | 61 |
| |
54 | 62 |
| |
55 |
| - | |
| 63 | + | |
56 | 64 |
| |
57 | 65 |
| |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
58 | 70 |
| |
59 | 71 |
| |
60 | 72 |
| |
| |||
141 | 153 |
| |
142 | 154 |
| |
143 | 155 |
| |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
144 | 192 |
| |
145 | 193 |
| |
| 194 | + | |
| 195 | + | |
146 | 196 |
| |
| 197 | + | |
| 198 | + | |
147 | 199 |
| |
148 | 200 |
| |
149 | 201 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
271 | 271 |
| |
272 | 272 |
| |
273 | 273 |
| |
| 274 | + | |
274 | 275 |
| |
275 | 276 |
| |
276 | 277 |
| |
277 | 278 |
| |
278 | 279 |
| |
279 | 280 |
| |
280 |
| - | |
281 |
| - | |
282 | 281 |
| |
283 | 282 |
| |
284 | 283 |
| |
|
Lines changed: 42 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + |
Lines changed: 49 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + |
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
110 | 110 |
| |
111 | 111 |
| |
112 | 112 |
| |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
113 | 119 |
| |
114 | 120 |
| |
115 | 121 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
68 | 73 |
| |
69 | 74 |
| |
70 | 75 |
| |
| |||
232 | 237 |
| |
233 | 238 |
| |
234 | 239 |
| |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
235 | 244 |
| |
236 | 245 |
| |
237 | 246 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
| 41 | + | |
| 42 | + |
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
| 59 | + | |
| 60 | + | |
59 | 61 |
| |
60 | 62 |
| |
61 | 63 |
| |
| |||
73 | 75 |
| |
74 | 76 |
| |
75 | 77 |
| |
| 78 | + | |
76 | 79 |
| |
77 | 80 |
| |
78 | 81 |
| |
| |||
104 | 107 |
| |
105 | 108 |
| |
106 | 109 |
| |
| 110 | + | |
107 | 111 |
| |
108 | 112 |
| |
109 | 113 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
128 | 128 |
| |
129 | 129 |
| |
130 | 130 |
| |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
131 | 137 |
|
Lines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
21 | 22 |
| |
22 | 23 |
| |
23 | 24 |
| |
| |||
510 | 511 |
| |
511 | 512 |
| |
512 | 513 |
| |
513 |
| - | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
514 | 518 |
| |
515 | 519 |
| |
516 | 520 |
| |
| |||
531 | 535 |
| |
532 | 536 |
| |
533 | 537 |
| |
| 538 | + | |
534 | 539 |
| |
535 | 540 |
| |
536 | 541 |
| |
| |||
539 | 544 |
| |
540 | 545 |
| |
541 | 546 |
| |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
542 | 551 |
| |
543 | 552 |
| |
544 | 553 |
| |
|
0 commit comments
Comments
(0)