Skip to content

Commit 16bece0

Browse files
pixelflingerAndroid (Google) Code Review
authored andcommitted
Merge "added dpi and refresh rate info in SF's dumpsys" into ics-mr0
2 parents 6b02444 + abf88be commit 16bece0

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

services/surfaceflinger/SurfaceFlinger.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,8 +1636,15 @@ status_t SurfaceFlinger::dump(int fd, const Vector<String16>& args)
16361636
result.append(buffer);
16371637
snprintf(buffer, SIZE,
16381638
" last eglSwapBuffers() time: %f us\n"
1639-
" last transaction time : %f us\n",
1640-
mLastSwapBufferTime/1000.0, mLastTransactionTime/1000.0);
1639+
" last transaction time : %f us\n"
1640+
" refresh-rate : %f fps\n"
1641+
" x-dpi : %f\n"
1642+
" y-dpi : %f\n",
1643+
mLastSwapBufferTime/1000.0,
1644+
mLastTransactionTime/1000.0,
1645+
hw.getRefreshRate(),
1646+
hw.getDpiX(),
1647+
hw.getDpiY());
16411648
result.append(buffer);
16421649

16431650
if (inSwapBuffersDuration || !locked) {

0 commit comments

Comments
 (0)