Lines Matching defs:dump
244 void GraphicsStatsService::addToDump(Dump* dump, const std::string& path, const std::string& package,
259 if (dump->type() == DumpType::Protobuf) {
260 dump->proto().add_stats()->CopyFrom(statsProto);
262 dumpAsTextToFd(&statsProto, dump->fd());
266 void GraphicsStatsService::addToDump(Dump* dump, const std::string& path) {
271 if (dump->type() == DumpType::Protobuf) {
272 dump->proto().add_stats()->CopyFrom(statsProto);
274 dumpAsTextToFd(&statsProto, dump->fd());
278 void GraphicsStatsService::finishDump(Dump* dump) {
279 if (dump->type() == DumpType::Protobuf) {
280 io::FileOutputStream stream(dump->fd());
281 dump->proto().SerializeToZeroCopyStream(&stream);
283 delete dump;