Home
last modified time | relevance | path

Searched refs:DemoTableBase (Results 1 – 13 of 13) sorted by relevance

/developtools/smartperf_host/trace_streamer/sdk/demo_sdk/table/
Ddemo_table_base.cpp32 DemoTableBase::~DemoTableBase() in ~DemoTableBase()
38 void DemoTableBase::DemoTableRegister(sqlite3& db, in DemoTableRegister()
75 TS_LOGD("xDestroy table %s", static_cast<DemoTableBase*>(t)->name_.c_str()); in DemoTableRegister()
76 delete static_cast<DemoTableBase*>(t); in DemoTableRegister()
88 void DemoTableBase::SetModuleCallbacks(sqlite3_module& demoModule, const std::string& demoTableName) in SetModuleCallbacks()
91 TS_LOGD("xOpen: %s", static_cast<DemoTableBase*>(pVTab)->name_.c_str()); in SetModuleCallbacks()
92 return static_cast<DemoTableBase*>(pVTab)->DemoOpen(ppCursor); in SetModuleCallbacks()
102 …TS_LOGD("xBestIndex: %s %d", static_cast<DemoTableBase*>(pVTab)->name_.c_str(), idxInfo->nConstrai… in SetModuleCallbacks()
103 return static_cast<DemoTableBase*>(pVTab)->DemoBestIndex(idxInfo); in SetModuleCallbacks()
119 …demoModule.xNext = [](sqlite3_vtab_cursor* vc) { return static_cast<DemoTableBase::Cursor*>(vc)->N… in SetModuleCallbacks()
[all …]
Dslice_table.cpp22 SliceTable::SliceTable(const TraceDataCache* dataCache) : DemoTableBase(dataCache) in SliceTable()
24 demoTableColumn_.push_back(DemoTableBase::ColumnInfo("start_ts", "INTEGER")); in SliceTable()
25 demoTableColumn_.push_back(DemoTableBase::ColumnInfo("end_ts", "INTEGER")); in SliceTable()
26 demoTableColumn_.push_back(DemoTableBase::ColumnInfo("value", "INTEGER")); in SliceTable()
27 demoTableColumn_.push_back(DemoTableBase::ColumnInfo("slice_id", "INTEGER")); in SliceTable()
34 std::unique_ptr<DemoTableBase::Cursor> SliceTable::CreateCursor() in CreateCursor()
39 SliceTable::Cursor::Cursor(const TraceDataCache* dataCache, DemoTableBase* table) in Cursor()
40 …: DemoTableBase::Cursor(dataCache, table, static_cast<uint32_t>(dataCache->GetConstSliceData().Siz… in Cursor()
Ddemo_table_base.h31 class DemoTableBase; variable
32 using TabTemplate = std::unique_ptr<DemoTableBase> (*)(const TraceDataCache* dataCache);
33 class DemoTableBase : public sqlite3_vtab {
35 virtual ~DemoTableBase();
36 DemoTableBase(const DemoTableBase&) = delete;
37 DemoTableBase& operator=(const DemoTableBase&) = delete;
43 return std::unique_ptr<DemoTableBase>(std::make_unique<T>(cache)); in TableDeclare()
52 Cursor(const TraceDataCache* dataCache, DemoTableBase* table, uint32_t rowCount);
88 DemoTableBase* demoTable_ = nullptr;
103 …explicit DemoTableBase(const TraceDataCache* dataCache) : demoTraceDataCache_(dataCache), demoCurs… in DemoTableBase() function
Dgpu_counter_table.cpp22 GpuCounterTable::GpuCounterTable(const TraceDataCache* dataCache) : DemoTableBase(dataCache) in GpuCounterTable()
24 demoTableColumn_.push_back(DemoTableBase::ColumnInfo("ts", "INTEGER")); in GpuCounterTable()
25 demoTableColumn_.push_back(DemoTableBase::ColumnInfo("counter_id", "INTEGER")); in GpuCounterTable()
26 demoTableColumn_.push_back(DemoTableBase::ColumnInfo("value", "REAL")); in GpuCounterTable()
33 std::unique_ptr<DemoTableBase::Cursor> GpuCounterTable::CreateCursor() in CreateCursor()
38 GpuCounterTable::Cursor::Cursor(const TraceDataCache* dataCache, DemoTableBase* table) in Cursor()
39 …: DemoTableBase::Cursor(dataCache, table, static_cast<uint32_t>(dataCache->GetConstGpuCounterData(… in Cursor()
Ddemo_meta_table.cpp22 DemoMetaTable::DemoMetaTable(const TraceDataCache* dataCache) : DemoTableBase(dataCache) in DemoMetaTable()
24 demoTableColumn_.push_back(DemoTableBase::ColumnInfo("name", "TEXT")); in DemoMetaTable()
25 demoTableColumn_.push_back(DemoTableBase::ColumnInfo("value", "TEXT")); in DemoMetaTable()
31 std::unique_ptr<DemoTableBase::Cursor> DemoMetaTable::CreateCursor() in CreateCursor()
36 DemoMetaTable::Cursor::Cursor(const TraceDataCache* dataCache, DemoTableBase* table) in Cursor()
37 : DemoTableBase::Cursor(dataCache, table, MetaDataItem::METADATA_ITEM_MAX) in Cursor()
Dgpu_counter_object_table.cpp22 GpuCounterObjectTable::GpuCounterObjectTable(const TraceDataCache* dataCache) : DemoTableBase(dataC… in GpuCounterObjectTable()
24 demoTableColumn_.push_back(DemoTableBase::ColumnInfo("counter_id", "INTEGER")); in GpuCounterObjectTable()
25 demoTableColumn_.push_back(DemoTableBase::ColumnInfo("counter_name", "REAL")); in GpuCounterObjectTable()
31 std::unique_ptr<DemoTableBase::Cursor> GpuCounterObjectTable::CreateCursor() in CreateCursor()
36 GpuCounterObjectTable::Cursor::Cursor(const TraceDataCache* dataCache, DemoTableBase* table) in Cursor()
37 …: DemoTableBase::Cursor(dataCache, table, static_cast<uint32_t>(dataCache->GetConstGpuCounterObjec… in Cursor()
Dslice_object_table.cpp22 SliceObjectTable::SliceObjectTable(const TraceDataCache* dataCache) : DemoTableBase(dataCache) in SliceObjectTable()
24 demoTableColumn_.push_back(DemoTableBase::ColumnInfo("slice_id", "INTEGER")); in SliceObjectTable()
25 demoTableColumn_.push_back(DemoTableBase::ColumnInfo("slice_name", "REAL")); in SliceObjectTable()
31 std::unique_ptr<DemoTableBase::Cursor> SliceObjectTable::CreateCursor() in CreateCursor()
36 SliceObjectTable::Cursor::Cursor(const TraceDataCache* dataCache, DemoTableBase* table) in Cursor()
37 …: DemoTableBase::Cursor(dataCache, table, static_cast<uint32_t>(dataCache->GetConstSliceObjectData… in Cursor()
Ddemo_meta_table.h24 class DemoMetaTable : public DemoTableBase {
28 std::unique_ptr<DemoTableBase::Cursor> CreateCursor() override;
31 class Cursor : public DemoTableBase::Cursor {
33 explicit Cursor(const TraceDataCache* dataCache, DemoTableBase* table);
Dslice_object_table.h24 class SliceObjectTable : public DemoTableBase {
28 std::unique_ptr<DemoTableBase::Cursor> CreateCursor() override;
31 class Cursor : public DemoTableBase::Cursor {
33 explicit Cursor(const TraceDataCache* dataCache, DemoTableBase* table);
Dgpu_counter_object_table.h24 class GpuCounterObjectTable : public DemoTableBase {
28 std::unique_ptr<DemoTableBase::Cursor> CreateCursor() override;
31 class Cursor : public DemoTableBase::Cursor {
33 explicit Cursor(const TraceDataCache* dataCache, DemoTableBase* table);
Dslice_table.h24 class SliceTable : public DemoTableBase {
28 std::unique_ptr<DemoTableBase::Cursor> CreateCursor() override;
31 class Cursor : public DemoTableBase::Cursor {
33 explicit Cursor(const TraceDataCache* dataCache, DemoTableBase* table);
Dgpu_counter_table.h24 class GpuCounterTable : public DemoTableBase {
28 std::unique_ptr<DemoTableBase::Cursor> CreateCursor() override;
31 class Cursor : public DemoTableBase::Cursor {
33 explicit Cursor(const TraceDataCache* dataCache, DemoTableBase* table);
/developtools/smartperf_host/trace_streamer/sdk/demo_sdk/sdk/
Dsdk_data_parser.cpp115DemoTableBase::TableDeclare<DemoMetaTable>(*(traceDataCache_->demoDb_), traceDataCache_, "meta"); in CreateTableByJson()
127DemoTableBase::TableDeclare<GpuCounterObjectTable>(*(traceDataCache_->demoDb_), traceDataCache_, t… in CreateCounterObjectTable()
134DemoTableBase::TableDeclare<GpuCounterTable>(*(traceDataCache_->demoDb_), traceDataCache_, tableNa… in CreateCounterTable()
141DemoTableBase::TableDeclare<SliceObjectTable>(*(traceDataCache_->demoDb_), traceDataCache_, tableN… in CreateSliceObjectTable()
148DemoTableBase::TableDeclare<SliceTable>(*(traceDataCache_->demoDb_), traceDataCache_, tableName); in CreateSliceTable()