blob: 5b0f5bd13dbfd5a5856be29fe9885164ff1b2c70 [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 Mouri7d436ec2021-01-27 20:40:50 -080030#include <../Fps.h>
31#include <gui/JankInfo.h>
Yiwei Zhang0102ad22018-05-02 17:37:17 -070032#include <timestatsproto/TimeStatsHelper.h>
33#include <timestatsproto/TimeStatsProtoHeader.h>
Yiwei Zhang0102ad22018-05-02 17:37:17 -070034#include <ui/FenceTime.h>
Yiwei Zhang0102ad22018-05-02 17:37:17 -070035#include <utils/String16.h>
Yiwei Zhang0102ad22018-05-02 17:37:17 -070036#include <utils/Vector.h>
37
Yiwei Zhangc5f2c452018-05-08 16:31:56 -070038#include <deque>
Yiwei Zhang0102ad22018-05-02 17:37:17 -070039#include <mutex>
Yiwei Zhang8a4015c2018-05-08 16:03:47 -070040#include <optional>
Yiwei Zhang0102ad22018-05-02 17:37:17 -070041#include <unordered_map>
Alec Mourie4034bb2019-11-19 12:45:54 -080042#include <variant>
Yiwei Zhang0102ad22018-05-02 17:37:17 -070043
44using namespace android::surfaceflinger;
45
46namespace android {
Yiwei Zhang0102ad22018-05-02 17:37:17 -070047
48class TimeStats {
Alec Mourifb571ea2019-01-24 18:42:10 -080049public:
Ady Abraham8b9e6122021-01-26 19:11:45 -080050 using SetFrameRateVote = TimeStatsHelper::SetFrameRateVote;
51
Alec Mourifb571ea2019-01-24 18:42:10 -080052 virtual ~TimeStats() = default;
53
Tej Singhe2751772021-04-06 22:05:29 -070054 // Process a pull request from statsd.
55 virtual bool onPullAtom(const int atomId, std::string* pulledData);
Alec Mouri8e2f31b2020-01-16 22:04:35 +000056
Alec Mourifb571ea2019-01-24 18:42:10 -080057 virtual void parseArgs(bool asProto, const Vector<String16>& args, std::string& result) = 0;
58 virtual bool isEnabled() = 0;
Oliver Nguyenf3b7c9c2019-05-07 13:28:07 -070059 virtual std::string miniDump() = 0;
Alec Mourifb571ea2019-01-24 18:42:10 -080060
61 virtual void incrementTotalFrames() = 0;
62 virtual void incrementMissedFrames() = 0;
63 virtual void incrementClientCompositionFrames() = 0;
Vishnu Nair9b079a22020-01-21 14:36:08 -080064 virtual void incrementClientCompositionReusedFrames() = 0;
Alec Mouri8de697e2020-03-19 10:52:01 -070065 // Increments the number of times the display refresh rate changed.
66 virtual void incrementRefreshRateSwitches() = 0;
Alec Mouri8f7a0102020-04-15 12:11:10 -070067 // Increments the number of changes in composition strategy
68 // The intention is to reflect the number of changes between hwc and gpu
69 // composition, where "gpu composition" may also include mixed composition.
70 virtual void incrementCompositionStrategyChanges() = 0;
Alec Mouri717bcb62020-02-10 17:07:19 -080071 // Records the most up-to-date count of display event connections.
72 // The stored count will be the maximum ever recoded.
73 virtual void recordDisplayEventConnectionCount(int32_t count) = 0;
Alec Mourifb571ea2019-01-24 18:42:10 -080074
Alec Mouri9519bf12019-11-15 16:54:44 -080075 // Records the start and end times for a frame.
76 // The start time is the same as the beginning of a SurfaceFlinger
77 // invalidate message.
78 // The end time corresponds to when SurfaceFlinger finishes submitting the
79 // request to HWC to present a frame.
80 virtual void recordFrameDuration(nsecs_t startTime, nsecs_t endTime) = 0;
Alec Mourie4034bb2019-11-19 12:45:54 -080081 // Records the start time and end times for when RenderEngine begins work.
82 // The start time corresponds to the beginning of RenderEngine::drawLayers.
83 // The end time corresponds to when RenderEngine finishes rendering.
84 virtual void recordRenderEngineDuration(nsecs_t startTime, nsecs_t endTime) = 0;
85 // Same as above, but passes in a fence representing the end time.
86 virtual void recordRenderEngineDuration(nsecs_t startTime,
87 const std::shared_ptr<FenceTime>& readyFence) = 0;
Alec Mouri9519bf12019-11-15 16:54:44 -080088
Yiwei Zhang1a88c402019-11-18 10:43:58 -080089 virtual void setPostTime(int32_t layerId, uint64_t frameNumber, const std::string& layerName,
Alec Mouri9a29e672020-09-14 12:39:14 -070090 uid_t uid, nsecs_t postTime) = 0;
Yiwei Zhang1a88c402019-11-18 10:43:58 -080091 virtual void setLatchTime(int32_t layerId, uint64_t frameNumber, nsecs_t latchTime) = 0;
Alec Mouri91f6df32020-01-30 08:48:58 -080092 // Reasons why latching a particular buffer may be skipped
93 enum class LatchSkipReason {
94 // If the acquire fence did not fire on some devices we skip latching
95 // the buffer until the fence fires.
96 LateAcquire,
97 };
98 // Increments the counter of skipped latch buffers.
99 virtual void incrementLatchSkipped(int32_t layerId, LatchSkipReason reason) = 0;
100 // Increments the counter of bad desired present times for this layer.
101 // Bad desired present times are "implausible" and cause SurfaceFlinger to
102 // latch a buffer immediately to avoid stalling.
103 virtual void incrementBadDesiredPresent(int32_t layerId) = 0;
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800104 virtual void setDesiredTime(int32_t layerId, uint64_t frameNumber, nsecs_t desiredTime) = 0;
105 virtual void setAcquireTime(int32_t layerId, uint64_t frameNumber, nsecs_t acquireTime) = 0;
106 virtual void setAcquireFence(int32_t layerId, uint64_t frameNumber,
Alec Mourifb571ea2019-01-24 18:42:10 -0800107 const std::shared_ptr<FenceTime>& acquireFence) = 0;
Alec Mourie4034bb2019-11-19 12:45:54 -0800108 // SetPresent{Time, Fence} are not expected to be called in the critical
109 // rendering path, as they flush prior fences if those fences have fired.
Alec Mouri7d436ec2021-01-27 20:40:50 -0800110 virtual void setPresentTime(int32_t layerId, uint64_t frameNumber, nsecs_t presentTime,
Ady Abraham8b9e6122021-01-26 19:11:45 -0800111 Fps displayRefreshRate, std::optional<Fps> renderRate,
112 SetFrameRateVote frameRateVote) = 0;
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800113 virtual void setPresentFence(int32_t layerId, uint64_t frameNumber,
Alec Mouri7d436ec2021-01-27 20:40:50 -0800114 const std::shared_ptr<FenceTime>& presentFence,
Ady Abraham8b9e6122021-01-26 19:11:45 -0800115 Fps displayRefreshRate, std::optional<Fps> renderRate,
116 SetFrameRateVote frameRateVote) = 0;
Alec Mouri9a29e672020-09-14 12:39:14 -0700117
Alec Mouri7d436ec2021-01-27 20:40:50 -0800118 // Increments janky frames, blamed to the provided {refreshRate, renderRate, uid, layerName}
119 // key, with JankMetadata as supplementary reasons for the jank. Because FrameTimeline is the
120 // infrastructure responsible for computing jank in the system, this is expected to be called
121 // from FrameTimeline, rather than directly from SurfaceFlinger or individual layers. If there
122 // are no jank reasons, then total frames are incremented but jank is not, for accurate
Alec Mouri9a29e672020-09-14 12:39:14 -0700123 // accounting of janky frames.
Alec Mouri363faf02021-01-29 16:34:55 -0800124 // displayDeadlineDelta, displayPresentJitter, and appDeadlineDelta are also provided in order
125 // to provide contextual information about a janky frame. These values may only be uploaded if
126 // there was an associated valid jank reason, and they must be positive. When these frame counts
127 // are incremented, these are also aggregated into a global reporting packet to help with data
128 // validation and assessing of overall device health.
129 struct JankyFramesInfo {
130 Fps refreshRate;
131 std::optional<Fps> renderRate;
132 uid_t uid = 0;
133 std::string layerName;
134 int32_t reasons = 0;
135 nsecs_t displayDeadlineDelta = 0;
136 nsecs_t displayPresentJitter = 0;
137 nsecs_t appDeadlineDelta = 0;
138
139 bool operator==(const JankyFramesInfo& o) const {
140 return Fps::EqualsInBuckets{}(refreshRate, o.refreshRate) &&
141 ((renderRate == std::nullopt && o.renderRate == std::nullopt) ||
142 (renderRate != std::nullopt && o.renderRate != std::nullopt &&
143 Fps::EqualsInBuckets{}(*renderRate, *o.renderRate))) &&
144 uid == o.uid && layerName == o.layerName && reasons == o.reasons &&
145 displayDeadlineDelta == o.displayDeadlineDelta &&
146 displayPresentJitter == o.displayPresentJitter &&
147 appDeadlineDelta == o.appDeadlineDelta;
148 }
149
150 friend std::ostream& operator<<(std::ostream& os, const JankyFramesInfo& info) {
151 os << "JankyFramesInfo {";
152 os << "\n .refreshRate = " << info.refreshRate;
153 os << "\n .renderRate = "
154 << (info.renderRate ? to_string(*info.renderRate) : "nullopt");
155 os << "\n .uid = " << info.uid;
156 os << "\n .layerName = " << info.layerName;
157 os << "\n .reasons = " << info.reasons;
158 os << "\n .displayDeadlineDelta = " << info.displayDeadlineDelta;
159 os << "\n .displayPresentJitter = " << info.displayPresentJitter;
160 os << "\n .appDeadlineDelta = " << info.appDeadlineDelta;
161 return os << "\n}";
162 }
163 };
164
165 virtual void incrementJankyFrames(const JankyFramesInfo& info) = 0;
Alec Mourifb571ea2019-01-24 18:42:10 -0800166 // Clean up the layer record
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800167 virtual void onDestroy(int32_t layerId) = 0;
Alec Mourifb571ea2019-01-24 18:42:10 -0800168 // If SF skips or rejects a buffer, remove the corresponding TimeRecord.
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800169 virtual void removeTimeRecord(int32_t layerId, uint64_t frameNumber) = 0;
Alec Mourifb571ea2019-01-24 18:42:10 -0800170
Peiyong Lin65248e02020-04-18 21:15:07 -0700171 virtual void setPowerMode(
172 hardware::graphics::composer::V2_4::IComposerClient::PowerMode powerMode) = 0;
Alec Mourifb571ea2019-01-24 18:42:10 -0800173 // Source of truth is RefrehRateStats.
174 virtual void recordRefreshRate(uint32_t fps, nsecs_t duration) = 0;
175 virtual void setPresentFenceGlobal(const std::shared_ptr<FenceTime>& presentFence) = 0;
176};
177
178namespace impl {
179
180class TimeStats : public android::TimeStats {
Peiyong Lin65248e02020-04-18 21:15:07 -0700181 using PowerMode = android::hardware::graphics::composer::V2_4::IComposerClient::PowerMode;
182
Yiwei Zhangcf50ab92018-06-14 10:50:12 -0700183 struct FrameTime {
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700184 uint64_t frameNumber = 0;
185 nsecs_t postTime = 0;
186 nsecs_t latchTime = 0;
187 nsecs_t acquireTime = 0;
188 nsecs_t desiredTime = 0;
189 nsecs_t presentTime = 0;
Yiwei Zhangcf50ab92018-06-14 10:50:12 -0700190 };
191
192 struct TimeRecord {
193 bool ready = false;
194 FrameTime frameTime;
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700195 std::shared_ptr<FenceTime> acquireFence;
196 std::shared_ptr<FenceTime> presentFence;
197 };
198
199 struct LayerRecord {
Alec Mouri9a29e672020-09-14 12:39:14 -0700200 uid_t uid;
Yiwei Zhang9689e2f2018-05-11 12:33:23 -0700201 std::string layerName;
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700202 // This is the index in timeRecords, at which the timestamps for that
203 // specific frame are still not fully received. This is not waiting for
204 // fences to signal, but rather waiting to receive those fences/timestamps.
205 int32_t waitData = -1;
Yiwei Zhangeaeea062018-06-28 14:46:51 -0700206 uint32_t droppedFrames = 0;
Alec Mouri91f6df32020-01-30 08:48:58 -0800207 uint32_t lateAcquireFrames = 0;
208 uint32_t badDesiredPresentFrames = 0;
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700209 TimeRecord prevTimeRecord;
Yiwei Zhangc5f2c452018-05-08 16:31:56 -0700210 std::deque<TimeRecord> timeRecords;
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700211 };
212
Yiwei Zhang3a226d22018-10-16 09:23:03 -0700213 struct PowerTime {
Peiyong Lin65248e02020-04-18 21:15:07 -0700214 PowerMode powerMode = PowerMode::OFF;
Yiwei Zhang3a226d22018-10-16 09:23:03 -0700215 nsecs_t prevTime = 0;
216 };
217
Alec Mourie4034bb2019-11-19 12:45:54 -0800218 struct RenderEngineDuration {
219 nsecs_t startTime;
220 std::variant<nsecs_t, std::shared_ptr<FenceTime>> endTime;
221 };
222
Yiwei Zhangce6ebc02018-10-20 12:42:38 -0700223 struct GlobalRecord {
224 nsecs_t prevPresentTime = 0;
225 std::deque<std::shared_ptr<FenceTime>> presentFences;
Alec Mourie4034bb2019-11-19 12:45:54 -0800226 std::deque<RenderEngineDuration> renderEngineDurations;
Yiwei Zhangce6ebc02018-10-20 12:42:38 -0700227 };
228
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700229public:
Alec Mourib3885ad2019-09-06 17:08:55 -0700230 TimeStats();
Alec Mouri8e2f31b2020-01-16 22:04:35 +0000231 // For testing only for injecting custom dependencies.
Tej Singhe2751772021-04-06 22:05:29 -0700232 TimeStats(std::optional<size_t> maxPulledLayers,
Alec Mouri37384342020-01-02 17:23:37 -0800233 std::optional<size_t> maxPulledHistogramBuckets);
Alec Mouri8e2f31b2020-01-16 22:04:35 +0000234
Tej Singhe2751772021-04-06 22:05:29 -0700235 bool onPullAtom(const int atomId, std::string* pulledData) override;
Alec Mourifb571ea2019-01-24 18:42:10 -0800236 void parseArgs(bool asProto, const Vector<String16>& args, std::string& result) override;
237 bool isEnabled() override;
Yiwei Zhang7eb58b72019-04-22 19:00:02 -0700238 std::string miniDump() override;
Yiwei Zhang7e666a52018-11-15 13:33:42 -0800239
Alec Mourifb571ea2019-01-24 18:42:10 -0800240 void incrementTotalFrames() override;
241 void incrementMissedFrames() override;
242 void incrementClientCompositionFrames() override;
Vishnu Nair9b079a22020-01-21 14:36:08 -0800243 void incrementClientCompositionReusedFrames() override;
Alec Mouri8de697e2020-03-19 10:52:01 -0700244 void incrementRefreshRateSwitches() override;
Alec Mouri8f7a0102020-04-15 12:11:10 -0700245 void incrementCompositionStrategyChanges() override;
Alec Mouri717bcb62020-02-10 17:07:19 -0800246 void recordDisplayEventConnectionCount(int32_t count) override;
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700247
Alec Mouri9519bf12019-11-15 16:54:44 -0800248 void recordFrameDuration(nsecs_t startTime, nsecs_t endTime) override;
Alec Mourie4034bb2019-11-19 12:45:54 -0800249 void recordRenderEngineDuration(nsecs_t startTime, nsecs_t endTime) override;
250 void recordRenderEngineDuration(nsecs_t startTime,
251 const std::shared_ptr<FenceTime>& readyFence) override;
Alec Mouri9519bf12019-11-15 16:54:44 -0800252
Alec Mouri9a29e672020-09-14 12:39:14 -0700253 void setPostTime(int32_t layerId, uint64_t frameNumber, const std::string& layerName, uid_t uid,
Alec Mourifb571ea2019-01-24 18:42:10 -0800254 nsecs_t postTime) override;
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800255 void setLatchTime(int32_t layerId, uint64_t frameNumber, nsecs_t latchTime) override;
Alec Mouri91f6df32020-01-30 08:48:58 -0800256 void incrementLatchSkipped(int32_t layerId, LatchSkipReason reason) override;
257 void incrementBadDesiredPresent(int32_t layerId) override;
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800258 void setDesiredTime(int32_t layerId, uint64_t frameNumber, nsecs_t desiredTime) override;
259 void setAcquireTime(int32_t layerId, uint64_t frameNumber, nsecs_t acquireTime) override;
260 void setAcquireFence(int32_t layerId, uint64_t frameNumber,
Alec Mourifb571ea2019-01-24 18:42:10 -0800261 const std::shared_ptr<FenceTime>& acquireFence) override;
Alec Mouri7d436ec2021-01-27 20:40:50 -0800262 void setPresentTime(int32_t layerId, uint64_t frameNumber, nsecs_t presentTime,
Ady Abraham8b9e6122021-01-26 19:11:45 -0800263 Fps displayRefreshRate, std::optional<Fps> renderRate,
264 SetFrameRateVote frameRateVote) override;
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800265 void setPresentFence(int32_t layerId, uint64_t frameNumber,
Alec Mouri7d436ec2021-01-27 20:40:50 -0800266 const std::shared_ptr<FenceTime>& presentFence, Fps displayRefreshRate,
Ady Abraham8b9e6122021-01-26 19:11:45 -0800267 std::optional<Fps> renderRate, SetFrameRateVote frameRateVote) override;
Alec Mouri363faf02021-01-29 16:34:55 -0800268
269 void incrementJankyFrames(const JankyFramesInfo& info) override;
Yiwei Zhangaf8ee942018-11-22 00:15:23 -0800270 // Clean up the layer record
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800271 void onDestroy(int32_t layerId) override;
Yiwei Zhangeaeea062018-06-28 14:46:51 -0700272 // If SF skips or rejects a buffer, remove the corresponding TimeRecord.
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800273 void removeTimeRecord(int32_t layerId, uint64_t frameNumber) override;
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700274
Peiyong Lin65248e02020-04-18 21:15:07 -0700275 void setPowerMode(
276 hardware::graphics::composer::V2_4::IComposerClient::PowerMode powerMode) override;
Alec Mourifb571ea2019-01-24 18:42:10 -0800277 // Source of truth is RefrehRateStats.
278 void recordRefreshRate(uint32_t fps, nsecs_t duration) override;
279 void setPresentFenceGlobal(const std::shared_ptr<FenceTime>& presentFence) override;
Yiwei Zhang3a226d22018-10-16 09:23:03 -0700280
Yiwei Zhangaf8ee942018-11-22 00:15:23 -0800281 static const size_t MAX_NUM_TIME_RECORDS = 64;
282
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700283private:
Tej Singhe2751772021-04-06 22:05:29 -0700284 bool populateGlobalAtom(std::string* pulledData);
285 bool populateLayerAtom(std::string* pulledData);
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800286 bool recordReadyLocked(int32_t layerId, TimeRecord* timeRecord);
Alec Mouri7d436ec2021-01-27 20:40:50 -0800287 void flushAvailableRecordsToStatsLocked(int32_t layerId, Fps displayRefreshRate,
Ady Abraham8b9e6122021-01-26 19:11:45 -0800288 std::optional<Fps> renderRate,
289 SetFrameRateVote frameRateVote);
Yiwei Zhang3a226d22018-10-16 09:23:03 -0700290 void flushPowerTimeLocked();
Yiwei Zhangce6ebc02018-10-20 12:42:38 -0700291 void flushAvailableGlobalRecordsToStatsLocked();
Alec Mouri9a29e672020-09-14 12:39:14 -0700292 bool canAddNewAggregatedStats(uid_t uid, const std::string& layerName);
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700293
294 void enable();
295 void disable();
Alec Mouri8e2f31b2020-01-16 22:04:35 +0000296 void clearAll();
297 void clearGlobalLocked();
298 void clearLayersLocked();
Yiwei Zhang5434a782018-12-05 18:06:32 -0800299 void dump(bool asProto, std::optional<uint32_t> maxLayers, std::string& result);
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700300
301 std::atomic<bool> mEnabled = false;
302 std::mutex mMutex;
Yiwei Zhangdc224042018-10-18 15:34:00 -0700303 TimeStatsHelper::TimeStatsGlobal mTimeStats;
Yiwei Zhang1a88c402019-11-18 10:43:58 -0800304 // Hashmap for LayerRecord with layerId as the hash key
Yiwei Zhang9689e2f2018-05-11 12:33:23 -0700305 std::unordered_map<int32_t, LayerRecord> mTimeStatsTracker;
Yiwei Zhang3a226d22018-10-16 09:23:03 -0700306 PowerTime mPowerTime;
Yiwei Zhangce6ebc02018-10-20 12:42:38 -0700307 GlobalRecord mGlobalRecord;
Yiwei Zhang7eb58b72019-04-22 19:00:02 -0700308
309 static const size_t MAX_NUM_LAYER_RECORDS = 200;
Alec Mouri7d436ec2021-01-27 20:40:50 -0800310
311 static const size_t REFRESH_RATE_BUCKET_WIDTH = 30;
312 static const size_t RENDER_RATE_BUCKET_WIDTH = REFRESH_RATE_BUCKET_WIDTH;
Yiwei Zhange926ab52019-08-14 15:16:00 -0700313 static const size_t MAX_NUM_LAYER_STATS = 200;
Alec Mouri52bf7802021-01-20 08:20:50 -0800314 static const size_t MAX_NUM_PULLED_LAYERS = MAX_NUM_LAYER_STATS;
Alec Mouri52bf7802021-01-20 08:20:50 -0800315 size_t mMaxPulledLayers = MAX_NUM_PULLED_LAYERS;
Alec Mouri37384342020-01-02 17:23:37 -0800316 size_t mMaxPulledHistogramBuckets = 6;
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700317};
318
Alec Mourifb571ea2019-01-24 18:42:10 -0800319} // namespace impl
320
Yiwei Zhang0102ad22018-05-02 17:37:17 -0700321} // namespace android