LLDB  mainline
Static Public Member Functions | List of all members
lldb_private::TraceExporter Class Reference

#include "lldb/Target/TraceExporter.h"

Inheritance diagram for lldb_private::TraceExporter:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::TraceExporter:
Collaboration graph
[legend]

Static Public Member Functions

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

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().


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