Searched refs:buf_and_size (Results 1 – 2 of 2) sorted by relevance
/external/perfetto/src/profiling/memory/ |
D | shared_ring_buffer_unittest.cc | 32 std::string ToString(const SharedRingBuffer::Buffer& buf_and_size) { in ToString() argument 33 return std::string(reinterpret_cast<const char*>(&buf_and_size.data[0]), in ToString() 34 buf_and_size.size); in ToString() 63 auto buf_and_size = rd->BeginRead(); in StructuredTest() local 64 ASSERT_EQ(buf_and_size.size, 4u); in StructuredTest() 65 ASSERT_STREQ(reinterpret_cast<const char*>(&buf_and_size.data[0]), "foo"); in StructuredTest() 66 rd->EndRead(std::move(buf_and_size)); in StructuredTest() 69 auto buf_and_size = rd->BeginRead(); in StructuredTest() local 70 ASSERT_EQ(buf_and_size.size, 4u); in StructuredTest() 71 ASSERT_STREQ(reinterpret_cast<const char*>(&buf_and_size.data[0]), "bar"); in StructuredTest() [all …]
|
/external/tensorflow/tensorflow/stream_executor/gpu/ |
D | redzone_allocator.cc | 331 for (const auto& buf_and_size : allocated_buffers_) { in CheckRedzones() local 334 CheckRedzonesForBuffer(stream_, *buf_and_size.first, out_param.cref(), in CheckRedzones() 335 *comparison_kernel, buf_and_size.second, in CheckRedzones()
|