From 2928203107c971ff8129f57addddb6b8fa19e065 Mon Sep 17 00:00:00 2001 From: wangqi Date: Tue, 5 Sep 2017 12:24:21 -0700 Subject: Strip trace info for release build. Each trace info will add several milliseconds overhead and it's not used by end user. Bug: 64542087 Test: none. PiperOrigin-RevId: 167614347 Change-Id: I70c032fde162d6c8aa46be72c9ece3b7c3249fe8 --- java/com/android/dialer/proguard/proguard_release.flags | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'java') diff --git a/java/com/android/dialer/proguard/proguard_release.flags b/java/com/android/dialer/proguard/proguard_release.flags index c6bdd490e..1429740f4 100644 --- a/java/com/android/dialer/proguard/proguard_release.flags +++ b/java/com/android/dialer/proguard/proguard_release.flags @@ -22,3 +22,9 @@ static *** v(...); static *** isLoggable(...); } + +# This allows proguard to strip Trace code from release builds. +-assumenosideeffects class android.os.Trace { + static *** beginSection(...); + static *** endSection(...); +} -- cgit v1.2.3