LLDB mainline
lldb_private::TraceExporter Class Reference

A plug-in interface definition class for trace exporters. More...

#include "lldb/Target/TraceExporter.h"

Inheritance diagram for lldb_private::TraceExporter:
[legend]

Static Public Member Functions

static llvm::Expected< lldb::TraceExporterUPFindPlugin (llvm::StringRef plugin_name)
 Create an instance of a trace exporter plugin given its name.

Additional Inherited Members

Public Member Functions inherited from lldb_private::PluginInterface
 PluginInterface ()=default
virtual ~PluginInterface ()=default
virtual llvm::StringRef GetPluginName ()=0
 PluginInterface (const PluginInterface &)=delete
PluginInterfaceoperator= (const PluginInterface &)=delete

Detailed Description

A plug-in interface definition class for trace exporters.

Trace exporter plug-ins operate on traces, converting the trace data provided by an lldb_private::TraceCursor into a different format that can be digested by other tools, e.g. Chrome Trace Event Profiler.

Trace exporters are supposed to operate on an architecture-agnostic fashion, as a TraceCursor, which feeds the data, hides the actual trace technology being used.

Definition at line 28 of file TraceExporter.h.

Member Function Documentation

◆ FindPlugin()

Expected< lldb::TraceExporterUP > TraceExporter::FindPlugin ( llvm::StringRef plugin_name)
static

Create an instance of a trace exporter plugin given its name.

Parameters
[in]plugin_NamePlug-in name to search.
Returns
A TraceExporterUP instance, or an llvm::Error if the plug-in name doesn't match any registered plug-ins.

Definition at line 25 of file TraceExporter.cpp.

References createInvalidPlugInError(), and lldb_private::PluginManager::GetTraceExporterCreateCallback().


The documentation for this class was generated from the following files: