// Initialize WebRTC. Call this explicitly to initialize WebRTC module
// before initializing the sandbox in Chrome.
RTC_EXPORT bool InitializeWebRtcModuleBeforeSandbox();
// Hooks up Chrome+WebRTC integration such as logging and tracing. Must be run
// after tracing is initialized.
RTC_EXPORT void InitializeWebRtcModule();
What is the error scenario in case one is not called or they are called in the wrong order?
I am worried about future refactoring that move code around at the call site.
void InitializeWebRtcTracing() {
#if defined(RTC_USE_PERFETTO)
webrtc::SetupEventTracer();
#else
webrtc::SetupEventTracer(&GetCategoryGroupEnabled, &AddTraceEvent);
#endif // defined(RTC_USE_PERFETTO)
}
Inline below at line 60?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// Initialize WebRTC. Call this explicitly to initialize WebRTC module
// before initializing the sandbox in Chrome.
RTC_EXPORT bool InitializeWebRtcModuleBeforeSandbox();
// Hooks up Chrome+WebRTC integration such as logging and tracing. Must be run
// after tracing is initialized.
RTC_EXPORT void InitializeWebRtcModule();
What is the error scenario in case one is not called or they are called in the wrong order?
I am worried about future refactoring that move code around at the call site.
There is no error scenario for the order of these two.
void InitializeWebRtcTracing() {
#if defined(RTC_USE_PERFETTO)
webrtc::SetupEventTracer();
#else
webrtc::SetupEventTracer(&GetCategoryGroupEnabled, &AddTraceEvent);
#endif // defined(RTC_USE_PERFETTO)
}
Inline below at line 60?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
::InitializeWebRtcModule();
To reviewer: I am open to moving this somewhere else, I was not sure where the best place was and thought at blink init made the most sense.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
::InitializeWebRtcModule();
To reviewer: I am open to moving this somewhere else, I was not sure where the best place was and thought at blink init made the most sense.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// Initialize WebRTC. Call this explicitly to initialize WebRTC module
// before initializing the sandbox in Chrome.
RTC_EXPORT bool InitializeWebRtcModuleBeforeSandbox();
// Hooks up Chrome+WebRTC integration such as logging and tracing. Must be run
// after tracing is initialized.
RTC_EXPORT void InitializeWebRtcModule();
Evan ShrubsoleWhat is the error scenario in case one is not called or they are called in the wrong order?
I am worried about future refactoring that move code around at the call site.
There is no error scenario for the order of these two.
I no sure I am following. Does it mean it does't fail, just Perfetto not working?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// Initialize WebRTC. Call this explicitly to initialize WebRTC module
// before initializing the sandbox in Chrome.
RTC_EXPORT bool InitializeWebRtcModuleBeforeSandbox();
// Hooks up Chrome+WebRTC integration such as logging and tracing. Must be run
// after tracing is initialized.
RTC_EXPORT void InitializeWebRtcModule();
Evan ShrubsoleWhat is the error scenario in case one is not called or they are called in the wrong order?
I am worried about future refactoring that move code around at the call site.
Mirko BonadeiThere is no error scenario for the order of these two.
I no sure I am following. Does it mean it does't fail, just Perfetto not working?
Exactly, otherwise perfetto traces won't reach Chrome. I'll clarify.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// Initialize WebRTC. Call this explicitly to initialize WebRTC module
// before initializing the sandbox in Chrome.
RTC_EXPORT bool InitializeWebRtcModuleBeforeSandbox();
// Hooks up Chrome+WebRTC integration such as logging and tracing. Must be run
// after tracing is initialized.
RTC_EXPORT void InitializeWebRtcModule();
Evan ShrubsoleWhat is the error scenario in case one is not called or they are called in the wrong order?
I am worried about future refactoring that move code around at the call site.
Mirko BonadeiThere is no error scenario for the order of these two.
Evan ShrubsoleI no sure I am following. Does it mean it does't fail, just Perfetto not working?
Exactly, otherwise perfetto traces won't reach Chrome. I'll clarify.
Thanks.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Prepare for WebRTC perfetto integration
This CL makes some changes to webrtc_overrides/init_webrtc,
* Splits initialization into 2 methods to make it clear that
one must occur before sandbox.
* The second method must occur after logging and tracing are prepared,
and may occur after sandbox.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |