mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00

The `category.WithOptions(...)` syntax was a bit strange and difficult to explain. Now the category and options are separate parameters. Default options can be specified with `MarkerOptions{}` or just `{}`. As a special case, defaulted-NoPayload functions don't need `<>`, and defaulted-NoPayload functions and macros don't even need `{}` for default options, e.g.: `profiler_add_marker("name", OTHER); PROFILER_MARKER_UNTYPED("name", OTHER);` Differential Revision: https://phabricator.services.mozilla.com/D91680