class OperationTracker
Defined at line 21 of file ../../src/storage/lib/vfs/cpp/inspect/operation_tracker/operation_tracker_base.h
Public Methods
template <typename Operation>
std::invoke_result_t<Operation> Track (Operation && op)
Record latency/error of the given operation. `op` can be any callable that returns either a
`zx_status_t` or `zx::result`.
Defined at line 66 of file ../../src/storage/lib/vfs/cpp/inspect/operation_tracker/operation_tracker_base.h
TrackerEvent NewEvent ()
Create a `TrackerEvent` used to record a latency or error value. Can be moved between threads.
The returned `TrackerEvent` must not outlive the associated `OperationTracker`.
Time measurement starts when this object is created and ends when it goes out of scope.
Use `TrackerEvent::SetStatus` to record the result of the operation.
Defined at line 36 of file ../../src/storage/lib/vfs/cpp/inspect/operation_tracker/operation_tracker_shared.cc
Protected Methods
void OnSuccess (zx::duration latency_ns)
void OnError (zx_status_t error)
void OnError ()