diff options
author | Mathias Agopian <mathias@google.com> | 2009-09-17 01:35:28 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-09-17 01:35:28 -0700 |
commit | bcef9ac35da08b9f7f8a4728af94c23a7a010669 (patch) | |
tree | c13c342c0265bc0b94608695d90e3edb6f54a918 /libs/surfaceflinger | |
parent | 76f0111845f0886f522cfe1eb5ec1dee34181f7c (diff) | |
download | frameworks_base-bcef9ac35da08b9f7f8a4728af94c23a7a010669.zip frameworks_base-bcef9ac35da08b9f7f8a4728af94c23a7a010669.tar.gz frameworks_base-bcef9ac35da08b9f7f8a4728af94c23a7a010669.tar.bz2 |
add basic time stats for surfaces lock time
Diffstat (limited to 'libs/surfaceflinger')
-rw-r--r-- | libs/surfaceflinger/SurfaceFlinger.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/surfaceflinger/SurfaceFlinger.cpp b/libs/surfaceflinger/SurfaceFlinger.cpp index a352431..31b5128 100644 --- a/libs/surfaceflinger/SurfaceFlinger.cpp +++ b/libs/surfaceflinger/SurfaceFlinger.cpp @@ -1521,6 +1521,7 @@ status_t SurfaceFlinger::dump(int fd, const Vector<String16>& args) /*** Layer ***/ sp<Layer> l = LayerBase::dynamicCast< Layer* >(layer.get()); if (l != 0) { + SharedBufferStack::Statistics stats = l->lcblk->getStats(); result.append( l->lcblk->dump(" ") ); sp<const Buffer> buf0(l->getBuffer(0)); sp<const Buffer> buf1(l->getBuffer(1)); @@ -1539,10 +1540,10 @@ status_t SurfaceFlinger::dump(int fd, const Vector<String16>& args) snprintf(buffer, SIZE, " " "format=%2d, [%3ux%3u:%3u] [%3ux%3u:%3u]," - " freezeLock=%p\n", + " freezeLock=%p, dq-q-time=%u us\n", l->pixelFormat(), w0, h0, s0, w1, h1, s1, - l->getFreezeLock().get()); + l->getFreezeLock().get(), stats.totalTime); result.append(buffer); buffer[0] = 0; } |