diff options
author | Russell Gallop <russell.gallop@sony.com> | 2019-12-05 09:43:49 +0000 |
---|---|---|
committer | Russell Gallop <russell.gallop@sony.com> | 2019-12-12 12:01:44 +0000 |
commit | 8ddcd1dc26bad9d97bbf34cf4fc91dbf3c153431 (patch) | |
tree | f81949f89a34bca3322722a3bee4139b66b134fc /lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py | |
parent | 3f8da5d0910772dc1f6198916a9141bf1d5be885 (diff) | |
download | bcm5719-llvm-8ddcd1dc26bad9d97bbf34cf4fc91dbf3c153431.tar.gz bcm5719-llvm-8ddcd1dc26bad9d97bbf34cf4fc91dbf3c153431.zip |
[Support] Extend TimeProfiler to support multiple threads
This makes TimeTraceProfilerInstance thread local. Added
timeTraceProfilerFinishThread() which moves the thread local instance to
a global vector of instances. timeTraceProfilerWrite() then writes
recorded data from all instances.
Threads are identified based on their thread ids. Totals are reported
with artificial thread ids higher than the real ones.
Replaced raw pointer for TimeTraceProfilerInstance with unique_ptr.
Differential Revision: https://reviews.llvm.org/D71059
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py')
0 files changed, 0 insertions, 0 deletions