commit | 507bd034036f57c101bd3961c3797b31d05d8996 | [log] [tgz] |
---|---|---|
author | Peter Kalauskas <peskal@google.com> | Wed Nov 02 15:11:14 2022 -0700 |
committer | Peter Kalauskas <peskal@google.com> | Wed Nov 02 15:40:39 2022 -0700 |
tree | 76088363096255a7252f141bf16712238b83fd34 | |
parent | 3aac10797207384bead45934d0c49d2e23701830 [diff] |
Check if tracing is on before generating strings Guard Trace.beginSection to avoid unnecessary StringBuilder usage, which would result in GC garbage churn. Also, convert sections to instants when that is more applicable. This also guards against potential run-time crashes if the trace section string is longer than 127 characters. Finally, correct some tracing usage in try blocks. Test: manual Bug: 257075630 Change-Id: Ibe6f194c779256615a7887931256324f7c78811a