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!
andinspect_insert!
. - profile_
duration - Profile the remainder of the invoking lexical scope under the provided name.
Structs§
- Profile
Duration - 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.