Lines Matching refs:Json
43 static std::unique_ptr<Json::Value> dumpToJson(const PerformanceData& data) in dumpToJson()
45 std::unique_ptr<Json::Value> rootPtr = std::make_unique<Json::Value>(Json::objectValue); in dumpToJson()
46 Json::Value& root = *rootPtr; in dumpToJson()
49 root["frameCount"] = (Json::Value::Int)data.threadParams.frameCount; in dumpToJson()
50 root["sampleRate"] = (Json::Value::Int)data.threadParams.sampleRate; in dumpToJson()
54 root["underruns"] = (Json::Value::Int64)data.underruns; in dumpToJson()
55 root["overruns"] = (Json::Value::Int64)data.overruns; in dumpToJson()
56 root["activeMs"] = (Json::Value::Int64)ns2ms(data.active); in dumpToJson()
57 root["durationMs"] = (Json::Value::Int64)ns2ms(systemTime() - data.start); in dumpToJson()
81 Json::Value root(Json::arrayValue); in dumpJson()
88 std::unique_ptr<Json::Value> dataJson = ReportPerformance::dumpToJson(data); in dumpJson()
95 Json::StyledWriter writer; in dumpJson()