[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
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "lldb/Host/Host.h"
|
||||
#include "lldb/Initialization/SystemInitializerCommon.h"
|
||||
#include "lldb/Interpreter/CommandInterpreter.h"
|
||||
#include "lldb/Target/ProcessTrace.h"
|
||||
#include "lldb/Utility/Timer.h"
|
||||
#include "llvm/Support/TargetSelect.h"
|
||||
|
||||
@@ -45,6 +46,9 @@ llvm::Error SystemInitializerFull::Initialize() {
|
||||
#define LLDB_PLUGIN(p) LLDB_PLUGIN_INITIALIZE(p);
|
||||
#include "Plugins/Plugins.def"
|
||||
|
||||
// Initialize plug-ins in core LLDB
|
||||
ProcessTrace::Initialize();
|
||||
|
||||
// Scan for any system or user LLDB plug-ins
|
||||
PluginManager::Initialize();
|
||||
|
||||
@@ -61,6 +65,9 @@ void SystemInitializerFull::Terminate() {
|
||||
|
||||
Debugger::SettingsTerminate();
|
||||
|
||||
// Terminate plug-ins in core LLDB
|
||||
ProcessTrace::Terminate();
|
||||
|
||||
// Terminate and unload and loaded system or user LLDB plug-ins
|
||||
PluginManager::Terminate();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user