Lines Matching refs:fd
51 explicit FileDescriptor(int fd) : mFd(fd) {} in FileDescriptor() argument
67 explicit FileOutputStreamLite(int fd) : mCopyAdapter(fd), mImpl(&mCopyAdapter) {} in FileOutputStreamLite() argument
85 explicit FDAdapter(int fd) : mFd(fd) {} in FDAdapter()
108 FileDescriptor fd{open(path.c_str(), O_RDONLY)}; in parseFromFile() local
109 if (!fd.valid()) { in parseFromFile()
119 if (fstat(fd, &sb) || sb.st_size < sHeaderSize) { in parseFromFile()
129 void* addr = mmap(nullptr, sb.st_size, PROT_READ, MAP_SHARED, fd, 0); in parseFromFile()
229 void dumpAsTextToFd(protos::GraphicsStatsProto* proto, int fd) { in dumpAsTextToFd() argument
236 dprintf(fd, "\nPackage: %s", proto->package_name().c_str()); in dumpAsTextToFd()
237 dprintf(fd, "\nVersion: %lld", proto->version_code()); in dumpAsTextToFd()
238 dprintf(fd, "\nStats since: %lldns", proto->stats_start()); in dumpAsTextToFd()
239 dprintf(fd, "\nStats end: %lldns", proto->stats_end()); in dumpAsTextToFd()
241 dprintf(fd, "\nTotal frames rendered: %d", summary.total_frames()); in dumpAsTextToFd()
242 dprintf(fd, "\nJanky frames: %d (%.2f%%)", summary.janky_frames(), in dumpAsTextToFd()
244 dprintf(fd, "\n50th percentile: %dms", findPercentile(proto, 50)); in dumpAsTextToFd()
245 dprintf(fd, "\n90th percentile: %dms", findPercentile(proto, 90)); in dumpAsTextToFd()
246 dprintf(fd, "\n95th percentile: %dms", findPercentile(proto, 95)); in dumpAsTextToFd()
247 dprintf(fd, "\n99th percentile: %dms", findPercentile(proto, 99)); in dumpAsTextToFd()
248 dprintf(fd, "\nNumber Missed Vsync: %d", summary.missed_vsync_count()); in dumpAsTextToFd()
249 dprintf(fd, "\nNumber High input latency: %d", summary.high_input_latency_count()); in dumpAsTextToFd()
250 dprintf(fd, "\nNumber Slow UI thread: %d", summary.slow_ui_thread_count()); in dumpAsTextToFd()
251 dprintf(fd, "\nNumber Slow bitmap uploads: %d", summary.slow_bitmap_upload_count()); in dumpAsTextToFd()
252 dprintf(fd, "\nNumber Slow issue draw commands: %d", summary.slow_draw_count()); in dumpAsTextToFd()
253 dprintf(fd, "\nNumber Frame deadline missed: %d", summary.missed_deadline_count()); in dumpAsTextToFd()
254 dprintf(fd, "\nHISTOGRAM:"); in dumpAsTextToFd()
256 dprintf(fd, " %dms=%d", it.render_millis(), it.frame_count()); in dumpAsTextToFd()
258 dprintf(fd, "\n"); in dumpAsTextToFd()
313 int fd() { return mFd; } in fd() function in android::uirenderer::GraphicsStatsService::Dump
347 dumpAsTextToFd(&statsProto, dump->fd()); in addToDump()
359 dumpAsTextToFd(&statsProto, dump->fd()); in addToDump()
365 FileOutputStreamLite stream(dump->fd()); in finishDump()