[SfStats] Temporarily enable timestats by default.
Dogfood devices right now don't have telemetry enabled while we move
onto statsd, so this code is not exercised at all in dogfood.
Bug: 136597024
Bug: 140266250
Test: adb shell dumpsys SurfaceFlinger --timestats -dump
Change-Id: Ia11b980107efc8a8788aa3720ebd735f63a5fb8a
diff --git a/services/surfaceflinger/TimeStats/TimeStats.cpp b/services/surfaceflinger/TimeStats/TimeStats.cpp
index b01fa81..3df8360 100644
--- a/services/surfaceflinger/TimeStats/TimeStats.cpp
+++ b/services/surfaceflinger/TimeStats/TimeStats.cpp
@@ -34,6 +34,14 @@
namespace impl {
+TimeStats::TimeStats() {
+ // Temporarily enable TimeStats by default. Telemetry is disabled while
+ // we move onto statsd, so TimeStats is currently not exercised at all
+ // during testing.
+ // TODO: remove this.
+ enable();
+}
+
void TimeStats::parseArgs(bool asProto, const Vector<String16>& args, std::string& result) {
ATRACE_CALL();