Add TRACE_EVENT_BEGIN/TRACE_EVENT_END functions that allow typed arguments.
These macros allow users to write small lambda functions that get direct access to the protozero TrackEvent. They can then access and fill in the values as needed. This seems to have no noticeable performance impact: https://docs.google.com/spreadsheets/d/1YBB7V2hinQ-lcf9WBFrdMzxakosJHou0B3U10Gzpme0/edit?usp=sharing And binary size is slightly negative (probably more zero like). Change-Id: I2e9266daad902ac64bdaa1a1f1bf5678dc48ac9f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1921984 Commit-Queue: Stephen Nusko <nuskos@chromium.org> Reviewed-by:Eric Seckler <eseckler@chromium.org> Reviewed-by:
Sami Kyöstilä <skyostil@chromium.org> Auto-Submit: Stephen Nusko <nuskos@chromium.org> Cr-Commit-Position: refs/heads/master@{#718914}
Showing
This diff is collapsed.
Please register or sign in to comment