class ComponentWatcher

Defined at line 14 of file ../../src/performance/experimental/profiler/component_watcher.h

Public Methods

zx::result<> Watch ()

Defined at line 11 of file ../../src/performance/experimental/profiler/component_watcher.cc

void ComponentWatcher (async_dispatcher_t * dispatcher)

Defined at line 16 of file ../../src/performance/experimental/profiler/component_watcher.h

void Clear ()

Remove all watches for urls and monikers

Defined at line 34 of file ../../src/performance/experimental/profiler/component_watcher.cc

void HandleEvent (fidl::Result<fuchsia_component::EventStream::GetNext> & res)

Defined at line 64 of file ../../src/performance/experimental/profiler/component_watcher.cc

zx::result<> WatchForMoniker (std::string moniker, ComponentEventHandler handler)

Run a handler when we receive a start/stop event for a moniker

Defined at line 39 of file ../../src/performance/experimental/profiler/component_watcher.cc

zx::result<> WatchForUrl (std::string url, ComponentEventHandler handler)

Run a handler when we receive a start/stop event for a url.

This is less precise than watching for a moniker since multiple components may share a url, but

is used for when we don't handle launching the component directly and don't know the moniker,

such as with tests.

Defined at line 55 of file ../../src/performance/experimental/profiler/component_watcher.cc