diff options
author | Mathias Agopian <mathias@google.com> | 2011-10-20 17:22:38 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-10-20 17:22:38 -0700 |
commit | abf88bead4e15a316753c878736dc73475a2310a (patch) | |
tree | c831c92dd3a3cd3c87db81ba76d7abea7942e97a | |
parent | d2cd1f722421c33e88df92d036663f30b316fa3f (diff) | |
download | frameworks_base-abf88bead4e15a316753c878736dc73475a2310a.zip frameworks_base-abf88bead4e15a316753c878736dc73475a2310a.tar.gz frameworks_base-abf88bead4e15a316753c878736dc73475a2310a.tar.bz2 |
added dpi and refresh rate info in SF's dumpsys
Change-Id: I2327248eb1993689367e3daeaccba74c172dfceb
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index ad1995d..4b2866c 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -1636,8 +1636,15 @@ status_t SurfaceFlinger::dump(int fd, const Vector<String16>& args) result.append(buffer); snprintf(buffer, SIZE, " last eglSwapBuffers() time: %f us\n" - " last transaction time : %f us\n", - mLastSwapBufferTime/1000.0, mLastTransactionTime/1000.0); + " last transaction time : %f us\n" + " refresh-rate : %f fps\n" + " x-dpi : %f\n" + " y-dpi : %f\n", + mLastSwapBufferTime/1000.0, + mLastTransactionTime/1000.0, + hw.getRefreshRate(), + hw.getDpiX(), + hw.getDpiY()); result.append(buffer); if (inSwapBuffersDuration || !locked) { |