diff options
| author | 2020-05-18 22:10:38 +0000 | |
|---|---|---|
| committer | 2020-05-18 22:10:38 +0000 | |
| commit | b79738ea7064d3880a3eea54238fb0ebb17291f0 (patch) | |
| tree | a9e1a2bfe4acee2b65195e0a3e915fcd05503b76 | |
| parent | 51a1625ac047e31f9025130507b69bf5a9112c03 (diff) | |
| parent | f2156e1a32f75221a87121d9c0d5be27adaaf009 (diff) | |
Merge "Remove hot-path logging" into rvc-dev
| -rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index e65b80a9b4..18f789eacc 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -1943,13 +1943,9 @@ void SurfaceFlinger::onMessageInvalidate(nsecs_t expectedVSyncTime) { const nsecs_t jankDuration = currentTime - mMissedFrameJankStart; if (jankDuration > kMinJankyDuration && jankDuration < kMaxJankyDuration) { ATRACE_NAME("Jank detected"); - ALOGD("Detected janky event. Missed frames: %d", mMissedFrameJankCount); const int32_t jankyDurationMillis = jankDuration / (1000 * 1000); - { - ATRACE_NAME("Pushing to statsd"); - android::util::stats_write(android::util::DISPLAY_JANK_REPORTED, - jankyDurationMillis, mMissedFrameJankCount); - } + android::util::stats_write(android::util::DISPLAY_JANK_REPORTED, + jankyDurationMillis, mMissedFrameJankCount); } // We either reported a jank event or we missed the trace |