/external/perfetto/src/trace_processor/containers/ |
D | bit_vector_benchmark.cc | 52 std::minstd_rand0 rnd_engine(kRandomSeed); in BvWithSizeAndSetPercentage() local 56 if (rnd_engine() % 100 < set_percentage) { in BvWithSizeAndSetPercentage() 87 std::minstd_rand0 rnd_engine(kRandomSeed); in BM_BitVectorSet() local 98 bit_pool[i] = rnd_engine() % 2; in BM_BitVectorSet() 99 row_pool[i] = rnd_engine() % size; in BM_BitVectorSet() 113 std::minstd_rand0 rnd_engine(kRandomSeed); in BM_BitVectorClear() local 123 row_pool[i] = rnd_engine() % size; in BM_BitVectorClear() 137 std::minstd_rand0 rnd_engine(kRandomSeed); in BM_BitVectorIndexOfNthSet() local 150 row_pool[i] = rnd_engine() % set_bit_count; in BM_BitVectorIndexOfNthSet() 163 std::minstd_rand0 rnd_engine(kRandomSeed); in BM_BitVectorGetNumBitsSet() local [all …]
|
D | nullable_vector_benchmark.cc | 32 std::minstd_rand0 rnd_engine(kRandomSeed); in BM_NullableVectorAppendNonNull() local 34 data_pool[i] = rnd_engine() % std::numeric_limits<uint8_t>::max(); in BM_NullableVectorAppendNonNull() 52 std::minstd_rand0 rnd_engine(kRandomSeed); in BM_NullableVectorGetNonNull() local 54 sv.Append(rnd_engine() % std::numeric_limits<uint8_t>::max()); in BM_NullableVectorGetNonNull() 57 idx_pool[i] = rnd_engine() % kSize; in BM_NullableVectorGetNonNull()
|
D | row_map_benchmark.cc | 31 std::minstd_rand0 rnd_engine(kRandomSeed); in CreateRange() local 33 uint32_t start = rnd_engine() % end; in CreateRange() 34 uint32_t size = rnd_engine() % (end - start); in CreateRange() 40 std::minstd_rand0 rnd_engine(kRandomSeed); in CreateIndexVector() local 43 rows[i] = rnd_engine() % mod; in CreateIndexVector() 50 std::minstd_rand0 rnd_engine(kRandomSeed); in CreateBitVector() local 53 if (rnd_engine() % 2) { in CreateBitVector()
|
D | string_pool_unittest.cc | 95 std::minstd_rand0 rnd_engine(0); in TEST_F() local 98 buffer.get()[i] = 'A' + (rnd_engine() % 26); in TEST_F() 105 size_t length = static_cast<uint64_t>(rnd_engine()) % (kMaxStrSize + 1); in TEST_F()
|
/external/perfetto/src/trace_processor/tables/ |
D | macros_benchmark.cc | 124 std::minstd_rand0 rnd_engine(45); in BM_TableFilterAndSortRoot() local 127 row.root_non_null = rnd_engine() % partitions; in BM_TableFilterAndSortRoot() 128 row.root_non_null_2 = static_cast<uint32_t>(rnd_engine()); in BM_TableFilterAndSortRoot() 221 std::minstd_rand0 rnd_engine; in BM_TableFilterRootNonNullEqMatchMany() local 223 RootTestTable::Row row(static_cast<uint32_t>(rnd_engine() % partitions)); in BM_TableFilterRootNonNullEqMatchMany() 240 std::minstd_rand0 rnd_engine; in BM_TableFilterRootMultipleNonNull() local 243 row.root_non_null = rnd_engine() % partitions; in BM_TableFilterRootMultipleNonNull() 244 row.root_non_null_2 = rnd_engine() % partitions; in BM_TableFilterRootMultipleNonNull() 262 std::minstd_rand0 rnd_engine; in BM_TableFilterRootNullableEqMatchMany() local 264 uint32_t value = rnd_engine() % partitions; in BM_TableFilterRootNullableEqMatchMany() [all …]
|
/external/perfetto/src/base/ |
D | circular_queue_unittest.cc | 62 std::minstd_rand0 rnd_engine(0); in TEST() local 64 int n = static_cast<int>(rnd_engine()); in TEST() 71 std::minstd_rand0 rnd_engine(0); in TEST() local 75 ASSERT_EQ(*it, static_cast<int>(rnd_engine())); in TEST() 81 std::minstd_rand0 rnd_engine(0); in TEST() local 83 ASSERT_EQ(*queue.begin(), static_cast<int>(rnd_engine())); in TEST() 86 rnd_engine.discard(num_del); in TEST() 93 std::minstd_rand0 rnd_engine(0); in TEST() local 95 queue.emplace_back(static_cast<uint64_t>(rnd_engine())); in TEST()
|
D | utils_unittest.cc | 82 std::minstd_rand0 rnd_engine(0); in TEST() local 85 size_t wsize = static_cast<size_t>(rnd_engine() % 4096) + 1; in TEST()
|
/external/perfetto/src/trace_processor/rpc/ |
D | query_result_serializer_unittest.cc | 290 std::minstd_rand0 rnd_engine(0); in TEST() local 296 size_t len = (rnd_engine() % 4) * 32 * 1024; in TEST() 337 std::minstd_rand0 rnd_engine(0); in TEST() local 344 int type = rnd_engine() % 5; in TEST() 349 expected.emplace_back(SqlValue::Long(static_cast<long>(rnd_engine()))); in TEST() 353 SqlValue::Double(static_cast<double>(rnd_engine()))); in TEST() 356 size_t len = (rnd_engine() % 5) * 32; in TEST() 360 rndstr[n] = static_cast<char>(rnd_engine() % 256); in TEST() 392 uint32_t cells_per_batch = 1 << (rnd_engine() % 8 + 2); in TEST() 393 uint32_t binary_payload_size = 1 << (rnd_engine() % 8 + 8); in TEST()
|
/external/perfetto/src/trace_processor/ |
D | trace_sorter_unittest.cc | 193 std::minstd_rand0 rnd_engine(0); in TEST_F() local 215 int64_t ts = abs(static_cast<int64_t>(rnd_engine())); in TEST_F() 216 int num_cpus = rnd_engine() % 3; in TEST_F() 218 uint32_t cpu = static_cast<uint32_t>(rnd_engine() % 32); in TEST_F()
|
D | trace_database_integrationtest.cc | 48 std::minstd_rand0 rnd_engine(0); in LoadTrace() local 51 size_t chunk_size = dist(rnd_engine); in LoadTrace()
|
/external/perfetto/test/cts/ |
D | end_to_end_integrationtest_cts.cc | 93 std::minstd_rand0 rnd_engine(kRandomSeed); in TestMockProducer() local 96 ASSERT_EQ(packet.for_testing().seq_value(), rnd_engine()); in TestMockProducer()
|
/external/perfetto/test/ |
D | end_to_end_benchmark.cc | 107 std::minstd_rand0 rnd_engine(kRandomSeed); in BenchmarkProducer() local 111 rnd_engine = std::minstd_rand0(packet.for_testing().seq_value()); in BenchmarkProducer() 114 ASSERT_EQ(packet.for_testing().seq_value(), rnd_engine()); in BenchmarkProducer()
|
D | end_to_end_integrationtest.cc | 705 std::minstd_rand0 rnd_engine(kRandomSeed); in TEST_F() local 708 ASSERT_EQ(packet.for_testing().seq_value(), rnd_engine()); in TEST_F() 746 std::minstd_rand0 rnd_engine(kRandomSeed); in TEST_F() local 749 ASSERT_EQ(packet.for_testing().seq_value(), rnd_engine()); in TEST_F()
|
/external/perfetto/src/profiling/memory/ |
D | shared_ring_buffer_unittest.cc | 203 std::minstd_rand0 rnd_engine(static_cast<uint32_t>(thread_id)); in TEST() local 206 size_t size = dist(rnd_engine); in TEST() 210 std::generate(data.begin(), data.end(), rnd_engine); in TEST()
|
/external/perfetto/test/stress_test/ |
D | stress_test.cc | 100 std::minstd_rand0 rnd_engine; member 341 thd.rnd_engine = std::minstd_rand0(te.seq_value()); in ParseTracePacket() 343 const uint32_t expected = static_cast<uint32_t>(thd.rnd_engine()); in ParseTracePacket() 345 thd.rnd_engine = std::minstd_rand0(te.seq_value()); // Resync the engine. in ParseTracePacket()
|
/external/perfetto/src/protozero/filtering/ |
D | message_filter_unittest.cc | 774 std::minstd_rand0 rnd_engine(0); in TEST() local 775 size_t slice_size = rnd_engine() % 4096; in TEST()
|
/external/perfetto/src/tracing/core/ |
D | trace_buffer_unittest.cc | 334 std::minstd_rand0 rnd_engine(seed); in TEST_F() local 335 ResetBuffer(4096 * (1 + rnd_engine() % 32)); in TEST_F() 342 const size_t chunk_size = size_dist(rnd_engine); in TEST_F() 345 ProducerID p = prod_dist(rnd_engine); in TEST_F() 346 WriterID w = wri_dist(rnd_engine); in TEST_F()
|