Improve viewer stats collection and display
authorBrian Osman <brianosman@google.com>
Thu, 9 Feb 2017 17:10:20 +0000 (12:10 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 9 Feb 2017 17:26:09 +0000 (17:26 +0000)
commit1df161ab8a6aac3ca528fd5ffdecd08438889d97
tree72eef45b7bd514b677ff967f312a726c91162d4c
parent75435bf7c9b84a2ba0c76885879cbed425cc85a2
Improve viewer stats collection and display

Measure the time taken for animation and flush. Exclude UI and stats logic
from the timing. Use stacked bars to visualize the breakdown of time
within a frame.

BUG=skia:

Change-Id: I7ef84442a68147f02f65b6aa4452768fd3314de2
Reviewed-on: https://skia-review.googlesource.com/8227
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
tools/viewer/Viewer.cpp
tools/viewer/Viewer.h