commit | e4034bbadc95a2887d31de42298ab859dc9b36d8 | [log] [tgz] |
---|---|---|
author | Alec Mouri <alecmouri@google.com> | Tue Nov 19 12:45:54 2019 -0800 |
committer | Alec Mouri <alecmouri@google.com> | Thu Dec 05 20:15:46 2019 -0800 |
tree | d30f4d0a2cc57714b082ee7b3d36f65a38956852 | |
parent | 9519bf1e32daf44a8f18ebd9a192447abf290001 [diff] [blame] |
[TimeStats] Track RenderEngine time per frame. Bug: 144037240 Test: dumpsys SurfaceFlinger --timestats -dump Change-Id: I7a4dd680ed08e3a7a05e3fd08d5e133e9d394193
diff --git a/services/surfaceflinger/tests/unittests/TestableSurfaceFlinger.h b/services/surfaceflinger/tests/unittests/TestableSurfaceFlinger.h index 94fc5f7..e05e7a5 100644 --- a/services/surfaceflinger/tests/unittests/TestableSurfaceFlinger.h +++ b/services/surfaceflinger/tests/unittests/TestableSurfaceFlinger.h
@@ -189,6 +189,10 @@ std::make_unique<impl::HWComposer>(std::move(composer))); } + void setupTimeStats(const std::shared_ptr<TimeStats>& timeStats) { + mFlinger->mCompositionEngine->setTimeStats(timeStats); + } + void setupScheduler(std::unique_ptr<DispSync> primaryDispSync, std::unique_ptr<EventControlThread> eventControlThread, std::unique_ptr<EventThread> appEventThread,