summaryrefslogtreecommitdiff
path: root/runtime/native/java_lang_Thread.cc
diff options
context:
space:
mode:
author Mythri Alle <mythria@google.com> 2023-07-19 14:29:26 +0000
committer Mythri Alle <mythria@google.com> 2023-08-14 11:39:14 +0000
commit15de3b7e4f69d0d9b7cea3c8f06d6aafad6de0f3 (patch)
tree36ed04c1dd42d54a9d211d700346848536acf232 /runtime/native/java_lang_Thread.cc
parent6fd477affa9ac2225a9bf5486ea780fa647419b1 (diff)
Flush the trace entries on a thread pool worker
Flushing the trace entries from the per-thread buffer takes considerable amount time which causes the process to be less responsive when flushing. So move the flushing to a dedicated worker pool thread so that the actual thread can continue. This is done only when flushing entries in streaming mode. In non-streaming mode, we need to flush entries from all the threads to see if we have space in the common buffer for any new entries. So, we flush all the entries synchronously to keep the implementation simple. Bug: 259258187 Test: art/test.py --stream --trace / art/test.py --trace Change-Id: I4912c0249a40747fd6cd3863c8617f0bab335267
Diffstat (limited to 'runtime/native/java_lang_Thread.cc')
0 files changed, 0 insertions, 0 deletions