summaryrefslogtreecommitdiff
path: root/disassembler/disassembler_riscv64.cc
diff options
context:
space:
mode:
author Mythri Alle <mythria@google.com> 2024-02-06 05:56:17 +0000
committer Mythri Alle <mythria@google.com> 2024-02-06 17:58:51 +0000
commit074714261278039d6a99075d4dc71623f453a2c0 (patch)
tree778798317aa90e2e6ee63059098a487df8e41577 /disassembler/disassembler_riscv64.cc
parent1969e59e7eba03ac246171b88eea56ad36bfc9f0 (diff)
Write trace entries as a block in preperation for the new format
We used to use the same buffer to hold the method info entries and also the trace event entries. This was okay for the current format since each entry is its own record and it is okay to interleave them. In the new format we dump the trace events as a block. To support this, we now flush the method entries directly to the file. It is possible to use a buffer for this but we don't expect this to be performance critical. This also has an added advantage that we can check for the overflow at the start of the loop and can avoid a few checks in the loop which improves performance. Bug: 259258187 Test: art/test.py --trace --stream Change-Id: Ib0ff03d3bb84571f1b0c7daea68fb5151495fd1f
Diffstat (limited to 'disassembler/disassembler_riscv64.cc')
0 files changed, 0 insertions, 0 deletions