mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
Adds a profiling event at the startup of servoshell, right after initializing the tracing subsystem. To support this, add macro abstractions for tracing events. The existing span (macros) have a start and an end, but for one-off events, we don't need a span and hence it make sense to also add the event macros. The new event at startup is useful when measuring / optimizing general startup time. Adding a timestamp as field, allows us to ground the measurement and compare it against time measured outside of servo, regardless of how the profiling backend (tracing-perfetto, tracing-hitrace, future backends) save timestamps. Testing: Build-testing: the HarmonyOS build enables the tracing feature. On other platforms this is not the case in CI. --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>