commit | 0c22984b9fa0a561c3ea878fc67b59cccb0882fa | [log] [tgz] |
---|---|---|
author | Sami Kyostila <skyostil@google.com> | Fri Nov 01 11:01:54 2019 +0000 |
committer | Sami Kyostila <skyostil@google.com> | Fri Nov 01 11:01:54 2019 +0000 |
tree | 6f091f1340f45842c8af2acaad4a8545fd793150 | |
parent | 1ce62069d1c68b921e28721a34d9b52e4d058863 [diff] |
TrackEvent: Add support for arguments This patch adds a way for client library users to inject custom arguments into track events. The library still takes care of writing common track event properties such as categories and titles; this new hook gives a way to add add more arguments on top. Example usage: TRACE_EVENT_BEGIN("category", "Title", [](perfetto::TrackEventContext ctx) { auto log = ctx->track_event()->set_log_message(); log->set_body_iid(...); }); An upcoming patch will add a way to use interning with custom arguments like these. Bug: 132678367 Change-Id: Idb62d160647d037c3a2329c98d418fb53303ec65
Perfetto is an open-source project for performance instrumentation and tracing of Linux/Android/Chrome platforms and user-space apps.
See www.perfetto.dev for docs.
You can reach us on our Discord channel. If you prefer using IRC we have an experimental Discord <> IRC bridge synced with #perfetto-dev
on Freenode.