◆ ResultsJSONWriter()
ResultsJSONWriter::ResultsJSONWriter |
( |
const char * |
path | ) |
|
|
inline |
Definition at line 216 of file BazelBenchmarkTestRunner.cpp.
217 : fFileWStream(path)
219 , fAddingResults(false) {
222 }
void appendS32(int32_t value)
void beginObject(const char *name=nullptr, bool multiline=true)
◆ ~ResultsJSONWriter()
ResultsJSONWriter::~ResultsJSONWriter |
( |
| ) |
|
|
inline |
◆ addChangelistInfo()
void ResultsJSONWriter::addChangelistInfo |
( |
std::string |
issue, |
|
|
std::string |
patchset |
|
) |
| |
|
inline |
◆ addGitHash()
void ResultsJSONWriter::addGitHash |
( |
std::string |
gitHash | ) |
|
|
inline |
◆ addKey()
void ResultsJSONWriter::addKey |
( |
std::map< std::string, std::string > |
key | ) |
|
|
inline |
◆ addLinks()
void ResultsJSONWriter::addLinks |
( |
std::map< std::string, std::string > |
links | ) |
|
|
inline |
◆ addResult()
void ResultsJSONWriter::addResult |
( |
Result |
result | ) |
|
|
inline |
Definition at line 253 of file BazelBenchmarkTestRunner.cpp.
253 {
254 if (!fAddingResults) {
255 fAddingResults = true;
257 }
258
260
261
265 }
267
268
270 for (
auto const& [
name, singleMeasurements] :
result.measurements) {
272 for (const SingleMeasurement& singleMeasurement : singleMeasurements) {
273
274
275
276
277 if (
SkIsFinite(singleMeasurement.measurement)) {
279 fJson.
appendCString(
"value", singleMeasurement.value.c_str());
282 }
283 }
285 }
287
289 }
static bool SkIsFinite(T x, Pack... values)
void beginArray(const char *name=nullptr, bool multiline=true)
void appendDoubleDigits(double value, int digits)
◆ flush()
void ResultsJSONWriter::flush |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: