/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 | 52 SqlValue value; 175 using value_type = SqlValue; 192 SqlValue operator*() const { return col_->Get(row_); } 262 SqlValue Get(uint32_t row) const { return GetAtIdx(overlay().Get(row)); } 265 std::optional<uint32_t> IndexOf(SqlValue value) const { 276 if (compare::SqlValue(Get(i), value) == 0) 282 if (value.type != SqlValue::Type::kLong) 298 void FilterInto(FilterOp op, SqlValue value, RowMap* rm) const { 311 if (IsSetId() && op == FilterOp::kEq && value.type == SqlValue::kLong) { 333 std::optional<SqlValue> Min() const { [all …]
|
D | compare.h | 158 inline int SqlValue(const SqlValue& a, const SqlValue& b) { in SqlValue() function 160 if (a.type == SqlValue::kLong && b.type == SqlValue::kDouble) in SqlValue() 163 if (a.type == SqlValue::kDouble && b.type == SqlValue::kLong) in SqlValue() 170 case SqlValue::Type::kLong: in SqlValue() 172 case SqlValue::Type::kDouble: in SqlValue() 174 case SqlValue::Type::kString: in SqlValue() 176 case SqlValue::Type::kBytes: in SqlValue() 179 case SqlValue::Type::kNull: in SqlValue() 188 inline int SqlValueComparator(const trace_processor::SqlValue& a, in SqlValueComparator() 189 const trace_processor::SqlValue& b) { in SqlValueComparator() [all …]
|
D | storage_unittest.cc | 60 storage.CompareSlow(FilterOp::kGe, SqlValue::Long(5), 0, size, builder); in TEST() 73 storage.CompareSlow(FilterOp::kGe, SqlValue::Long(5), 0, size, builder); in TEST() 85 storage.CompareFast(FilterOp::kGe, SqlValue::Long(100), 0, 128, builder); in TEST() 97 storage.CompareSorted(FilterOp::kGe, SqlValue::Long(100), rm); in TEST() 110 storage.CompareSortedIndexes(FilterOp::kGe, SqlValue::Long(60), in TEST() 127 storage.CompareSortedIndexes(FilterOp::kLt, SqlValue::Long(60), in TEST() 141 storage.CompareSortedIndexes(FilterOp::kEq, SqlValue::Long(60), in TEST() 155 overlay.Filter(FilterOp::kIsNull, SqlValue::Long(0), rm); in TEST() 167 overlay.Filter(FilterOp::kIsNotNull, SqlValue::Long(0), rm); in TEST() 179 overlay.Filter(FilterOp::kGe, SqlValue::Long(200), rm); in TEST() [all …]
|
D | storage.h | 40 SqlValue value, 49 SqlValue value, 56 virtual void CompareSorted(FilterOp op, SqlValue value, RowMap&) const = 0; 61 SqlValue value,
|
D | numeric_storage.h | 37 SqlValue val, 43 SqlValue val, 48 void CompareSorted(FilterOp op, SqlValue val, RowMap&) const override; 51 SqlValue val,
|
D | typed_column.h | 122 static SqlValue::Type SqlValueType() { in SqlValueType() 218 Constraint eq(uint32_t v) const { return eq_value(SqlValue::Long(v)); } in eq() 219 Constraint gt(uint32_t v) const { return gt_value(SqlValue::Long(v)); } in gt() 220 Constraint lt(uint32_t v) const { return lt_value(SqlValue::Long(v)); } in lt() 221 Constraint ne(uint32_t v) const { return ne_value(SqlValue::Long(v)); } in ne() 222 Constraint ge(uint32_t v) const { return ge_value(SqlValue::Long(v)); } in ge() 223 Constraint le(uint32_t v) const { return le_value(SqlValue::Long(v)); } in le()
|
/external/perfetto/src/trace_processor/sqlite/ |
D | sqlite_utils.h | 60 inline SqlValue::Type SqliteTypeToSqlValueType(int sqlite_type) { in SqliteTypeToSqlValueType() 63 return SqlValue::Type::kNull; in SqliteTypeToSqlValueType() 65 return SqlValue::Type::kBytes; in SqliteTypeToSqlValueType() 67 return SqlValue::Type::kLong; in SqliteTypeToSqlValueType() 69 return SqlValue::Type::kDouble; in SqliteTypeToSqlValueType() 71 return SqlValue::Type::kString; in SqliteTypeToSqlValueType() 76 inline SqlValue SqliteValueToSqlValue(sqlite3_value* value) { in SqliteValueToSqlValue() 77 SqlValue sql_value; in SqliteValueToSqlValue() 80 sql_value.type = SqlValue::Type::kLong; in SqliteValueToSqlValue() 84 sql_value.type = SqlValue::Type::kDouble; in SqliteValueToSqlValue() [all …]
|
D | sqlite_utils_unittest.cc | 83 ASSERT_TRUE(ExtractFromSqlValue(SqlValue::Long(1234), int32).ok()); in TEST() 86 ASSERT_TRUE(ExtractFromSqlValue(SqlValue::Long(kMin), int32).ok()); in TEST() 89 ASSERT_TRUE(ExtractFromSqlValue(SqlValue::Long(kMax), int32).ok()); in TEST() 92 ASSERT_TRUE(ExtractFromSqlValue(SqlValue(), int32).ok()); in TEST() 95 ASSERT_FALSE(ExtractFromSqlValue(SqlValue::Long(kMax + 1), int32).ok()); in TEST() 96 ASSERT_FALSE(ExtractFromSqlValue(SqlValue::Double(1.0), int32).ok()); in TEST() 97 ASSERT_FALSE(ExtractFromSqlValue(SqlValue::String("foo"), int32).ok()); in TEST() 106 ASSERT_TRUE(ExtractFromSqlValue(SqlValue::Long(1234), uint32).ok()); in TEST() 109 ASSERT_TRUE(ExtractFromSqlValue(SqlValue::Long(kMin), uint32).ok()); in TEST() 112 ASSERT_TRUE(ExtractFromSqlValue(SqlValue::Long(kMax), uint32).ok()); in TEST() [all …]
|
D | sqlite_utils.cc | 38 << SqliteTypeToFriendlyString(static_cast<SqlValue::Type>(i)); in ToExpectedTypesString() 49 SqlValue::Type actual_type, in InvalidArgumentTypeError() 58 base::StatusOr<SqlValue> ExtractArgument(size_t argc, in ExtractArgument() 67 SqlValue value = sqlite_utils::SqliteValueToSqlValue(argv[arg_index]); in ExtractArgument() 126 SqlValue::Type type; in GetColumnsForTable() 129 type = SqlValue::Type::kString; in GetColumnsForTable() 131 type = SqlValue::Type::kDouble; in GetColumnsForTable() 138 type = SqlValue::Type::kLong; in GetColumnsForTable() 142 type = SqlValue::Type::kNull; in GetColumnsForTable() 162 const char* SqliteTypeToFriendlyString(SqlValue::Type type) { in SqliteTypeToFriendlyString() [all …]
|
D | stats_table.cc | 33 SqliteTable::Column(Column::kName, "name", SqlValue::Type::kString), in Init() 35 SqliteTable::Column(Column::kIndex, "idx", SqlValue::Type::kLong), in Init() 37 SqlValue::Type::kString), in Init() 39 SqlValue::Type::kString), in Init() 40 SqliteTable::Column(Column::kValue, "value", SqlValue::Type::kLong), in Init() 42 SqlValue::Type::kString), in Init()
|
D | db_sqlite_table.cc | 64 SqlValue SqliteValueToSqlValue(sqlite3_value* sqlite_val) { in SqliteValueToSqlValue() 66 SqlValue value; in SqliteValueToSqlValue() 69 value.type = SqlValue::kLong; in SqliteValueToSqlValue() 73 value.type = SqlValue::kString; in SqliteValueToSqlValue() 78 value.type = SqlValue::kDouble; in SqliteValueToSqlValue() 82 value.type = SqlValue::kBytes; in SqliteValueToSqlValue() 87 value.type = SqlValue::kNull; in SqliteValueToSqlValue() 454 SqlValue value = SqliteValueToSqlValue(argv[i]); in Filter() 544 case SqlValue::kString: in Filter() 547 case SqlValue::kBytes: in Filter() [all …]
|
/external/perfetto/src/trace_processor/prelude/functions/ |
D | stack_functions.cc | 48 SqlValue& out, in SetBytesOutputValue() 55 out = SqlValue::Bytes(dest, src.size()); in SetBytesOutputValue() 70 SqlValue& out, in Run() 82 SqlValue& out, in RunImpl() 90 SqlValue value = sqlite_utils::SqliteValueToSqlValue(argv[arg_index]); in RunImpl() 92 case SqlValue::kBytes: { in RunImpl() 96 case SqlValue::kString: { in RunImpl() 100 case SqlValue::kNull: in RunImpl() 102 case SqlValue::kLong: in RunImpl() 103 case SqlValue::kDouble: in RunImpl() [all …]
|
D | utils.h | 42 SqlValue& /*out*/, 49 SqlValue& /*out*/, in Run() argument 74 SqlValue& out, 81 SqlValue& out, in Run() 101 out = SqlValue::Long(static_cast<int64_t>(hash.digest())); in Run() 109 SqlValue& out, 116 SqlValue& out, in Run() 132 out = SqlValue::String(s.release()); in Run() 142 SqlValue& out, 149 SqlValue& out, in Run() [all …]
|
D | clock_functions.h | 38 SqlValue& out, 45 SqlValue& out, in Run() 72 out = SqlValue::String(s.release()); in Run() 81 SqlValue& out, 88 SqlValue& out, in Run() 111 out = SqlValue::Long(*monotonic); in Run()
|
D | pprof_functions.cc | 72 base::StatusOr<SqlValue> value = in Step() 73 sqlite_utils::ExtractArgument(argc, argv, "stack", 0, SqlValue::kBytes); in Step() 112 base::StatusOr<SqlValue> type = sqlite_utils::ExtractArgument( in GetSampleTypes() 113 argc, argv, "sample_type", i, SqlValue::kString); in GetSampleTypes() 118 base::StatusOr<SqlValue> units = sqlite_utils::ExtractArgument( in GetSampleTypes() 119 argc, argv, "sample_units", i + 1, SqlValue::kString); in GetSampleTypes() 142 base::StatusOr<SqlValue> value = sqlite_utils::ExtractArgument( in UpdateSampleValue() 143 argc, argv, "sample_value", i, SqlValue::kLong); in UpdateSampleValue()
|
/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 …]
|
/external/perfetto/include/perfetto/trace_processor/ |
D | basic_types.h | 156 struct PERFETTO_EXPORT_COMPONENT SqlValue { struct 167 SqlValue() = default; argument 169 static SqlValue Long(int64_t v) { in Long() argument 170 SqlValue value; in Long() 176 static SqlValue Double(double v) { in Double() argument 177 SqlValue value; in Double() 183 static SqlValue String(const char* v) { in String() argument 184 SqlValue value; in String() 190 static SqlValue Bytes(const void* v, size_t size) { in Bytes() argument 191 SqlValue value; in Bytes()
|
/external/perfetto/src/trace_processor/metrics/ |
D | metrics.cc | 96 const SqlValue& value) { in AppendSqlValue() 98 case SqlValue::kLong: in AppendSqlValue() 100 case SqlValue::kDouble: in AppendSqlValue() 102 case SqlValue::kString: in AppendSqlValue() 104 case SqlValue::kBytes: in AppendSqlValue() 108 case SqlValue::kNull: in AppendSqlValue() 413 base::Status RepeatedFieldBuilder::AddSqlValue(SqlValue value) { in AddSqlValue() 415 case SqlValue::kLong: in AddSqlValue() 418 case SqlValue::kDouble: in AddSqlValue() 421 case SqlValue::kString: in AddSqlValue() [all …]
|
D | metrics.h | 68 const SqlValue& value); 122 base::Status AddSqlValue(SqlValue value); 157 SqlValue& out, 171 SqlValue& out, 185 SqlValue& out, 194 SqlValue& out,
|
/external/perfetto/src/trace_processor/ |
D | iterator_impl.h | 98 SqlValue Get(uint32_t col) { in Get() 101 SqlValue value; in Get() 104 value.type = SqlValue::kLong; in Get() 108 value.type = SqlValue::kString; in Get() 113 value.type = SqlValue::kDouble; in Get() 117 value.type = SqlValue::kBytes; in Get() 123 value.type = SqlValue::kNull; in Get()
|
D | trace_database_integrationtest.cc | 49 ASSERT_EQ(it.Get(0).type, SqlValue::kLong); in TEST() 57 ASSERT_EQ(it.Get(0).type, SqlValue::kLong); in TEST() 72 ASSERT_EQ(it.Get(0).type, SqlValue::kLong); in TEST() 87 ASSERT_EQ(it.Get(0).type, SqlValue::kLong); in TEST() 135 ASSERT_EQ(it.Get(0).type, SqlValue::kLong); in TEST_F() 137 ASSERT_EQ(it.Get(1).type, SqlValue::kLong); in TEST_F() 146 ASSERT_EQ(it.Get(0).type, SqlValue::kLong); in TEST_F() 148 ASSERT_EQ(it.Get(1).type, SqlValue::kLong); in TEST_F() 161 ASSERT_EQ(it.Get(0).type, SqlValue::kLong); in TEST_F() 163 ASSERT_EQ(it.Get(1).type, SqlValue::kLong); in TEST_F() [all …]
|
/external/cronet/base/test/ |
D | test_trace_processor.cc | 33 perfetto::trace_processor::SqlValue sql_value = it.Get(c); in ExecuteQuery() 36 case perfetto::trace_processor::SqlValue::Type::kLong: in ExecuteQuery() 40 case perfetto::trace_processor::SqlValue::Type::kDouble: in ExecuteQuery() 44 case perfetto::trace_processor::SqlValue::Type::kString: in ExecuteQuery() 47 case perfetto::trace_processor::SqlValue::Type::kBytes: in ExecuteQuery() 50 case perfetto::trace_processor::SqlValue::Type::kNull: in ExecuteQuery()
|
/external/perfetto/src/trace_processor/prelude/operators/ |
D | window_operator.cc | 39 SqliteTable::Column(Column::kRowId, "rowid", SqlValue::Type::kLong, in Init() 42 SqlValue::Type::kLong, kHidden), in Init() 44 SqlValue::Type::kLong, kHidden), in Init() 46 SqlValue::Type::kLong, kHidden), in Init() 48 SqliteTable::Column(Column::kTs, "ts", SqlValue::Type::kLong), in Init() 49 SqliteTable::Column(Column::kDuration, "dur", SqlValue::Type::kLong), in Init() 51 SqlValue::Type::kLong), in Init()
|
/external/perfetto/src/trace_processor/util/ |
D | sql_argument.cc | 78 SqlValue::Type TypeToSqlValueType(sql_argument::Type type) { in TypeToSqlValueType() 85 return SqlValue::kLong; in TypeToSqlValueType() 88 return SqlValue::kDouble; in TypeToSqlValueType() 90 return SqlValue::kString; in TypeToSqlValueType() 93 return SqlValue::kBytes; in TypeToSqlValueType()
|