get_or_insert_deserializer_tag took a process-global exclusive write lock on every marker, serializing all Rust marker recording across threads. Take a shared read lock for the already-registered steady state and only escalate to the exclusive write lock (with a double-checked re-lookup) on first registration of a marker type. Differential Revision: https://phabricator.services.mozilla.com/D309838
Gecko Profiler API for Rust
This crate is the collection of all the API endpoints for Gecko Profiler. Please use this crate instead of using raw FFI calls.
See the module documentations for more information about the specific API endpoints.