diff options
author | wangqi <wangqi@google.com> | 2017-09-05 12:24:21 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-09-11 10:57:25 -0700 |
commit | 2928203107c971ff8129f57addddb6b8fa19e065 (patch) | |
tree | 5f5e816411a9025ab11a423887507ea9b432a7fb /java | |
parent | 1d6cd6dd54251ee100e0f105bbcd299fbb609712 (diff) |
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
Diffstat (limited to 'java')
-rw-r--r-- | java/com/android/dialer/proguard/proguard_release.flags | 6 |
1 files changed, 6 insertions, 0 deletions
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(...); +} |