tvm
Public Member Functions | Static Public Member Functions | List of all members
tvm::runtime::profiling::Report Class Reference

#include <profiling.h>

Inheritance diagram for tvm::runtime::profiling::Report:
Collaboration diagram for tvm::runtime::profiling::Report:

Public Member Functions

 Report (ffi::Array< ffi::Map< ffi::String, ffi::Any >> calls, ffi::Map< ffi::String, ffi::Map< ffi::String, ffi::Any >> device_metrics, ffi::Map< ffi::String, ffi::Any > configuration)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Report, ObjectRef, ReportNode)
 

Static Public Member Functions

static Report FromJSON (ffi::String json)
 

Constructor & Destructor Documentation

◆ Report()

tvm::runtime::profiling::Report::Report ( ffi::Array< ffi::Map< ffi::String, ffi::Any >>  calls,
ffi::Map< ffi::String, ffi::Map< ffi::String, ffi::Any >>  device_metrics,
ffi::Map< ffi::String, ffi::Any >  configuration 
)
explicit

Construct a Report from a set of calls (with associated metrics) and per-device metrics.

Parameters
callsFunction calls and associated metrics.
device_metricsPer-device metrics for overall execution.
configurationConfiguration data specific to this profiling run.

Member Function Documentation

◆ FromJSON()

static Report tvm::runtime::profiling::Report::FromJSON ( ffi::String  json)
static

Deserialize a Report from a JSON object. Needed for sending the report over RPC.

Parameters
jsonSerialized json report from ReportNode::AsJSON.
Returns
A Report.

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()

tvm::runtime::profiling::Report::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE ( Report  ,
ObjectRef  ,
ReportNode   
)

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