mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
fc66871215
This variable is an atomic variable here: https://searchfox.org/mozilla-central/rev/2a867dd1ab015c3ef24b774a57709fb3b3dc4961/tools/profiler/core/platform.cpp#1631 We are getting this C++ atomic variable here directly instead of using FFIs because this is much faster and this function has to be as fast as possible (because it will be used before adding each marker to make sure the profiler is running.). It's used by `is_active` and `can_accept_markers` functions above this file. It looks like Rust 1.77 starts to give some warnings/errors for these cases where we have shared references. This should be safe for us, because we already know that this function can be racy. So this is something we considered and decided that it's better to be faster. Differential Revision: https://phabricator.services.mozilla.com/D199968 |
||
---|---|---|
.. | ||
macros | ||
src | ||
build.rs | ||
Cargo.toml | ||
cbindgen.toml | ||
extra-bindgen-flags.in | ||
README.md |
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.