Flutter Engine
The Flutter Engine
Static Public Member Functions | List of all members
dart_utils::RootInspectNode Class Reference

#include <root_inspect_node.h>

Static Public Member Functions

static void Initialize (sys::ComponentContext *context)
 
static inspect::Node CreateRootChild (const std::string &name)
 
static inspect::Inspector * GetInspector ()
 

Detailed Description

Definition at line 22 of file root_inspect_node.h.

Member Function Documentation

◆ CreateRootChild()

inspect::Node dart_utils::RootInspectNode::CreateRootChild ( const std::string &  name)
static

Definition at line 21 of file root_inspect_node.cc.

21 {
22 std::lock_guard<std::mutex> lock(mutex_);
23 return inspector_->inspector().GetRoot().CreateChild(name);
24}
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32

◆ GetInspector()

inspect::Inspector * dart_utils::RootInspectNode::GetInspector ( )
static

Definition at line 26 of file root_inspect_node.cc.

26 {
27 return &inspector_->inspector();
28}

◆ Initialize()

void dart_utils::RootInspectNode::Initialize ( sys::ComponentContext *  context)
static

Definition at line 13 of file root_inspect_node.cc.

13 {
14 std::lock_guard<std::mutex> lock(mutex_);
15 if (!inspector_) {
16 inspector_ = std::make_unique<inspect::ComponentInspector>(
17 async_get_default_dispatcher(), inspect::PublishOptions{});
18 }
19}

The documentation for this class was generated from the following files: