◆ ResultsJSONWriter()
ResultsJSONWriter::ResultsJSONWriter |
( |
const char * |
path | ) |
|
|
inline |
Definition at line 216 of file BazelBenchmarkTestRunner.cpp.
219 , fAddingResults(false) {
222 }
void appendS32(int32_t value)
void beginObject(const char *name=nullptr, bool multiline=true)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
◆ ~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 |
Definition at line 235 of file BazelBenchmarkTestRunner.cpp.
235 {
236 assertNotAddingResults();
240 }
242 }
DEF_SWITCHES_START aot vmservice shared library name
◆ 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: