History log of /frameworks/base/libs/hwui/JankTracker.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1b7184f8d206505804042833a3825a3b8a9649dc 27-Mar-2017 John Reck <jreck@google.com> Add a few asserts for possible corruption cases

Bug: 36502346
Test: builds & boots
Change-Id: Id96a26a30e4a8c6f51a68bf07cfe6bd6d07c244e
/frameworks/base/libs/hwui/JankTracker.cpp
df1742ed47da1e9b61afeae16fa448d5302a8aa0 20-Jan-2017 John Reck <jreck@google.com> Overhaul GraphicsStatsService

* LRU cache of recently-used is dead, replaced
disk storage
* ASHMEM size is read from native by the system service,
no longer requires keeping a sizeof() in sync with a
constant in Java
* Supports dumping in proto format by passing --proto
* Rotates logs on a daily basis
* Keeps a history of the most recent 3 days

Bug: 33705836
Test: Manual. Verified log rotating works by setting it up to
rotate every minute instead of day. Confirmed /data/system/graphicsstats
only has the most recent 3 entries after several minutes

Change-Id: Ib84bafb26c58701cc86f123236de4fff01aaa4aa
/frameworks/base/libs/hwui/JankTracker.cpp
96bf5985d5a360568832fd26b6d5b44236c9343e 29-Sep-2016 Mark Salyzyn <salyzyn@google.com> Replace cutils/log.h and log/logger.h with android/log.h or log/log.h
(part deux)

Test: compile
Bug: 26552300
Bug: 31289077
Change-Id: I7417936c4d3666608fccfe51a312c90ecefba2fb
/frameworks/base/libs/hwui/JankTracker.cpp
52eb4e01a49fe2e94555c000de38bbcbbb13401b 29-Sep-2016 Mark Salyzyn <salyzyn@google.com> Replace cutils/log.h and log/logger.h with log/log.h

Test: compile
Bug: 26552300
Bug: 31289077
Change-Id: I578b15b48f0fc2807a92abbc69a377c3d2191496
/frameworks/base/libs/hwui/JankTracker.cpp
2d5b8d73929a38b019c6b6276d4a19542b990f0c 29-Jul-2016 John Reck <jreck@google.com> Teach JankTracker about new swap behaviors

Bug: 30440166

If we are using HWC2, there's a change in timing
when in triple buffering with the pipelined offsets.
This changes JankTracker to recognize that and silently
erase that from the total duration

Change-Id: Ib1fd4209070f17dbd2baed707c8cf73fb11c3cf2
/frameworks/base/libs/hwui/JankTracker.cpp
126720aa65fd90105bdf54c04f327f146763c5cf 16-Apr-2016 John Reck <jreck@google.com> Switch JankTracker to FrameInfo::duration()

Fixes: 27533462

FrameInfo::duration() will remove time spent waiting
in the queue from the duration. This is desired because
that time is otherwise accounted for by the previous frame,
so we don't want to double count it.

This shows up mostly in TestSceneRunner & shadowgrid2
due to a combination of slow frame times and continous rendering.

Change-Id: I27c42d5c24d266de4ada8ea00ec9164d518754f8
/frameworks/base/libs/hwui/JankTracker.cpp
8f55d00c2aa351d6914dca4d0cc2c07725002d90 12-Apr-2016 John Reck <jreck@google.com> Fix reset() to zero slowFrameCounts

Change-Id: I9f7f7280bcd28c361e5665de39a4bd7c594ab521
Fixes: 26386641
/frameworks/base/libs/hwui/JankTracker.cpp
660108075e61d7b7e6c138000890011510d5b079 30-Mar-2016 John Reck <jreck@google.com> Expand JankTracker

Bug: 27922347

* Dump the full histogram
* Expand the histogram to have a slow-frame section with
large 50ms buckets to raise the cap to 5s to give more
insight into system-health
* Stop excluding first-frame metrics as we want to include
those in our global tracking. Automated tests already filter
these out by doing resets before running anyway.

Change-Id: Idaba8aad591f59d10a6477b11efc0767ff715083
/frameworks/base/libs/hwui/JankTracker.cpp
c7cd9cf25d9775446ffcb6b5f20b0a4c1e3c99c5 28-Mar-2016 John Reck <jreck@google.com> Add an option to try and filter out test overhead

Bug: 26912651

By setting debug.hwui.filter_test_overhead to true, hwui's
janktracker will attempt to filter out overhead caused
by the event injection that automated testing uses

Change-Id: I75c8dc5e7798e06e3009baf396108507c7240eec
/frameworks/base/libs/hwui/JankTracker.cpp
d6e3cf4ab55ea68e60597526f43e973026aa2909 28-Mar-2016 John Reck <jreck@google.com> Fix array out of bounds access in JankTracker

Fixes: 27873879

If frametime > max janktracker would accidentally
double-increment totalFrameCount due to overflowing
the end of frameCounts

Change-Id: Iebfd1349b7014ade807f42d9c196139274a96684
/frameworks/base/libs/hwui/JankTracker.cpp
5ed587f25b367cfd1f68279d6cd96ee403bd6f34 24-Mar-2016 John Reck <jreck@google.com> Track slowest frames

Fixes: 27795291

Track the 10 slowest frames over the last 24 hours
to try and give approximate insight into total system health.

Change-Id: I8aa646cef0bea185d46b3c78478266bc01d17fd7
/frameworks/base/libs/hwui/JankTracker.cpp
682573c84b7c21dc8ce4a2375da3961147442c4a 30-Oct-2015 John Reck <jreck@google.com> Add some options to macrobench

Change-Id: If8d5f5d3ace050577986a554182b2b66fd2257e1
/frameworks/base/libs/hwui/JankTracker.cpp
be3fba05e823f740f65b2679929347dc3dd282ad 06-Jul-2015 John Reck <jreck@google.com> Adjust for pipeline stalls

Bug: 20853441

Calculating duration that crosses the UI-RT
sync point will now subtract out the time spent waiting
in queue under the assumption that this time will be
accounted for in the previous frame's metrics

Change-Id: Ia8213f4410638840613f5ae439e98dfb77532a6a
/frameworks/base/libs/hwui/JankTracker.cpp
1b54fb27ac48495ed0b33868fda5776fb49fe0f3 03-Jun-2015 Chris Craik <ccraik@google.com> Delete MAKE_ENUM_FLAGS

bug:21595702

Settle on namespace-enum for consistency. Also removes k prefix.

Change-Id: Ib89f94cb9263de40b6e4636577dca4860867d0d8
/frameworks/base/libs/hwui/JankTracker.cpp
05f5674ae8cae94c9cc3f039e55747f0e787f959 08-Apr-2015 Ying Wang <wangying@google.com> Fix 64-bit build.

Change-Id: I9f2e2edf276f98864b65708b746bf938a4a3c8d6
/frameworks/base/libs/hwui/JankTracker.cpp
379f264bb62ace2cf2053d4765307234bf66552f 06-Apr-2015 John Reck <jreck@google.com> Add stat collection start time

Add CLOCK_MONOTONIC to signal
when the stat collection started
to allow for tracking stats
over time

Change-Id: Iab7c52f21184eea603ddc8572b9d91a951b45a00
/frameworks/base/libs/hwui/JankTracker.cpp
98fa0a322e6bf4f6b543487c820955d8598193b5 31-Mar-2015 John Reck <jreck@google.com> Fix warn log format

Change-Id: I7876dd5d0d0f68dde4cb0768699d800daff754f1
/frameworks/base/libs/hwui/JankTracker.cpp
edc524c90506d80e0fc5fb67e8de7b8f3ef53439 18-Mar-2015 John Reck <jreck@google.com> Add GraphicsStatsService

More S's for More Speed

Split JankTracker's backing data from the
class to allow for data relocation to/from ashmem regions

Pack the jank tracking data to fit in 256 bytes

Change-Id: Ife86a64b71a328fbd0c8075fe6a0404e081f725b
/frameworks/base/libs/hwui/JankTracker.cpp
b36016c65f1d1b5846dba0349aab491dbd3a746a 11-Mar-2015 John Reck <jreck@google.com> Cleanups & simplifications

Change-Id: I5ad5e3b8fe55b1528f2e20c63e5abe51d9e40ff1
/frameworks/base/libs/hwui/JankTracker.cpp
e70c5754d01f2ab0ff47ea3eabaa88aca5ed2a36 06-Mar-2015 John Reck <jreck@google.com> Add percentiles

Change-Id: Ieb6badd177bb6f67dda199dfcb3e0f483c8c4e59
/frameworks/base/libs/hwui/JankTracker.cpp
c87be99c6ead0720a8918ea38ce3b25e5c49e1c6 20-Feb-2015 John Reck <jreck@google.com> C++11 style fixups

Change-Id: I356d02338820bfef41a9e278c88dafc17cfe1cf9
/frameworks/base/libs/hwui/JankTracker.cpp
ba6adf66d3c44c0aa2fd8a224862ff1901d64300 19-Feb-2015 John Reck <jreck@google.com> Initial attempt at jank-tracking stat collection

Is a bit naive, perhaps overly aggressive, but sorta works

Change-Id: I01a774e00dbe681439c02557d9728ae43c45ce50
/frameworks/base/libs/hwui/JankTracker.cpp