diff options
| author | 2025-02-07 10:36:36 -0800 | |
|---|---|---|
| committer | 2025-02-07 15:25:25 -0800 | |
| commit | ab77bd971df98bd46332a0e9b69899ecbc643003 (patch) | |
| tree | e22921057b6531e74bb20dc2b9aff0ba64cd3aeb /libs/androidfw/misc.cpp | |
| parent | 1d883bc1806844474fc79d53c5d3836f1d04ab12 (diff) | |
Don't call 'getShortDescription' when tracing is not enabled
The call to 'getShortDescription' is expensive. Currently, it's called
even if tracing is not enabled, which slows down input processing. Move
this into an 'if' statement, which will ensure that it's only called if
tracing is enabled.
If we find that this is still too expensive (slows down input processing
too much when tracing is enabled), we should consider getting rid of
this trace completely.
Bug: 395115521
Flag: EXEMPT bugfix
Test: none
Change-Id: Icbf2ea32e6ebc4c944d214c953b11a5d7a7cdede
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions