Skip to content
Commit 507bd034 authored by Peter Kalauskas's avatar Peter Kalauskas
Browse files

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
parent 3aac1079
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment