Crate fuchsia_inspect_contrib
source ·Expand description
§fuchsia-inspect-contrib
This library is intended for contributions to the inspect library from clients. These are
patterns that clients identify in their usage of inspect that they can generalize and share.
It’s intended to be at a higher level than fuchsia-inspect
. Some of the APIs
in this library might be promoted to the core library sometime in the future.
Modules§
- Inspect Graph
- Provides trait and functions to log mapping from IDs of an enum to its variants or mapped variant values.
- Provides utilities on top of regular inspect properties to enable convenient features such as:
- Provides convenience macros for writing to an inspect bounded list (bounded log)
- Utilities and wrappers providing higher level functionality for Inspect Nodes and properties.
Macros§
- Macro to insert items using a Node. Each value must be a type that implements
WriteInspect
. - Macro to log a new entry to a bounded list node with the specified key-value pairs. Each value must be a type that implements
WriteInspect
. This macro automatically injects a timestamp to each entry. - Convenience macro to construct a closure that implements WriteInspect, so it can be used in
inspect_log!
andinspect_insert!
. - Profile the remainder of the invoking lexical scope under the provided name.
Structs§
- A guard value to manually control entry/exit of profile durations.
Functions§
- Start collecting profiling information for any durations entered after this call is made.
- Stop collecting profiling information for any durations entered after this call is made.