OSDN Git Service

improve SurfaceFlinger dumpsys
authorMathias Agopian <mathias@google.com>
Fri, 20 Jan 2012 02:34:40 +0000 (18:34 -0800)
committerMathias Agopian <mathias@google.com>
Wed, 25 Jan 2012 02:22:56 +0000 (18:22 -0800)
commit1d99795d73dadd49c6af1dfc3f5f5a575e0eebaf
treecbf2394f928d6ce2990029b6625d45094dd9935b
parentb335fad4705348ff78d764fb4be53dcbe6b67abe
improve SurfaceFlinger dumpsys

It is now possible to say:

dumpsys SurfaceFlinger --latency

to print latency information about all windows

dumpsys SurfaceFlinger --latency window-name

to print the latency stats of the specified window

for instance: dumpsys SurfaceFlinger --latency SurfaceView

The data consists of one line containing global stats, followed by
128 lines of tab separated timestamps in nanosecond.

The first line currently contains the refresh period in nanosecond.
Each 128 following line contains 3 timestamps, of respectively
the app draw time, the vsync timestamp just prior the call to set and
the timestamp of the call to set.

Change-Id: Ib6b6da1d7e2e6ba49c282bdbc0b56a7dc203343a
services/surfaceflinger/DisplayHardware/DisplayHardware.cpp
services/surfaceflinger/DisplayHardware/DisplayHardware.h
services/surfaceflinger/EventThread.cpp
services/surfaceflinger/Layer.cpp
services/surfaceflinger/Layer.h
services/surfaceflinger/LayerBase.cpp
services/surfaceflinger/LayerBase.h
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h