Lines Matching refs:js
30 namespace js = rapidjson;
132 void HistogramWriter::getAsJSON(js::Document *doc) const in getAsJSON()
145 js::Document::AllocatorType &allocator = doc->GetAllocator(); in getAsJSON()
151 js::Value obj(js::kObjectType); in getAsJSON()
153 js::Value name(histogram.name(), allocator); in getAsJSON()
156 js::Value description(histogram.description(), allocator); in getAsJSON()
159 js::Value unitAndDirection(UnitAndDirectionToString(histogram.unit()), allocator); in getAsJSON()
164 js::Value diags(js::kObjectType); in getAsJSON()
168 js::Value key(mapIter.first, allocator); in getAsJSON()
173 js::Value guid(diagnostic.shared_diagnostic_guid(), allocator); in getAsJSON()
180 js::Value setObj(js::kObjectType); in getAsJSON()
183 js::Value values(js::kArrayType); in getAsJSON()
187 js::Value valueStr(value, allocator); in getAsJSON()
204 js::Value sampleValues(js::kArrayType); in getAsJSON()
208 js::Value sample(histogram.sample_values(sampleIndex)); in getAsJSON()
214 js::Value maxNumSamplesValues(histogram.max_num_sample_values()); in getAsJSON()
219 js::Value binBoundaries(js::kArrayType); in getAsJSON()
224 js::Value binSpec(boundaries.bin_specs(binIndex).bin_boundary()); in getAsJSON()
235 js::Value summary(js::kObjectType); in getAsJSON()
237 js::Value avg(options.avg()); in getAsJSON()
238 js::Value count(options.count()); in getAsJSON()
239 js::Value max(options.max()); in getAsJSON()
240 js::Value min(options.min()); in getAsJSON()
241 js::Value std(options.std()); in getAsJSON()
242 js::Value sum(options.sum()); in getAsJSON()
258 js::Value stats(js::kArrayType); in getAsJSON()
260 js::Value count(running.count()); in getAsJSON()
261 js::Value max(running.max()); in getAsJSON()
262 js::Value meanlogs(running.meanlogs()); in getAsJSON()
263 js::Value mean(running.mean()); in getAsJSON()
264 js::Value min(running.min()); in getAsJSON()
265 js::Value sum(running.sum()); in getAsJSON()
266 js::Value variance(running.variance()); in getAsJSON()
286 js::Value obj(js::kObjectType); in getAsJSON()
288 js::Value name(diagnosticIt.first, allocator); in getAsJSON()
295 js::Value type("GenericSet", allocator); in getAsJSON()
300 js::Value values(js::kArrayType); in getAsJSON()
304 js::Value valueStr(value, allocator); in getAsJSON()