#include "src/trace_processor/perfetto_sql/intrinsics/operators/counter_mipmap_operator.h"
#include <sqlite3.h>
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <iterator>
#include <memory>
#include <string>
#include <utility>
#include "perfetto/base/logging.h"
#include "perfetto/base/status.h"
#include "perfetto/ext/base/status_or.h"
#include "src/trace_processor/containers/implicit_segment_forest.h"
#include "src/trace_processor/sqlite/bindings/sqlite_result.h"
#include "src/trace_processor/sqlite/module_lifecycle_manager.h"
#include "src/trace_processor/sqlite/sql_source.h"
#include "src/trace_processor/sqlite/sqlite_utils.h"
namespace perfetto::trace_processor {
namespace {
constexpr char kSchema[] = …;
enum ColumnIndex : size_t { … };
constexpr size_t kArgCount = …;
bool IsArgColumn(size_t index) { … }
Counter;
Agg;
Forest;
}
int CounterMipmapOperator::Create(sqlite3* db,
void* raw_ctx,
int argc,
const char* const* argv,
sqlite3_vtab** vtab,
char** zErr) { … }
int CounterMipmapOperator::Destroy(sqlite3_vtab* vtab) { … }
int CounterMipmapOperator::Connect(sqlite3* db,
void* raw_ctx,
int argc,
const char* const* argv,
sqlite3_vtab** vtab,
char**) { … }
int CounterMipmapOperator::Disconnect(sqlite3_vtab* vtab) { … }
int CounterMipmapOperator::BestIndex(sqlite3_vtab*, sqlite3_index_info* info) { … }
int CounterMipmapOperator::Open(sqlite3_vtab*, sqlite3_vtab_cursor** cursor) { … }
int CounterMipmapOperator::Close(sqlite3_vtab_cursor* cursor) { … }
int CounterMipmapOperator::Filter(sqlite3_vtab_cursor* cursor,
int,
const char*,
int argc,
sqlite3_value** argv) { … }
int CounterMipmapOperator::Next(sqlite3_vtab_cursor* cursor) { … }
int CounterMipmapOperator::Eof(sqlite3_vtab_cursor* cursor) { … }
int CounterMipmapOperator::Column(sqlite3_vtab_cursor* cursor,
sqlite3_context* ctx,
int N) { … }
int CounterMipmapOperator::Rowid(sqlite3_vtab_cursor*, sqlite_int64*) { … }
}