Make tracing available on all platforms, with or without perfetto (#33301)

* Make tracing available on all platforms

Signed-off-by: Delan Azabani <dazabani@igalia.com>

* Gate perfetto support behind its own feature

Signed-off-by: Delan Azabani <dazabani@igalia.com>

---------

Signed-off-by: Delan Azabani <dazabani@igalia.com>
This commit is contained in:
Delan Azabani 2024-09-04 20:56:29 +08:00 committed by GitHub
parent 891562be8e
commit c0ced7a524
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 33 additions and 79 deletions

View file

@ -107,6 +107,7 @@ pub fn init(
waker: Box<dyn EventLoopWaker>,
callbacks: Box<dyn HostTrait>,
) -> Result<(), &'static str> {
crate::init_tracing();
resources::set(Box::new(ResourceReaderInstance::new()));
if let Some(prefs) = init_opts.prefs {