LLDB mainline
|
#include "lldb/Target/Trace.h"
#include "llvm/Support/Format.h"
#include "lldb/Core/Module.h"
#include "lldb/Core/PluginManager.h"
#include "lldb/Symbol/Function.h"
#include "lldb/Target/ExecutionContext.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/SectionLoadList.h"
#include "lldb/Target/Thread.h"
#include "lldb/Utility/LLDBLog.h"
#include "lldb/Utility/Stream.h"
#include <optional>
Go to the source code of this file.
Classes | |
struct | JSONSimpleTraceBundleDescription |
Namespaces | |
namespace | llvm |
namespace | llvm::json |
Functions | |
bool | llvm::json::fromJSON (const Value &value, JSONSimpleTraceBundleDescription &bundle, Path path) |
static Error | createInvalidPlugInError (StringRef plugin_name) |
template<typename K , typename V > | |
static std::optional< V > | Lookup (DenseMap< K, V > &map, K k) |
Helper functions for fetching data in maps and returning Optionals or pointers instead of iterators for simplicity. | |
template<typename K , typename V > | |
static V * | LookupAsPtr (DenseMap< K, V > &map, K k) |
template<typename K1 , typename K2 , typename V > | |
static std::optional< V > | Lookup (DenseMap< K1, DenseMap< K2, V > > &map, K1 k1, K2 k2) |
Similar to the methods above but it looks for an item in a map of maps. | |
template<typename K1 , typename K2 , typename V > | |
static V * | LookupAsPtr (DenseMap< K1, DenseMap< K2, V > > &map, K1 k1, K2 k2) |
Similar to the methods above but it looks for an item in a map of maps. | |
|
static |
Definition at line 88 of file Trace.cpp.
Referenced by lldb_private::TraceExporter::FindPlugin(), lldb_private::Trace::FindPluginForLiveProcess(), lldb_private::Trace::FindPluginForPostMortemProcess(), and lldb_private::Trace::FindPluginSchema().
|
static |
Helper functions for fetching data in maps and returning Optionals or pointers instead of iterators for simplicity.
It's worth mentioning that the Optionals version can't return the inner data by reference because of limitations in move constructors.
Definition at line 53 of file Trace.cpp.
Referenced by lldb_private::Trace::GetLiveCpuBinaryDataSize(), lldb_private::Trace::GetLiveProcessBinaryDataSize(), lldb_private::Trace::GetLiveThreadBinaryDataSize(), lldb_private::Trace::GetPostMortemCpuDataFile(), lldb_private::Trace::GetPostMortemThreadDataFile(), and Lookup().
|
static |
|
static |
Definition at line 61 of file Trace.cpp.
Referenced by LookupAsPtr(), and lldb_private::Trace::OnLiveCpuBinaryDataRead().
|
static |
Similar to the methods above but it looks for an item in a map of maps.
Definition at line 80 of file Trace.cpp.
References LookupAsPtr().