Lines Matching defs:stream
194 V8_NOINLINE static void DumpJSONArray(std::stringstream& stream, size_t* array,
196 stream << PrintCollection(base::Vector<size_t>(array, len));
267 void ObjectStats::DumpInstanceTypeData(std::stringstream& stream,
269 stream << "\"" << name << "\":{";
270 stream << "\"type\":" << static_cast<int>(index) << ",";
271 stream << "\"overall\":" << object_sizes_[index] << ",";
272 stream << "\"count\":" << object_counts_[index] << ",";
273 stream << "\"over_allocated\":" << over_allocated_[index] << ",";
274 stream << "\"histogram\":";
275 DumpJSONArray(stream, size_histogram_[index], kNumberOfBuckets);
276 stream << ",\"over_allocated_histogram\":";
277 DumpJSONArray(stream, over_allocated_histogram_[index], kNumberOfBuckets);
278 stream << "},";
281 void ObjectStats::Dump(std::stringstream& stream) {
285 stream << "{";
286 stream << "\"isolate\":\"" << reinterpret_cast<void*>(isolate()) << "\",";
287 stream << "\"id\":" << gc_count << ",";
288 stream << "\"time\":" << time << ",";
291 stream << "\"field_data\":{";
292 stream << "\"tagged_fields\":" << (tagged_fields_count_ * kTaggedSize);
293 stream << ",\"embedder_fields\":"
295 stream << ",\"inobject_smi_fields\": "
297 stream << ",\"boxed_double_fields\": "
299 stream << ",\"string_data\": " << (string_data_count_ * kTaggedSize);
300 stream << ",\"other_raw_fields\":"
302 stream << "}, ";
304 stream << "\"bucket_sizes\":[";
306 stream << (1 << (kFirstBucketShift + i));
307 if (i != (kNumberOfBuckets - 1)) stream << ",";
309 stream << "],";
310 stream << "\"type_data\":{";
312 #define INSTANCE_TYPE_WRAPPER(name) DumpInstanceTypeData(stream, #name, name);
315 DumpInstanceTypeData(stream, #name, FIRST_VIRTUAL_TYPE + name);
319 stream << "\"END\":{}}}";