Commit 389a2de
authored
refactor[react-devtools/fiber/renderer]: optimize durations resolution (#31118)
Stacked on #31117.
No need for sending long float numbers and to have resolution less than
a microsecond, we end up formatting it on a Frontend side:
https://github.com/facebook/react/blob/6c7b41da3de12be2d95c60181b3fe896f824f13a/packages/react-devtools-shared/src/devtools/views/Profiler/utils.js#L359-L3601 parent dbf80c8 commit 389a2de
File tree
2 files changed
+28
-5
lines changed2 files changed
+28
-5
lines changedLines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
5074 | 5075 | | |
5075 | 5076 | | |
5076 | 5077 | | |
5077 | | - | |
5078 | | - | |
| 5078 | + | |
| 5079 | + | |
| 5080 | + | |
| 5081 | + | |
| 5082 | + | |
| 5083 | + | |
| 5084 | + | |
| 5085 | + | |
5079 | 5086 | | |
5080 | 5087 | | |
5081 | 5088 | | |
5082 | 5089 | | |
5083 | 5090 | | |
5084 | 5091 | | |
5085 | 5092 | | |
5086 | | - | |
5087 | | - | |
| 5093 | + | |
| 5094 | + | |
| 5095 | + | |
| 5096 | + | |
| 5097 | + | |
| 5098 | + | |
5088 | 5099 | | |
5089 | 5100 | | |
5090 | | - | |
| 5101 | + | |
| 5102 | + | |
| 5103 | + | |
| 5104 | + | |
5091 | 5105 | | |
5092 | 5106 | | |
5093 | 5107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
0 commit comments