PTAL. Gemini claims that this fixes the remaining timing gap on the linked issue.
// TODO(khokhlov): Support startup tracing with the system backend in the
// SDK build.Is this change already enough to resolve this TODO?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// TODO(khokhlov): Support startup tracing with the system backend in the
// SDK build.Is this change already enough to resolve this TODO?
My memory of this code is weak, but I'm pretty sure that it's not that simple. The backend has to adopt the pre-allocated shared memory buffer, which the system backend does not know how to do.
CC etiennep@ who has better understanding of this system.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
auto perfetto_config = startup_config.GetPerfettoConfig();If starting tracing through perfetto directly, I don't think chrome forwards it the config to renderer (unlike passing config through chrome's command line).
For startup tracing in child processes to work for system backend, we'd need the browser to forward any active config; TraceStartupConfig currently does this only for the config given in command line.
// TODO(khokhlov): Support startup tracing with the system backend in the
// SDK build.Mikhail KhokhlovIs this change already enough to resolve this TODO?
My memory of this code is weak, but I'm pretty sure that it's not that simple. The backend has to adopt the pre-allocated shared memory buffer, which the system backend does not know how to do.
CC etiennep@ who has better understanding of this system.
+1 the system backend would need to know how to adopt buffers, passed through ConnectProducerArgs.
auto perfetto_config = startup_config.GetPerfettoConfig();If starting tracing through perfetto directly, I don't think chrome forwards it the config to renderer (unlike passing config through chrome's command line).
For startup tracing in child processes to work for system backend, we'd need the browser to forward any active config; TraceStartupConfig currently does this only for the config given in command line.
We also don't currently forward the full config, only track_event one.