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§

graph
Inspect Graph
id_enum
Provides trait and functions to log mapping from IDs of an enum to its variants or mapped variant values.
inspectable
Provides utilities on top of regular inspect properties to enable convenient features such as:
log
Provides convenience macros for writing to an inspect bounded list (bounded log)
nodes
Utilities and wrappers providing higher level functionality for Inspect Nodes and properties.

Macros§

inspect_insert
Macro to insert items using a Node. Each value must be a type that implements WriteInspect.
inspect_log
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.
make_inspect_loggable
Convenience macro to construct a closure that implements WriteInspect, so it can be used in inspect_log! and inspect_insert!.
profile_duration
Profile the remainder of the invoking lexical scope under the provided name.

Structs§

ProfileDuration
A guard value to manually control entry/exit of profile durations.

Functions§

start_self_profiling
Start collecting profiling information for any durations entered after this call is made.
stop_self_profiling
Stop collecting profiling information for any durations entered after this call is made.