commit | f1a8d523f965898c7fd492a36719b3d2bcd9d5e2 | [log] [tgz] |
---|---|---|
author | Lalit Maganti <lalitm@google.com> | Fri Apr 26 11:05:15 2019 +0100 |
committer | Lalit Maganti <lalitm@google.com> | Fri Apr 26 11:05:15 2019 +0100 |
tree | 0431effb7045864e79cc8c080b9c12eff589d4a4 | |
parent | b141eea0b61a6087927aba85f2f03ce7a7b78c59 [diff] |
trace_processor: remove RawCursor and associated virtual function calls. This CL removes the indireciton layer introduced by RawCursor and the associated extra virtual function calls it caused. Instead of hiding the lifecycle of a cursor from implementors, we expose it and allow implementors to choose what to do about it. The easiest option for implementors is to reinit the cursor on every filter query by calling their default constructor; this will leave them with the current behaviour of the class. We also inline RegisterTableInternal into RegisterTable and change all the virtual function calls there into function calls on the actual derived class. This is because we have the template type so we essentially devirtualise the function calls using the template. Change-Id: I1fb18deff3acab1615c88a82d5909c550dac2d95
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.