class DataProcessor
Defined at line 44 of file ../../src/sys/test_manager/debug_data_processor/data_processor.h
Public Methods
void DataProcessor (fbl::unique_fd dir_fd, async_dispatcher_t * dispatcher)
dir_fd: directory to write processed debug data to.
Defined at line 27 of file ../../src/sys/test_manager/debug_data_processor/data_processor.cc
void ~DataProcessor ()
Defined at line 62 of file ../../src/sys/test_manager/debug_data_processor/data_processor.cc
void ProcessData (std::string test_url, DataSinkDump data_sink)
Process data on internal dispacther.
Defined at line 71 of file ../../src/sys/test_manager/debug_data_processor/data_processor.cc
void FinishProcessing ()
Defined at line 75 of file ../../src/sys/test_manager/debug_data_processor/data_processor.cc
zx::unowned_event GetDataFlushedEvent ()
Defined at line 77 of file ../../src/sys/test_manager/debug_data_processor/data_processor.cc
void WriteSummaryFile (fbl::unique_fd & fd, TestDebugDataMap debug_data_map)
Loads current summary.json if available, merges it with the passed map and writes the map back
to summary.json.
If current summary.json is corrupted, this function will crash to catch bugs early.
The format of summary.json is same as used in //zircon/system/ulib/runtest-utils.
Sample format:
{
"tests":[
{
"name":"test_url1.cm",
"data_sinks":{
"test1_sink1":[
{
"file":"path/path1",
"name":"name1"
},
{
"file":"path/path1_1",
"name":"name1_1"
}
],
"test1_sink2":[
{
"file":"path/path2",
"name":"name2"
},
],
...
}
},
...
]//
}
Defined at line 178 of file ../../src/sys/test_manager/debug_data_processor/data_processor.cc