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

@ -25,6 +25,8 @@ fn main() {
if #[cfg(not(any(target_os = "android", target_env = "ohos")))] {
servoshell::main()
} else {
// Android: see ports/servoshell/egl/android/simpleservo.rs.
// OpenHarmony: see ports/servoshell/egl/ohos/simpleservo.rs.
println!(
"Cannot run the servoshell `bin` executable on platforms such as \
Android or OpenHarmony. On these platforms you need to compile \