Commit 42b1b33
authored
[DevTools] Add byteSize field to ReactIOInfo and show this in the tooltip (facebook#34221)
This is intended to be used by various client side resources where the
transfer size is interesting to know how it'll perform in various
network conditions. Not intended to be added by the server.
For now it's only added internally by DevTools itself on img/css but
I'll add it from Flight Client too in a follow up.
This now shows this as the "transfer size" which is the encoded body
size + headers/overhead. Where as the "fileSize" that I add to images is
the decoded body size, like what you'd see on disk. This is what Chrome
shows so it's less confusing if you compare Network tab and this view.1 parent 7a36dfe commit 42b1b33
File tree
6 files changed
+45
-8
lines changed- packages
6 files changed
+45
-8
lines changedLines changed: 21 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3343 | 3343 | | |
3344 | 3344 | | |
3345 | 3345 | | |
| 3346 | + | |
3346 | 3347 | | |
3347 | 3348 | | |
3348 | 3349 | | |
| |||
3352 | 3353 | | |
3353 | 3354 | | |
3354 | 3355 | | |
| 3356 | + | |
| 3357 | + | |
3355 | 3358 | | |
3356 | 3359 | | |
3357 | 3360 | | |
| |||
3367 | 3370 | | |
3368 | 3371 | | |
3369 | 3372 | | |
| 3373 | + | |
| 3374 | + | |
| 3375 | + | |
| 3376 | + | |
3370 | 3377 | | |
3371 | 3378 | | |
3372 | 3379 | | |
| |||
3431 | 3438 | | |
3432 | 3439 | | |
3433 | 3440 | | |
| 3441 | + | |
3434 | 3442 | | |
3435 | 3443 | | |
3436 | 3444 | | |
| |||
3442 | 3450 | | |
3443 | 3451 | | |
3444 | 3452 | | |
3445 | | - | |
| 3453 | + | |
| 3454 | + | |
| 3455 | + | |
3446 | 3456 | | |
3447 | 3457 | | |
3448 | 3458 | | |
| |||
3476 | 3486 | | |
3477 | 3487 | | |
3478 | 3488 | | |
| 3489 | + | |
| 3490 | + | |
| 3491 | + | |
| 3492 | + | |
3479 | 3493 | | |
3480 | 3494 | | |
3481 | 3495 | | |
| |||
4704 | 4718 | | |
4705 | 4719 | | |
4706 | 4720 | | |
4707 | | - | |
4708 | | - | |
4709 | | - | |
4710 | | - | |
| 4721 | + | |
4711 | 4722 | | |
4712 | 4723 | | |
4713 | 4724 | | |
4714 | 4725 | | |
4715 | | - | |
4716 | | - | |
| 4726 | + | |
| 4727 | + | |
| 4728 | + | |
| 4729 | + | |
4717 | 4730 | | |
4718 | 4731 | | |
4719 | 4732 | | |
| |||
5948 | 5961 | | |
5949 | 5962 | | |
5950 | 5963 | | |
| 5964 | + | |
5951 | 5965 | | |
5952 | 5966 | | |
5953 | 5967 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| |||
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
79 | 92 | | |
80 | 93 | | |
81 | 94 | | |
| |||
145 | 158 | | |
146 | 159 | | |
147 | 160 | | |
148 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
149 | 168 | | |
150 | 169 | | |
151 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| |||
0 commit comments