Home
last modified time | relevance | path

Searched refs:thd_idx (Results 1 – 2 of 2) sorted by relevance

/external/perfetto/src/base/
Dmetatrace_unittest.cc232 auto thread_main = [](uint16_t thd_idx) { in TEST_F() argument
234 m::TraceCounter(/*tag=*/1, thd_idx, static_cast<int>(i)); in TEST_F()
239 for (size_t thd_idx = 0; thd_idx < kNumThreads; thd_idx++) in TEST_F() local
240 threads[thd_idx] = std::thread(thread_main, thd_idx); in TEST_F()
254 auto thd_idx = static_cast<size_t>(it->type_and_id & ~Record::kTypeMask); in TEST_F() local
255 ASSERT_EQ(it->counter_value, last_val[thd_idx]); in TEST_F()
256 last_val[thd_idx]++; in TEST_F()
/external/grpc-grpc/test/cpp/microbenchmarks/
Dbm_cq_multiple_threads.cc154 auto thd_idx = state.thread_index; in BM_Cq_Throughput() local
158 if (thd_idx == 0) { in BM_Cq_Throughput()
192 if (thd_idx == 0) { in BM_Cq_Throughput()