[trace] rename ThreadIntelPT into TraceTrace
authorWalter Erquinigo <wallace@fb.com>
Wed, 14 Oct 2020 17:25:39 +0000 (10:25 -0700)
committerWalter Erquinigo <wallace@fb.com>
Mon, 19 Oct 2020 22:15:02 +0000 (15:15 -0700)
commit8a203bb22d161d23c6b1195f85ae025e87f03bae
tree5060c1831fa3bbd6295251d277a3ba1a5a11aa1c
parent8a377f1e3cf4c26f609b1204f9ce1a340f7fb8d4
[trace] rename ThreadIntelPT into TraceTrace

Renamed ThreadIntelPT to TreaceThread, making it a top-level class. I noticed that this class can and shuld work for any trace plugin and there's nothing intel-pt specific in it.
With that TraceThread change, I was able to move most of the json file parsing logic to the base class TraceSessionFileParser, which makes adding new plug-ins easier.

This originally was part of https://reviews.llvm.org/D89283

Differential Revision: https://reviews.llvm.org/D89408
17 files changed:
lldb/include/lldb/Target/ProcessTrace.h [moved from lldb/source/Plugins/Process/Trace/ProcessTrace.h with 90% similarity]
lldb/include/lldb/Target/ThreadTrace.h [new file with mode: 0644]
lldb/include/lldb/Target/TraceSessionFileParser.h
lldb/include/lldb/lldb-forward.h
lldb/source/API/SystemInitializerFull.cpp
lldb/source/Plugins/Process/CMakeLists.txt
lldb/source/Plugins/Process/Trace/CMakeLists.txt [deleted file]
lldb/source/Plugins/Trace/intel-pt/CMakeLists.txt
lldb/source/Plugins/Trace/intel-pt/ThreadIntelPT.h [deleted file]
lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.h
lldb/source/Plugins/Trace/intel-pt/TraceIntelPTSessionFileParser.cpp
lldb/source/Plugins/Trace/intel-pt/TraceIntelPTSessionFileParser.h
lldb/source/Target/CMakeLists.txt
lldb/source/Target/ProcessTrace.cpp [moved from lldb/source/Plugins/Process/Trace/ProcessTrace.cpp with 97% similarity]
lldb/source/Target/ThreadTrace.cpp [moved from lldb/source/Plugins/Trace/intel-pt/ThreadIntelPT.cpp with 68% similarity]
lldb/source/Target/TraceSessionFileParser.cpp