fuchsia_trace

Macro instant

Source
macro_rules! instant {
    ($category:expr, $name:expr, $scope:expr $(, $key:expr => $val:expr)*) => { ... };
}
Expand description

Convenience macro for the instant function.

Example:

instant!(c"foo", c"bar", Scope::Process, "x" => 5, "y" => "boo");

is equivalent to

instant(c"foo", c"bar", Scope::Process,
    &[ArgValue::of("x", 5), ArgValue::of("y", "boo")]);

or

const FOO: &'static CStr = c"foo";
const BAR: &'static CStr = c"bar";
instant(FOO, BAR, Scope::Process,
    &[ArgValue::of("x", 5), ArgValue::of("y", "boo")]);