LLDB  mainline
Classes | Namespaces | Functions
Trace.cpp File Reference
#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 dependency graph for Trace.cpp:

Go to the source code of this file.

Classes

struct  JSONSimpleTraceBundleDescription
 

Namespaces

 llvm
 
 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 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. More...
 
template<typename K , typename V >
static V * LookupAsPtr (DenseMap< K, V > &map, K k)
 
template<typename K1 , typename K2 , typename V >
static 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. More...
 
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. More...
 

Function Documentation

◆ createInvalidPlugInError()

static Error createInvalidPlugInError ( StringRef  plugin_name)
static

◆ Lookup() [1/2]

template<typename K , typename V >
static Optional<V> Lookup ( DenseMap< K, V > &  map,
k 
)
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 52 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().

◆ Lookup() [2/2]

template<typename K1 , typename K2 , typename V >
static Optional<V> Lookup ( DenseMap< K1, DenseMap< K2, V >> &  map,
K1  k1,
K2  k2 
)
static

Similar to the methods above but it looks for an item in a map of maps.

Definition at line 69 of file Trace.cpp.

References Lookup().

◆ LookupAsPtr() [1/2]

template<typename K , typename V >
static V* LookupAsPtr ( DenseMap< K, V > &  map,
k 
)
static

Definition at line 60 of file Trace.cpp.

Referenced by LookupAsPtr(), and lldb_private::Trace::OnLiveCpuBinaryDataRead().

◆ LookupAsPtr() [2/2]

template<typename K1 , typename K2 , typename V >
static V* LookupAsPtr ( DenseMap< K1, DenseMap< K2, V >> &  map,
K1  k1,
K2  k2 
)
static

Similar to the methods above but it looks for an item in a map of maps.

Definition at line 78 of file Trace.cpp.

References LookupAsPtr().