class DataSink

Defined at line 62 of file ../../zircon/system/ulib/debugdata/include/lib/debugdata/datasink.h

DataSink merges debug data contained in VMOs and dumps the data to the provided directory.

The expected usage is for the caller to pass VMOs with `ProcessSingleDebugData`. After all

VMOs are processed in this way, the caller should flush the data to directory with

`FlushToDirectory`.

Public Methods

void DataSink (const fbl::unique_fd & data_sink_dir_fd)

Defined at line 64 of file ../../zircon/system/ulib/debugdata/include/lib/debugdata/datasink.h

void ProcessSingleDebugData (const std::string & data_sink, zx::vmo debug_data, std::optional<std::string> tag, DataSinkCallback & error_callback, DataSinkCallback & warning_callback)

Processes debug data from a single VMO. This function will execute callbacks with error or

warnings. The optional |tag| argument may be used to track the sources from which a merged

profile is created.

Defined at line 383 of file ../../zircon/system/ulib/debugdata/datasink.cc

DataSinkFileMap FlushToDirectory (DataSinkCallback & error_callback, DataSinkCallback & warning_callback)

Flush any data not yet written to disk. Must be called prior to cleaning up `DataSink`.

Returns a mapping from data sink name to files written since the last call to

`FlushToDirectory`.

Defined at line 401 of file ../../zircon/system/ulib/debugdata/datasink.cc