6#include <lib/async/default.h>
10std::unique_ptr<inspect::ComponentInspector> RootInspectNode::inspector_;
11std::mutex RootInspectNode::mutex_;
14 std::lock_guard<std::mutex> lock(mutex_);
16 inspector_ = std::make_unique<inspect::ComponentInspector>(
17 async_get_default_dispatcher(), inspect::PublishOptions{});
22 std::lock_guard<std::mutex> lock(mutex_);
23 return inspector_->inspector().GetRoot().CreateChild(
name);
27 return &inspector_->inspector();
static inspect::Inspector * GetInspector()
static void Initialize(sys::ComponentContext *context)
static inspect::Node CreateRootChild(const std::string &name)
sys::ComponentContext * ComponentContext()
DEF_SWITCHES_START aot vmservice shared library name