Added a new workflow that benchmarks simple startup and loading of servo.org on HarmonyOS. (#36878)

Added a new workflow that benchmarks simple startup and loading of
servo.org on HarmonyOS.
Needs https://github.com/servo/ci-runners/pull/34 to be merged and
applied to the runners.

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
This commit is contained in:
Narfinger 2025-05-15 14:52:33 +02:00 committed by GitHub
parent cd0dbb9afb
commit 3af0992ead
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View file

@ -217,6 +217,8 @@ static SERVO_CHANNEL: OnceLock<Sender<ServoAction>> = OnceLock::new();
#[unsafe(no_mangle)]
extern "C" fn on_surface_created_cb(xcomponent: *mut OH_NativeXComponent, window: *mut c_void) {
info!("on_surface_created_cb");
#[cfg(feature = "tracing-hitrace")]
let _ = hitrace::ScopedTrace::start_trace(&c"on_surface_created_cb");
let xc_wrapper = XComponentWrapper(xcomponent);
let window_wrapper = WindowWrapper(window);
@ -812,6 +814,12 @@ impl HostTrait for HostCallbacks {
#[cfg(feature = "tracing-hitrace")]
let _scope = hitrace::ScopedTrace::start_trace(&c"PageLoadEndedPrompt");
self.show_alert("Page finished loading!".to_string());
} else {
#[cfg(feature = "tracing-hitrace")]
let _ = hitrace::ScopedTrace::start_trace_str(&format!(
"load status changed {:?}",
load_status
));
}
}