/external/perfetto/src/trace_processor/db/ |
D | compare_unittest.cc | 25 ASSERT_LT(compare::SqlValue(SqlValue(), SqlValue::Long(10)), 0); in TEST() 26 ASSERT_LT(compare::SqlValue(SqlValue::Double(10.0), SqlValue::String("10")), in TEST() 30 ASSERT_EQ(compare::SqlValue(SqlValue::Long(10), SqlValue::Double(10.0)), 0); in TEST() 34 SqlValue int32_min = SqlValue::Long(std::numeric_limits<int32_t>::min()); in TEST() 35 SqlValue minus_1 = SqlValue::Long(-1); in TEST() 36 SqlValue zero = SqlValue::Long(0); in TEST() 37 SqlValue uint32_max = SqlValue::Long(std::numeric_limits<uint32_t>::max()); in TEST() 39 ASSERT_LT(compare::SqlValue(int32_min, minus_1), 0); in TEST() 40 ASSERT_LT(compare::SqlValue(int32_min, uint32_max), 0); in TEST() 41 ASSERT_LT(compare::SqlValue(minus_1, uint32_max), 0); in TEST() [all …]
|
D | column.h | 63 SqlValue value; 120 using value_type = SqlValue; 137 SqlValue operator*() const { return col_->Get(row_); } 210 SqlValue Get(uint32_t row) const { return GetAtIdx(row_map().Get(row)); } in Get() 213 base::Optional<uint32_t> IndexOf(SqlValue value) const { in IndexOf() 224 if (compare::SqlValue(Get(i), value) == 0) in IndexOf() 230 if (value.type != SqlValue::Type::kLong) in IndexOf() 239 void Set(uint32_t row, SqlValue value) { in Set() 277 void FilterInto(FilterOp op, SqlValue value, RowMap* rm) const { in FilterInto() 304 base::Optional<SqlValue> Min() const { in Min() [all …]
|
D | compare.h | 157 inline int SqlValue(const SqlValue& a, const SqlValue& b) { in SqlValue() function 159 if (a.type == SqlValue::kLong && b.type == SqlValue::kDouble) in SqlValue() 162 if (a.type == SqlValue::kDouble && b.type == SqlValue::kLong) in SqlValue() 169 case SqlValue::Type::kLong: in SqlValue() 171 case SqlValue::Type::kDouble: in SqlValue() 173 case SqlValue::Type::kString: in SqlValue() 175 case SqlValue::Type::kBytes: in SqlValue() 178 case SqlValue::Type::kNull: in SqlValue() 187 inline int SqlValueComparator(const trace_processor::SqlValue& a, in SqlValueComparator() 188 const trace_processor::SqlValue& b) { in SqlValueComparator() [all …]
|
D | typed_column.h | 126 static SqlValue::Type SqlValueType() { in SqlValueType() 143 static SqlValue ToValue(double value) { return SqlValue::Double(value); } in ToValue() 144 static SqlValue ToValue(uint32_t value) { return SqlValue::Long(value); } in ToValue() 145 static SqlValue ToValue(int64_t value) { return SqlValue::Long(value); } in ToValue() 146 static SqlValue ToValue(NullTermStringView value) { in ToValue() 147 return SqlValue::String(value.c_str()); in ToValue() 180 Constraint eq(uint32_t v) const { return eq_value(SqlValue::Long(v)); } in eq() 181 Constraint gt(uint32_t v) const { return gt_value(SqlValue::Long(v)); } in gt() 182 Constraint lt(uint32_t v) const { return lt_value(SqlValue::Long(v)); } in lt() 183 Constraint ne(uint32_t v) const { return ne_value(SqlValue::Long(v)); } in ne() [all …]
|
D | column.cc | 89 void Column::FilterIntoSlow(FilterOp op, SqlValue value, RowMap* rm) const { in FilterIntoSlow() 136 SqlValue value, in FilterIntoNumericSlow() 162 if (value.type == SqlValue::Type::kDouble) { in FilterIntoNumericSlow() 181 } else if (value.type == SqlValue::Type::kLong) { in FilterIntoNumericSlow() 272 SqlValue value, in FilterIntoStringSlow() 290 if (value.type != SqlValue::Type::kString) { in FilterIntoStringSlow() 341 void Column::FilterIntoIdSlow(FilterOp op, SqlValue value, RowMap* rm) const { in FilterIntoIdSlow() 353 if (value.type != SqlValue::Type::kLong) { in FilterIntoIdSlow()
|
/external/perfetto/src/trace_processor/rpc/ |
D | query_result_serializer_unittest.cc | 37 inline bool operator==(const SqlValue& a, const SqlValue& b) { in operator ==() 40 if (a.type == SqlValue::kString) in operator ==() 42 if (a.type == SqlValue::kBytes) { in operator ==() 50 inline std::ostream& operator<<(std::ostream& stream, const SqlValue& v) { in operator <<() 53 case SqlValue::kString: in operator <<() 55 case SqlValue::kBytes: in operator <<() 60 case SqlValue::kLong: in operator <<() 62 case SqlValue::kDouble: in operator <<() 64 case SqlValue::kNull: in operator <<() 89 std::vector<SqlValue> cells; [all …]
|
D | rpc.cc | 157 using SqlValue = trace_processor::SqlValue; in RawQuery() typedef 161 case SqlValue::Type::kLong: in RawQuery() 164 case SqlValue::Type::kString: in RawQuery() 167 case SqlValue::Type::kDouble: in RawQuery() 170 case SqlValue::Type::kBytes: in RawQuery() 173 case SqlValue::Type::kNull: in RawQuery() 180 if (cell.type == SqlValue::Type::kNull || in RawQuery() 192 PERFETTO_CHECK(cell.type == SqlValue::Type::kLong || in RawQuery() 193 cell.type == SqlValue::Type::kDouble); in RawQuery() 194 if (cell.type == SqlValue::Type::kLong) { in RawQuery() [all …]
|
D | query_result_serializer.cc | 142 case SqlValue::Type::kNull: { in SerializeBatch() 146 case SqlValue::Type::kLong: { in SerializeBatch() 152 case SqlValue::Type::kDouble: { in SerializeBatch() 158 case SqlValue::Type::kString: { in SerializeBatch() 171 case SqlValue::Type::kBytes: { in SerializeBatch()
|
/external/perfetto/include/perfetto/trace_processor/ |
D | basic_types.h | 112 struct PERFETTO_EXPORT SqlValue { struct 122 SqlValue() = default; argument 124 static SqlValue Long(int64_t v) { in Long() argument 125 SqlValue value; in Long() 131 static SqlValue Double(double v) { in Double() argument 132 SqlValue value; in Double() 138 static SqlValue String(const char* v) { in String() argument 139 SqlValue value; in String() 145 static SqlValue Bytes(const void* v, size_t size) { in Bytes() argument 146 SqlValue value; in Bytes()
|
/external/perfetto/src/trace_processor/ |
D | iterator_impl.h | 72 SqlValue Get(uint32_t col) { in Get() 75 SqlValue value; in Get() 78 value.type = SqlValue::kLong; in Get() 82 value.type = SqlValue::kString; in Get() 87 value.type = SqlValue::kDouble; in Get() 91 value.type = SqlValue::kBytes; in Get() 97 value.type = SqlValue::kNull; in Get()
|
D | trace_database_integrationtest.cc | 80 ASSERT_EQ(it.Get(0).type, SqlValue::kLong); in TEST_F() 82 ASSERT_EQ(it.Get(1).type, SqlValue::kLong); in TEST_F() 91 ASSERT_EQ(it.Get(0).type, SqlValue::kLong); in TEST_F() 93 ASSERT_EQ(it.Get(1).type, SqlValue::kLong); in TEST_F() 106 ASSERT_EQ(it.Get(0).type, SqlValue::kLong); in TEST_F() 108 ASSERT_EQ(it.Get(1).type, SqlValue::kLong); in TEST_F() 155 ASSERT_EQ(it.Get(0).type, SqlValue::kLong); in TEST_F() 157 ASSERT_EQ(it.Get(1).type, SqlValue::kLong); in TEST_F() 167 ASSERT_EQ(it.Get(0).type, SqlValue::kLong); in TEST_F() 169 ASSERT_EQ(it.Get(1).type, SqlValue::kLong); in TEST_F() [all …]
|
D | trace_processor_shell.cc | 213 case SqlValue::Type::kNull: in PrintStats() 216 case SqlValue::Type::kDouble: in PrintStats() 219 case SqlValue::Type::kLong: in PrintStats() 222 case SqlValue::Type::kString: in PrintStats() 225 case SqlValue::Type::kBytes: in PrintStats() 461 case SqlValue::Type::kNull: in PrintQueryResultInteractively() 464 case SqlValue::Type::kDouble: in PrintQueryResultInteractively() 467 case SqlValue::Type::kLong: in PrintQueryResultInteractively() 470 case SqlValue::Type::kString: in PrintQueryResultInteractively() 473 case SqlValue::Type::kBytes: in PrintQueryResultInteractively() [all …]
|
/external/perfetto/src/trace_processor/sqlite/ |
D | db_sqlite_table.cc | 57 SqlValue SqliteValueToSqlValue(sqlite3_value* sqlite_val) { in SqliteValueToSqlValue() 59 SqlValue value; in SqliteValueToSqlValue() 62 value.type = SqlValue::kLong; in SqliteValueToSqlValue() 66 value.type = SqlValue::kString; in SqliteValueToSqlValue() 71 value.type = SqlValue::kDouble; in SqliteValueToSqlValue() 75 value.type = SqlValue::kBytes; in SqliteValueToSqlValue() 80 value.type = SqlValue::kNull; in SqliteValueToSqlValue() 411 SqlValue value = SqliteValueToSqlValue(argv[i]); in Filter() 487 case SqlValue::kString: in Filter() 490 case SqlValue::kBytes: in Filter() [all …]
|
D | window_operator_table.cc | 42 SqliteTable::Column(Column::kRowId, "rowid", SqlValue::Type::kLong, in Init() 45 SqlValue::Type::kLong, kHidden), in Init() 47 SqlValue::Type::kLong, kHidden), in Init() 49 SqlValue::Type::kLong, kHidden), in Init() 51 SqliteTable::Column(Column::kTs, "ts", SqlValue::Type::kLong), in Init() 52 SqliteTable::Column(Column::kDuration, "dur", SqlValue::Type::kLong), in Init() 54 SqlValue::Type::kLong), in Init()
|
D | sqlite_table.cc | 32 std::string TypeToString(SqlValue::Type type) { in TypeToString() 34 case SqlValue::Type::kString: in TypeToString() 36 case SqlValue::Type::kLong: in TypeToString() 38 case SqlValue::Type::kDouble: in TypeToString() 40 case SqlValue::Type::kBytes: in TypeToString() 42 case SqlValue::Type::kNull: in TypeToString() 182 SqlValue::Type type, in Column() 207 if (col.type() != SqlValue::Type::kNull) { in ToCreateTableStmt()
|
D | sql_stats_table.cc | 41 SqliteTable::Column(Column::kQuery, "query", SqlValue::Type::kString), in Init() 43 SqlValue::Type::kLong), in Init() 45 SqlValue::Type::kLong), in Init() 47 SqlValue::Type::kLong), in Init() 49 SqlValue::Type::kLong), in Init()
|
D | stats_table.cc | 34 SqliteTable::Column(Column::kName, "name", SqlValue::Type::kString), in Init() 36 SqliteTable::Column(Column::kIndex, "idx", SqlValue::Type::kLong), in Init() 38 SqlValue::Type::kString), in Init() 40 SqlValue::Type::kString), in Init() 41 SqliteTable::Column(Column::kValue, "value", SqlValue::Type::kLong), in Init() 43 SqlValue::Type::kString), in Init()
|
D | db_sqlite_table_unittest.cc | 28 schema.columns.push_back({"id", SqlValue::Type::kLong, true /* is_id */, in CreateSchema() 30 schema.columns.push_back({"type", SqlValue::Type::kLong, false /* is_id */, in CreateSchema() 32 schema.columns.push_back({"test1", SqlValue::Type::kLong, false /* is_id */, in CreateSchema() 34 schema.columns.push_back({"test2", SqlValue::Type::kLong, false /* is_id */, in CreateSchema() 36 schema.columns.push_back({"test3", SqlValue::Type::kLong, false /* is_id */, in CreateSchema()
|
D | sqlite_utils.h | 402 SqlValue::Type type; in GetColumnsForTable() 405 type = SqlValue::Type::kString; in GetColumnsForTable() 407 type = SqlValue::Type::kDouble; in GetColumnsForTable() 412 type = SqlValue::Type::kLong; in GetColumnsForTable() 416 type = SqlValue::Type::kNull; in GetColumnsForTable()
|
D | sqlite_table.h | 53 SqlValue::Type type, 58 SqlValue::Type type() const { return type_; } in type() 66 SqlValue::Type type_ = SqlValue::Type::kNull;
|
/external/perfetto/src/trace_processor/metrics/ |
D | metrics.cc | 47 SqlValue SqlValueFromSqliteValue(sqlite3_value* value) { in SqlValueFromSqliteValue() 48 SqlValue sql_value; in SqlValueFromSqliteValue() 51 sql_value.type = SqlValue::Type::kLong; in SqlValueFromSqliteValue() 55 sql_value.type = SqlValue::Type::kDouble; in SqlValueFromSqliteValue() 59 sql_value.type = SqlValue::Type::kString; in SqlValueFromSqliteValue() 64 sql_value.type = SqlValue::Type::kBytes; in SqlValueFromSqliteValue() 78 const SqlValue& value) { in AppendSqlValue() 80 case SqlValue::kLong: in AppendSqlValue() 82 case SqlValue::kDouble: in AppendSqlValue() 84 case SqlValue::kString: in AppendSqlValue() [all …]
|
D | metrics.h | 67 const SqlValue& value); 120 util::Status AddSqlValue(SqlValue value);
|
/external/perfetto/src/trace_processor/tables/ |
D | macros_unittest.cc | 155 ASSERT_EQ(dur->Get(0).type, SqlValue::kNull); in TEST_F() 156 ASSERT_EQ(dur->Get(1).type, SqlValue::kNull); in TEST_F() 212 Table out = slice_.Filter({slice_.dur().eq_value(SqlValue::Double(100.0))}); in TEST_F() 217 out = slice_.Filter({slice_.dur().le_value(SqlValue::Double(99.9999))}); in TEST_F() 222 out = slice_.Filter({slice_.dur().ge_value(SqlValue::Double(99.9999))}); in TEST_F() 229 SqlValue::Double(std::numeric_limits<int64_t>::min()))}); in TEST_F() 250 Table out = slice_.Filter({slice_.dur().ne_value(SqlValue())}); in TEST_F() 253 out = slice_.Filter({slice_.dur().eq_value(SqlValue::String("100"))}); in TEST_F() 275 ASSERT_EQ(value->Get(0).type, SqlValue::kNull); in TEST_F() 276 ASSERT_EQ(value->Get(1).type, SqlValue::kNull); in TEST_F() [all …]
|
/external/perfetto/src/trace_processor/dynamic/ |
D | experimental_slice_layout_generator_unittest.cc | 107 {Constraint{kColumn, FilterOp::kEq, SqlValue::String("1")}}, {}); in TEST() 125 {Constraint{kColumn, FilterOp::kEq, SqlValue::String("1")}}, {}); in TEST() 148 {Constraint{kColumn, FilterOp::kEq, SqlValue::String("1")}}, {}); in TEST() 178 {Constraint{kColumn, FilterOp::kEq, SqlValue::String("1,2")}}, {}); in TEST() 213 {Constraint{kColumn, FilterOp::kEq, SqlValue::String("1,2")}}, {}); in TEST() 245 {Constraint{kColumn, FilterOp::kEq, SqlValue::String("1,2")}}, {}); in TEST()
|
D | experimental_counter_dur_generator.cc | 30 Table::Schema::Column{"dur", SqlValue::Type::kLong, false /* is_id */, in CreateSchema() 33 Table::Schema::Column{"delta", SqlValue::Type::kLong, false /* is_id */, in CreateSchema()
|