diff options
author | Svetoslav <svetoslavganov@google.com> | 2014-03-20 10:28:31 -0700 |
---|---|---|
committer | Svetoslav <svetoslavganov@google.com> | 2014-04-10 12:32:19 -0700 |
commit | d85084b2b65828442eafaff9b811e9b6c9ca9fad (patch) | |
tree | 66613651a40a32e811f8fc9a7ad55d6f4d810c4d /services/surfaceflinger/FrameTracker.h | |
parent | f74865eb525b34af7983777a522a5bfc496fc1c5 (diff) | |
download | frameworks_native-d85084b2b65828442eafaff9b811e9b6c9ca9fad.zip frameworks_native-d85084b2b65828442eafaff9b811e9b6c9ca9fad.tar.gz frameworks_native-d85084b2b65828442eafaff9b811e9b6c9ca9fad.tar.bz2 |
Adding render stats APIs to UiAutomation (framework native).
bug:12927198
Change-Id: Ibb1c07f7d89e11281e5c1f27f412a29ac6f9c4ab
Diffstat (limited to 'services/surfaceflinger/FrameTracker.h')
-rw-r--r-- | services/surfaceflinger/FrameTracker.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/services/surfaceflinger/FrameTracker.h b/services/surfaceflinger/FrameTracker.h index 9233247..cd5e3f3 100644 --- a/services/surfaceflinger/FrameTracker.h +++ b/services/surfaceflinger/FrameTracker.h @@ -78,15 +78,18 @@ public: // advanceFrame advances the frame tracker to the next frame. void advanceFrame(); - // clear resets all the tracked frame data to zero. - void clear(); + // clearStats clears the tracked frame stats. + void clearStats(); + + // getStats gets the tracked frame stats. + void getStats(FrameStats* outStats) const; // logAndResetStats dumps the current statistics to the binary event log // and then resets the accumulated statistics to their initial values. void logAndResetStats(const String8& name); - // dump appends the current frame display time history to the result string. - void dump(String8& result) const; + // dumpStats dump appends the current frame display time history to the result string. + void dumpStats(String8& result) const; private: struct FrameRecord { |