Repository navigation
Commit b217ecd
Initialize Perfetto with the in-process backend on iOS (#59415)
Summary:
Pull Request resolved: #59415
`initializePerfetto()` registers Perfetto's system backend on every platform. iOS and the other Apple device platforms have no system tracing service, so the system producer never connects and keeps retrying in the background for the app's lifetime, and a tracer in the app that starts a session without naming a backend gets the system one and records nothing.
On those platforms, register the in-process backend instead. Other platforms, including macOS, are unchanged. React Native's own `ReactCxxPlatform/react/profiling/perfetto.cpp` already registers the in-process backend on every platform but Android; this change is narrower and keeps the system backend on macOS and other desktop platforms, where `traced` can run.
Changelog: [Internal]
Reviewed By: christophpurrer, javache
Differential Revision: D126071088
fbshipit-source-id: c1d9ccfa60ef66dbc4178635602bbd1a2dd792791 parent 8c2ce77 commit b217ecd
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
| |||
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
29 | 38 | | |
| 39 | + | |
30 | 40 | | |
31 | 41 | | |
32 | 42 | | |
| |||
0 commit comments