blob: 8fac8e910207f7cc0e5eaa4fcd354e01b6909522 [file] [log] [blame]
Yiwei Zhang0102ad22018-05-02 17:37:17 -07001/*
2 * Copyright 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
Peiyong Lin65248e02020-04-18 21:15:07 -070019// TODO(b/129481165): remove the #pragma below and fix conversion issues
Alec Mouri9a29e672020-09-14 12:39:14 -070020#include <cstdint>
Peiyong Lin65248e02020-04-18 21:15:07 -070021#pragma clang diagnostic push
22#pragma clang diagnostic ignored "-Wconversion"
Marin Shalamanovbed7fd32020-12-21 20:02:20 +010023#pragma clang diagnostic ignored "-Wextra"
Peiyong Lin65248e02020-04-18 21:15:07 -070024
25#include <android/hardware/graphics/composer/2.4/IComposerClient.h>
26
27// TODO(b/129481165): remove the #pragma below and fix conversion issues
Marin Shalamanovbed7fd32020-12-21 20:02:20 +010028#pragma clang diagnostic pop // ignored "-Wconversion -Wextra"
Peiyong Lin65248e02020-04-18 21:15:07 -070029
Alec Mouri8e2f31b2020-01-16 22:04:35 +000030#include <stats_event.h>
31#include <stats_pull_atom_callback.h>
32#include <statslog.h>
Yiwei Zhang0102ad22018-05-02 17:37:17 -070033#include <timestatsproto/TimeStatsHelper.h>
34#include <timestatsproto/TimeStatsProtoHeader.h>
Jorim Jaggi5814ab82020-12-03 20:45:58 +010035#include <gui/JankInfo.h>
Yiwei Zhang0102ad22018-05-02 17:37:17 -070036#include <ui/FenceTime.h>
Yiwei Zhang0102ad22018-05-02 17:37:17 -070037#include <utils/String16.h>
Yiwei Zhang0102ad22018-05-02 17:37:17 -070038#include <utils/Vector.h>
39
Yiwei Zhangc5f2c452018-05-08 16:31:56 -070040#include <deque>
Yiwei Zhang0102ad22018-05-02 17:37:17 -070041#include <mutex>
Yiwei Zhang8a4015c2018-05-08 16:03:47 -070042#include <optional>
Yiwei Zhang0102ad22018-05-02 17:37:17 -070043#include <unordered_map>
Alec Mourie4034bb2019-11-19 12:45:54 -080044#include <variant>
Yiwei Zhang0102ad22018-05-02 17:37:17 -070045
46using namespace android::surfaceflinger;
47
48namespace android {
Yiwei Zhang0102ad22018-05-02 17:37:17 -070049
50class TimeStats {
Alec Mourifb571ea2019-01-24 18:42:10 -080051public:
52 virtual ~TimeStats() = default;
53
Alec Mouri8e2f31b2020-01-16 22:04:35 +000054 // Called once boot has been finished to perform additional capabilities,
55 // e.g. registration to statsd.
56 virtual void onBootFinished() = 0;
57
Alec Mourifb571ea2019-01-24 18:42:10 -080058 virtual void parseArgs(bool asProto, const Vector<String16>& args, std::string& result) = 0;
59 virtual bool isEnabled() = 0;
Oliver Nguyenf3b7c9c2019-05-07 13:28:07 -070060 virtual std::string miniDump() = 0;
Alec Mourifb571ea2019-01-24 18:42:10 -080061
62 virtual void incrementTotalFrames() = 0;
63 virtual void incrementMissedFrames() = 0;
64 virtual void incrementClientCompositionFrames() = 0;
Vishnu Nair9b079a22020-01-21 14:36:08 -080065 virtual void incrementClientCompositionReusedFrames() = 0;
Alec Mouri8de697e2020-03-19 10:52:01 -070066 // Increments the number of times the display refresh rate changed.
67 virtual void incrementRefreshRateSwitches() = 0;
Alec Mouri8f7a0102020-04-15 12:11:10 -070068 // Increments the number of changes in composition strategy
69 // The intention is to reflect the number of changes between hwc and gpu
70 // composition, where "gpu composition" may also include mixed composition.
71 virtual void incrementCompositionStrategyChanges() = 0;
Alec Mouri717bcb62020-02-10 17:07:19 -080072 // Records the most up-to-date count of display event connections.
73 // The stored count will be the maximum ever recoded.
74 virtual void recordDisplayEventConnectionCount(int32_t count) = 0;
Alec Mourifb571ea2019-01-24 18:42:10 -080075
Alec Mouri9519bf12019-11-15 16:54:44 -080076 // Records the start and end times for a frame.
77 // The start time is the same as the beginning of a SurfaceFlinger
78 // invalidate message.
79 // The end time corresponds to when SurfaceFlinger finishes submitting the
80 // request to HWC to present a frame.
81 virtual void recordFrameDuration(nsecs_t startTime, nsecs_t endTime) = 0;
Alec Mourie4034bb2019-11-19 12:45:54 -080082 // Records the start time and end times for when RenderEngine begins work.
83 // The start time corresponds to the beginning of RenderEngine::drawLayers.
84 // The end time corresponds to when RenderEngine finishes rendering.
85 virtual void recordRenderEngineDuration(nsecs_t startTime, nsecs_t endTime) = 0;
86 // Same as above, but passes in a fence representing the end time.
87 virtual void recordRenderEngineDuration(nsecs_t startTime,
88 const std::shared_ptr<FenceTime>& readyFence) = 0;
Alec Mouri9519bf12019-11-15 16:54:44 -080089
Yiwei Zhang1a88c402019-11-18 10:43:58 -080090 virtual void setPostTime(int32_t layerId, uint64_t frameNumber, const std::string& layerName,
Alec Mouri9a29e672020-09-14 12:39:14 -070091 uid_t uid, nsecs_t postTime) = 0;
Yiwei Zhang1a88c402019-11-18 10:43:58 -080092 virtual void setLatchTime(int32_t layerId, uint64_t frameNumber, nsecs_t latchTime) = 0;
Alec Mouri91f6df32020-01-30 08:48:58 -080093 // Reasons why latching a particular buffer may be skipped
94 enum class LatchSkipReason {
95 // If the acquire fence did not fire on some devices we skip latching
96 // the buffer until the fence fires.
97 LateAcquire,
98 };
99 // Increments the counter of skipped latch buffers.
100 virtual void incrementLatchSkipped(int32_t layerId, LatchSkipReason reason) = 0;
101 // Increments the counter of bad desired present times for this layer.
102 // Bad desired present times are "implausible" and cause SurfaceFlinger to
103 // latch a buffer immediately to avoid stalling.
104 virtual void incrementBadDesiredPresent(int32_t layerId) = 0;
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800105 virtual void setDesiredTime(int32_t layerId, uint64_t frameNumber, nsecs_t desiredTime) = 0;
106 virtual void setAcquireTime(int32_t layerId, uint64_t frameNumber, nsecs_t acquireTime) = 0;
107 virtual void setAcquireFence(int32_t layerId, uint64_t frameNumber,
Alec Mourifb571ea2019-01-24 18:42:10 -0800108 const std::shared_ptr<FenceTime>& acquireFence) = 0;
Alec Mourie4034bb2019-11-19 12:45:54 -0800109 // SetPresent{Time, Fence} are not expected to be called in the critical
110 // rendering path, as they flush prior fences if those fences have fired.
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800111 virtual void setPresentTime(int32_t layerId, uint64_t frameNumber, nsecs_t presentTime) = 0;
112 virtual void setPresentFence(int32_t layerId, uint64_t frameNumber,
Alec Mourifb571ea2019-01-24 18:42:10 -0800113 const std::shared_ptr<FenceTime>& presentFence) = 0;
Alec Mouri9a29e672020-09-14 12:39:14 -0700114
Alec Mouri9a29e672020-09-14 12:39:14 -0700115 // Increments janky frames, tracked globally. Because FrameTimeline is the infrastructure
116 // responsible for computing jank in the system, this is expected to be called from
117 // FrameTimeline, rather than directly from SurfaceFlinger or individual layers. If there are no
118 // jank reasons, then total frames are incremented but jank is not, for accurate accounting of
119 // janky frames.
120 virtual void incrementJankyFrames(int32_t reasons) = 0;
121 // Increments janky frames, blamed to the provided {uid, layerName} key, with JankMetadata as
122 // supplementary reasons for the jank. Because FrameTimeline is the infrastructure responsible
123 // for computing jank in the system, this is expected to be called from FrameTimeline, rather
124 // than directly from SurfaceFlinger or individual layers.
125 // If there are no jank reasons, then total frames are incremented but jank is not, for accurate
126 // accounting of janky frames.
127 virtual void incrementJankyFrames(uid_t uid, const std::string& layerName, int32_t reasons) = 0;
Alec Mourifb571ea2019-01-24 18:42:10 -0800128 // Clean up the layer record
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800129 virtual void onDestroy(int32_t layerId) = 0;
Alec Mourifb571ea2019-01-24 18:42:10 -0800130 // If SF skips or rejects a buffer, remove the corresponding TimeRecord.
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800131 virtual void removeTimeRecord(int32_t layerId, uint64_t frameNumber) = 0;
Alec Mourifb571ea2019-01-24 18:42:10 -0800132
Peiyong Lin65248e02020-04-18 21:15:07 -0700133 virtual void setPowerMode(
134 hardware::graphics::composer::V2_4::IComposerClient::PowerMode powerMode) = 0;
Alec Mourifb571ea2019-01-24 18:42:10 -0800135 // Source of truth is RefrehRateStats.
136 virtual void recordRefreshRate(uint32_t fps, nsecs_t duration) = 0;
137 virtual void setPresentFenceGlobal(const std::shared_ptr<FenceTime>& presentFence) = 0;
138};
139
140namespace impl {
141
142class TimeStats : public android::TimeStats {
Peiyong Lin65248e02020-04-18 21:15:07 -0700143 using PowerMode = android::hardware::graphics::composer::V2_4::IComposerClient::PowerMode;
144
Yiwei Zhangcf50ab92018-06-14 10:50:12 -0700145 struct FrameTime {
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700146 uint64_t frameNumber = 0;
147 nsecs_t postTime = 0;
148 nsecs_t latchTime = 0;
149 nsecs_t acquireTime = 0;
150 nsecs_t desiredTime = 0;
151 nsecs_t presentTime = 0;
Yiwei Zhangcf50ab92018-06-14 10:50:12 -0700152 };
153
154 struct TimeRecord {
155 bool ready = false;
156 FrameTime frameTime;
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700157 std::shared_ptr<FenceTime> acquireFence;
158 std::shared_ptr<FenceTime> presentFence;
159 };
160
161 struct LayerRecord {
Alec Mouri9a29e672020-09-14 12:39:14 -0700162 uid_t uid;
Yiwei Zhang9689e2f2018-05-11 12:33:23 -0700163 std::string layerName;
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700164 // This is the index in timeRecords, at which the timestamps for that
165 // specific frame are still not fully received. This is not waiting for
166 // fences to signal, but rather waiting to receive those fences/timestamps.
167 int32_t waitData = -1;
Yiwei Zhangeaeea062018-06-28 14:46:51 -0700168 uint32_t droppedFrames = 0;
Alec Mouri91f6df32020-01-30 08:48:58 -0800169 uint32_t lateAcquireFrames = 0;
170 uint32_t badDesiredPresentFrames = 0;
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700171 TimeRecord prevTimeRecord;
Yiwei Zhangc5f2c452018-05-08 16:31:56 -0700172 std::deque<TimeRecord> timeRecords;
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700173 };
174
Yiwei Zhang3a226d22018-10-16 09:23:03 -0700175 struct PowerTime {
Peiyong Lin65248e02020-04-18 21:15:07 -0700176 PowerMode powerMode = PowerMode::OFF;
Yiwei Zhang3a226d22018-10-16 09:23:03 -0700177 nsecs_t prevTime = 0;
178 };
179
Alec Mourie4034bb2019-11-19 12:45:54 -0800180 struct RenderEngineDuration {
181 nsecs_t startTime;
182 std::variant<nsecs_t, std::shared_ptr<FenceTime>> endTime;
183 };
184
Yiwei Zhangce6ebc02018-10-20 12:42:38 -0700185 struct GlobalRecord {
186 nsecs_t prevPresentTime = 0;
187 std::deque<std::shared_ptr<FenceTime>> presentFences;
Alec Mourie4034bb2019-11-19 12:45:54 -0800188 std::deque<RenderEngineDuration> renderEngineDurations;
Yiwei Zhangce6ebc02018-10-20 12:42:38 -0700189 };
190
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700191public:
Alec Mourib3885ad2019-09-06 17:08:55 -0700192 TimeStats();
Yiwei Zhang7e666a52018-11-15 13:33:42 -0800193
Alec Mouri8e2f31b2020-01-16 22:04:35 +0000194 // Delegate to the statsd service and associated APIs.
195 // Production code may use this class directly, whereas unit test may define
196 // a subclass for ease of testing.
197 class StatsEventDelegate {
198 public:
199 virtual ~StatsEventDelegate() = default;
Tej Singh2a457b62020-01-31 16:16:10 -0800200 virtual AStatsEvent* addStatsEventToPullData(AStatsEventList* data) {
201 return AStatsEventList_addStatsEvent(data);
Alec Mouri8e2f31b2020-01-16 22:04:35 +0000202 }
Tej Singh38a4b212020-03-13 19:04:51 -0700203 virtual void setStatsPullAtomCallback(int32_t atom_tag,
204 AStatsManager_PullAtomMetadata* metadata,
205 AStatsManager_PullAtomCallback callback,
206 void* cookie) {
207 return AStatsManager_setPullAtomCallback(atom_tag, metadata, callback, cookie);
Alec Mouri8e2f31b2020-01-16 22:04:35 +0000208 }
209
Tej Singh38a4b212020-03-13 19:04:51 -0700210 virtual void clearStatsPullAtomCallback(int32_t atom_tag) {
211 return AStatsManager_clearPullAtomCallback(atom_tag);
Alec Mouri8e2f31b2020-01-16 22:04:35 +0000212 }
213
Tej Singh2a457b62020-01-31 16:16:10 -0800214 virtual void statsEventSetAtomId(AStatsEvent* event, uint32_t atom_id) {
215 return AStatsEvent_setAtomId(event, atom_id);
Alec Mouri8e2f31b2020-01-16 22:04:35 +0000216 }
217
Alec Mouri717bcb62020-02-10 17:07:19 -0800218 virtual void statsEventWriteInt32(AStatsEvent* event, int32_t field) {
219 return AStatsEvent_writeInt32(event, field);
220 }
221
Tej Singh2a457b62020-01-31 16:16:10 -0800222 virtual void statsEventWriteInt64(AStatsEvent* event, int64_t field) {
223 return AStatsEvent_writeInt64(event, field);
Alec Mouri8e2f31b2020-01-16 22:04:35 +0000224 }
225
Tej Singh2a457b62020-01-31 16:16:10 -0800226 virtual void statsEventWriteString8(AStatsEvent* event, const char* field) {
227 return AStatsEvent_writeString(event, field);
Alec Mouri37384342020-01-02 17:23:37 -0800228 }
229
Tej Singh2a457b62020-01-31 16:16:10 -0800230 virtual void statsEventWriteByteArray(AStatsEvent* event, const uint8_t* buf,
Alec Mouri37384342020-01-02 17:23:37 -0800231 size_t numBytes) {
Tej Singh2a457b62020-01-31 16:16:10 -0800232 return AStatsEvent_writeByteArray(event, buf, numBytes);
Alec Mouri37384342020-01-02 17:23:37 -0800233 }
234
Tej Singh2a457b62020-01-31 16:16:10 -0800235 virtual void statsEventBuild(AStatsEvent* event) { return AStatsEvent_build(event); }
Alec Mouri8e2f31b2020-01-16 22:04:35 +0000236 };
237 // For testing only for injecting custom dependencies.
Alec Mouri37384342020-01-02 17:23:37 -0800238 TimeStats(std::unique_ptr<StatsEventDelegate> statsDelegate,
239 std::optional<size_t> maxPulledLayers,
240 std::optional<size_t> maxPulledHistogramBuckets);
Alec Mouri8e2f31b2020-01-16 22:04:35 +0000241
Alec Mouri3ecd5cd2020-01-29 12:53:07 -0800242 ~TimeStats() override;
243
Alec Mouri8e2f31b2020-01-16 22:04:35 +0000244 void onBootFinished() override;
Alec Mourifb571ea2019-01-24 18:42:10 -0800245 void parseArgs(bool asProto, const Vector<String16>& args, std::string& result) override;
246 bool isEnabled() override;
Yiwei Zhang7eb58b72019-04-22 19:00:02 -0700247 std::string miniDump() override;
Yiwei Zhang7e666a52018-11-15 13:33:42 -0800248
Alec Mourifb571ea2019-01-24 18:42:10 -0800249 void incrementTotalFrames() override;
250 void incrementMissedFrames() override;
251 void incrementClientCompositionFrames() override;
Vishnu Nair9b079a22020-01-21 14:36:08 -0800252 void incrementClientCompositionReusedFrames() override;
Alec Mouri8de697e2020-03-19 10:52:01 -0700253 void incrementRefreshRateSwitches() override;
Alec Mouri8f7a0102020-04-15 12:11:10 -0700254 void incrementCompositionStrategyChanges() override;
Alec Mouri717bcb62020-02-10 17:07:19 -0800255 void recordDisplayEventConnectionCount(int32_t count) override;
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700256
Alec Mouri9519bf12019-11-15 16:54:44 -0800257 void recordFrameDuration(nsecs_t startTime, nsecs_t endTime) override;
Alec Mourie4034bb2019-11-19 12:45:54 -0800258 void recordRenderEngineDuration(nsecs_t startTime, nsecs_t endTime) override;
259 void recordRenderEngineDuration(nsecs_t startTime,
260 const std::shared_ptr<FenceTime>& readyFence) override;
Alec Mouri9519bf12019-11-15 16:54:44 -0800261
Alec Mouri9a29e672020-09-14 12:39:14 -0700262 void setPostTime(int32_t layerId, uint64_t frameNumber, const std::string& layerName, uid_t uid,
Alec Mourifb571ea2019-01-24 18:42:10 -0800263 nsecs_t postTime) override;
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800264 void setLatchTime(int32_t layerId, uint64_t frameNumber, nsecs_t latchTime) override;
Alec Mouri91f6df32020-01-30 08:48:58 -0800265 void incrementLatchSkipped(int32_t layerId, LatchSkipReason reason) override;
266 void incrementBadDesiredPresent(int32_t layerId) override;
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800267 void setDesiredTime(int32_t layerId, uint64_t frameNumber, nsecs_t desiredTime) override;
268 void setAcquireTime(int32_t layerId, uint64_t frameNumber, nsecs_t acquireTime) override;
269 void setAcquireFence(int32_t layerId, uint64_t frameNumber,
Alec Mourifb571ea2019-01-24 18:42:10 -0800270 const std::shared_ptr<FenceTime>& acquireFence) override;
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800271 void setPresentTime(int32_t layerId, uint64_t frameNumber, nsecs_t presentTime) override;
272 void setPresentFence(int32_t layerId, uint64_t frameNumber,
Alec Mourifb571ea2019-01-24 18:42:10 -0800273 const std::shared_ptr<FenceTime>& presentFence) override;
Alec Mouri9a29e672020-09-14 12:39:14 -0700274 void incrementJankyFrames(int32_t reasons) override;
275 void incrementJankyFrames(uid_t uid, const std::string& layerName, int32_t reasons) override;
Yiwei Zhangaf8ee942018-11-22 00:15:23 -0800276 // Clean up the layer record
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800277 void onDestroy(int32_t layerId) override;
Yiwei Zhangeaeea062018-06-28 14:46:51 -0700278 // If SF skips or rejects a buffer, remove the corresponding TimeRecord.
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800279 void removeTimeRecord(int32_t layerId, uint64_t frameNumber) override;
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700280
Peiyong Lin65248e02020-04-18 21:15:07 -0700281 void setPowerMode(
282 hardware::graphics::composer::V2_4::IComposerClient::PowerMode powerMode) override;
Alec Mourifb571ea2019-01-24 18:42:10 -0800283 // Source of truth is RefrehRateStats.
284 void recordRefreshRate(uint32_t fps, nsecs_t duration) override;
285 void setPresentFenceGlobal(const std::shared_ptr<FenceTime>& presentFence) override;
Yiwei Zhang3a226d22018-10-16 09:23:03 -0700286
Yiwei Zhangaf8ee942018-11-22 00:15:23 -0800287 static const size_t MAX_NUM_TIME_RECORDS = 64;
288
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700289private:
Tej Singh2a457b62020-01-31 16:16:10 -0800290 static AStatsManager_PullAtomCallbackReturn pullAtomCallback(int32_t atom_tag,
291 AStatsEventList* data,
292 void* cookie);
293 AStatsManager_PullAtomCallbackReturn populateGlobalAtom(AStatsEventList* data);
294 AStatsManager_PullAtomCallbackReturn populateLayerAtom(AStatsEventList* data);
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800295 bool recordReadyLocked(int32_t layerId, TimeRecord* timeRecord);
296 void flushAvailableRecordsToStatsLocked(int32_t layerId);
Yiwei Zhang3a226d22018-10-16 09:23:03 -0700297 void flushPowerTimeLocked();
Yiwei Zhangce6ebc02018-10-20 12:42:38 -0700298 void flushAvailableGlobalRecordsToStatsLocked();
Alec Mouri9a29e672020-09-14 12:39:14 -0700299 bool canAddNewAggregatedStats(uid_t uid, const std::string& layerName);
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700300
301 void enable();
302 void disable();
Alec Mouri8e2f31b2020-01-16 22:04:35 +0000303 void clearAll();
304 void clearGlobalLocked();
305 void clearLayersLocked();
Yiwei Zhang5434a782018-12-05 18:06:32 -0800306 void dump(bool asProto, std::optional<uint32_t> maxLayers, std::string& result);
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700307
308 std::atomic<bool> mEnabled = false;
309 std::mutex mMutex;
Yiwei Zhangdc224042018-10-18 15:34:00 -0700310 TimeStatsHelper::TimeStatsGlobal mTimeStats;
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800311 // Hashmap for LayerRecord with layerId as the hash key
Yiwei Zhang9689e2f2018-05-11 12:33:23 -0700312 std::unordered_map<int32_t, LayerRecord> mTimeStatsTracker;
Yiwei Zhang3a226d22018-10-16 09:23:03 -0700313 PowerTime mPowerTime;
Yiwei Zhangce6ebc02018-10-20 12:42:38 -0700314 GlobalRecord mGlobalRecord;
Yiwei Zhang7eb58b72019-04-22 19:00:02 -0700315
316 static const size_t MAX_NUM_LAYER_RECORDS = 200;
Yiwei Zhange926ab52019-08-14 15:16:00 -0700317 static const size_t MAX_NUM_LAYER_STATS = 200;
Alec Mouri8e2f31b2020-01-16 22:04:35 +0000318 std::unique_ptr<StatsEventDelegate> mStatsDelegate = std::make_unique<StatsEventDelegate>();
Alec Mouri37384342020-01-02 17:23:37 -0800319 size_t mMaxPulledLayers = 8;
320 size_t mMaxPulledHistogramBuckets = 6;
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700321};
322
Alec Mourifb571ea2019-01-24 18:42:10 -0800323} // namespace impl
324
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700325} // namespace android