mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
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:
parent
cd0dbb9afb
commit
3af0992ead
2 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue