commit | fe13d8ecfbe21548ddbdb1c6a19f2152822ef9ab | [log] [tgz] |
---|---|---|
author | Jared Duke <jdduke@google.com> | Thu Nov 16 21:16:14 2023 +0000 |
committer | Jared Duke <jdduke@google.com> | Thu Nov 16 21:16:14 2023 +0000 |
tree | 9e57ce44b7ed923f8a707fdf6228a2ab7f2a3b5a | |
parent | 3397af24a31e0956fd2b643a440b99387b189b83 [diff] |
Optimize AppOpsManager.getFormattedStackTrace Avoid redundant toString() calls for a given StackTraceElement when fetching the formatted stack trace for an Op. This call is not trivially cheap, and shows up in system stack samples, so make sure it only happens once. Bug: 308786093 Test: m + presubmit Change-Id: I463addc4995b1553ff4b22e712208557ab4a663c