Home
last modified time | relevance | path

Searched refs:memory_allocator (Results 1 – 25 of 56) sorted by relevance

123

/external/cronet/components/metrics/
Dpersistent_system_profile_unittest.cc56 base::PersistentMemoryAllocator* memory_allocator() { in memory_allocator() function in metrics::PersistentSystemProfileTest
70 base::PersistentMemoryAllocator::Iterator iter(memory_allocator()); in TEST_F()
102 ASSERT_TRUE(PersistentSystemProfile::HasSystemProfile(*memory_allocator())); in TEST_F()
104 PersistentSystemProfile::GetSystemProfile(*memory_allocator(), &proto2)); in TEST_F()
118 PersistentSystemProfile::GetSystemProfile(*memory_allocator(), &proto2)); in TEST_F()
134 PersistentSystemProfile::GetSystemProfile(*memory_allocator(), &proto2)); in TEST_F()
152 PersistentSystemProfile::GetSystemProfile(*memory_allocator(), &proto2)); in TEST_F()
167 PersistentSystemProfile::GetSystemProfile(*memory_allocator(), &fetched)); in TEST_F()
178 PersistentSystemProfile::GetSystemProfile(*memory_allocator(), &fetched)); in TEST_F()
185 PersistentSystemProfile::GetSystemProfile(*memory_allocator(), &fetched)); in TEST_F()
[all …]
Dpersistent_system_profile.h35 base::PersistentMemoryAllocator* memory_allocator);
37 base::PersistentMemoryAllocator* memory_allocator);
57 const base::PersistentMemoryAllocator& memory_allocator);
64 const base::PersistentMemoryAllocator& memory_allocator,
81 RecordAllocator(base::PersistentMemoryAllocator* memory_allocator,
85 RecordAllocator(const base::PersistentMemoryAllocator* memory_allocator);
139 const base::PersistentMemoryAllocator& memory_allocator,
Dpersistent_system_profile.cc55 base::PersistentMemoryAllocator* memory_allocator, in RecordAllocator() argument
57 : allocator_(memory_allocator), in RecordAllocator()
66 const base::PersistentMemoryAllocator* memory_allocator) in RecordAllocator() argument
68 const_cast<base::PersistentMemoryAllocator*>(memory_allocator)), in RecordAllocator()
281 base::PersistentMemoryAllocator* memory_allocator) { in RegisterPersistentAllocator() argument
286 RecordAllocator allocator(memory_allocator, 1); in RegisterPersistentAllocator()
292 base::PersistentMemoryAllocator* memory_allocator) { in DeregisterPersistentAllocator() argument
298 return records.allocator() == memory_allocator; in DeregisterPersistentAllocator()
367 const base::PersistentMemoryAllocator& memory_allocator) { in HasSystemProfile() argument
368 const RecordAllocator records(&memory_allocator); in HasSystemProfile()
[all …]
Dfile_metrics_provider.cc545 std::unique_ptr<base::FilePersistentMemoryAllocator> memory_allocator = in CheckAndMapMetricSource() local
548 if (memory_allocator->GetMemoryState() == in CheckAndMapMetricSource()
552 if (memory_allocator->IsCorrupt()) in CheckAndMapMetricSource()
562 memory_allocator->Cache(); in CheckAndMapMetricSource()
566 std::move(memory_allocator)); in CheckAndMapMetricSource()
571 *source->allocator->memory_allocator(), nullptr)) { in CheckAndMapMetricSource()
689 *source->allocator->memory_allocator(), system_profile_proto)) { in ProvideIndependentMetricsOnTaskRunner()
923 *source->allocator->memory_allocator())) { in HasPreviousSessionData()
/external/libchrome/base/metrics/
Dpersistent_histogram_allocator_unittest.cc40 allocator_ = GlobalHistogramAllocator::Get()->memory_allocator(); in CreatePersistentHistogramAllocator()
170 GlobalHistogramAllocator::Get()->memory_allocator()->Name()); in TEST_F()
176 GlobalHistogramAllocator::Get()->memory_allocator()->Name()); in TEST_F()
182 GlobalHistogramAllocator::Get()->memory_allocator()->Name()); in TEST_F()
261 const_cast<void*>(new_allocator->memory_allocator()->data()), in TEST_F()
262 new_allocator->memory_allocator()->size(), 0, 0, "", false)); in TEST_F()
308 const_cast<void*>(new_allocator->memory_allocator()->data()), in TEST_F()
309 new_allocator->memory_allocator()->size(), 0, 0, "", false)); in TEST_F()
Dpersistent_histogram_allocator.cc259 : allocator_(allocator), memory_iter_(allocator->memory_allocator()) {} in Iterator()
914 PersistentMemoryAllocator* memory_allocator = in ReleaseForTesting() local
915 histogram_allocator->memory_allocator(); in ReleaseForTesting()
920 PersistentMemoryAllocator::Iterator iter(memory_allocator); in ReleaseForTesting()
964 memory_allocator()->SetMemoryState(PersistentMemoryAllocator::MEMORY_DELETED); in DeletePersistentLocation()
/external/cronet/base/metrics/
Dpersistent_histogram_allocator_unittest.cc49 allocator_ = GlobalHistogramAllocator::Get()->memory_allocator(); in CreatePersistentHistogramAllocator()
176 GlobalHistogramAllocator::Get()->memory_allocator()->Name()); in TEST_F()
182 GlobalHistogramAllocator::Get()->memory_allocator()->Name()); in TEST_F()
188 GlobalHistogramAllocator::Get()->memory_allocator()->Name()); in TEST_F()
273 const_cast<void*>(new_allocator->memory_allocator()->data()), in TEST_F()
274 new_allocator->memory_allocator()->size(), 0, 0, "", false)); in TEST_F()
327 const_cast<void*>(new_allocator->memory_allocator()->data()), in TEST_F()
328 new_allocator->memory_allocator()->size(), 0, 0, "", false)); in TEST_F()
396 const_cast<void*>(new_allocator->memory_allocator()->data()), in TEST_F()
397 new_allocator->memory_allocator()->size(), 0, 0, "", false)); in TEST_F()
Dpersistent_histogram_allocator.cc259 : allocator_(allocator), memory_iter_(allocator->memory_allocator()) {} in Iterator()
895 PersistentMemoryAllocator* memory_allocator = in ReleaseForTesting() local
896 histogram_allocator->memory_allocator(); in ReleaseForTesting()
901 PersistentMemoryAllocator::Iterator iter(memory_allocator); in ReleaseForTesting()
964 memory_allocator()->SetMemoryState(PersistentMemoryAllocator::MEMORY_DELETED); in DeletePersistentLocation()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dbuffer_allocations.h40 se::DeviceMemoryAllocator* memory_allocator) in BufferAllocations() argument
43 memory_allocator_(memory_allocator) {} in BufferAllocations()
50 se::DeviceMemoryAllocator* memory_allocator() const { in memory_allocator() function
Dgpu_executable.cc461 se::DeviceMemoryAllocator* const memory_allocator, int device_ordinal, in BufferForAllocation() argument
500 memory_allocator->Allocate(device_ordinal, buffer_size); in BufferForAllocation()
535 se::DeviceMemoryAllocator* const memory_allocator, int device_ordinal) { in GenerateBufferAllocations() argument
547 BufferForAllocation(arguments, globals, allocation, memory_allocator, in GenerateBufferAllocations()
552 return {{buffers, device_ordinal, memory_allocator}}; in GenerateBufferAllocations()
688 se::DeviceMemoryAllocator* const memory_allocator = run_options->allocator(); in ExecuteAsyncOnStreamImpl() local
691 !memory_allocator->AllowsAsynchronousDeallocation(); in ExecuteAsyncOnStreamImpl()
710 ExecutionOutput result(/*on_device_shape=*/output_shape_, memory_allocator, in ExecuteAsyncOnStreamImpl()
715 GenerateBufferAllocations(arguments, globals, memory_allocator, in ExecuteAsyncOnStreamImpl()
798 memory_allocator->Allocate(device_ordinal, allocation_size); in ExecuteAsyncOnStreamImpl()
Dfft_thunk.cc92 &fft_plan_cache_, params.stream, buffer_allocations.memory_allocator()); in ExecuteOnStream()
99 se::Stream* stream, se::DeviceMemoryAllocator* memory_allocator) { in RunFft() argument
105 memory_allocator); in RunFft()
Dgpu_executable.h243 se::DeviceMemoryAllocator* const memory_allocator, int device_ordinal);
249 se::DeviceMemoryAllocator* const memory_allocator, int device_ordinal,
Dcublas_lt_matmul_thunk.cc62 allocs.memory_allocator()); in ExecuteOnStream()
Dfft_thunk.h95 se::Stream* stream, se::DeviceMemoryAllocator* memory_allocator);
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dcpu_executable.cc97 se::DeviceMemoryAllocator* memory_allocator, int device_ordinal) { in MemoryForAllocation() argument
118 memory_allocator->Allocate(device_ordinal, buffer_size)); in MemoryForAllocation()
131 se::DeviceMemoryAllocator* memory_allocator, int device_ordinal, in CreateBufferTable() argument
141 buffers[i], MemoryForAllocation(allocation, arguments, memory_allocator, in CreateBufferTable()
345 se::DeviceMemoryAllocator* memory_allocator = run_options->allocator(); in ExecuteAsyncOnStream() local
348 CreateBufferTable(memory_allocator, stream->parent()->device_ordinal(), in ExecuteAsyncOnStream()
/external/tensorflow/tensorflow/compiler/jit/
Dxla_tensor.cc51 client->backend().memory_allocator(), in AllocateShapedBuffer()
59 client->backend().memory_allocator()->Allocate( in AllocateShapedBuffer()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dbuffer_donation_test.cc84 se::StreamExecutorMemoryAllocator memory_allocator( in RunAndCheck() local
88 run_options.set_allocator(&memory_allocator); in RunAndCheck()
105 argument_literal.shape(), &memory_allocator, in RunAndCheck()
119 &memory_allocator); in RunAndCheck()
/external/tensorflow/tensorflow/compiler/xla/pjrt/
Dtracked_device_buffer_test.cc38 client->backend().memory_allocator()->Allocate( in MakeArray()
46 client->backend().memory_allocator(), /*device_ordinal=*/0, in MakeArray()
/external/tensorflow/tensorflow/core/tpu/kernels/
Dtpu_execute_op.cc277 se::DeviceMemoryAllocator* const allocator = backend->memory_allocator(); in BuildComputationInputs()
364 memory_allocator(allocator) {} in OutputBuffers()
371 memory_allocator->Deallocate(buffers.device_ordinal(), buffer); in ~OutputBuffers()
384 se::DeviceMemoryAllocator* const memory_allocator; member
436 node_context->backend()->memory_allocator(); in AllocateOutputTensors()
684 se::DeviceMemoryAllocator* const allocator = backend->memory_allocator(); in DoWork()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_runner.cc56 literal.shape(), backend().memory_allocator(), in TransferLiteralToDevice()
254 argument->shape(), backend().memory_allocator(), device, in ExecuteReplicatedImpl()
464 backend().memory_allocator())); in CreateExecutable()
469 backend().memory_allocator()); in CreateExecutable()
478 run_options.set_allocator(backend().memory_allocator()); in GetServiceRunOptionsForDevice()
/external/tensorflow/tensorflow/compiler/xrt/
Dxrt_tpu_device.h47 return backend()->memory_allocator(); in allocator()
/external/tensorflow/tensorflow/compiler/xrt/kernels/
Dtpu_execute_op.cc158 node_context->backend()->memory_allocator())); in AllocateOutputTuple()
246 backend->memory_allocator()); in ExecuteTPUProgram()
349 release_inputs, backend->memory_allocator())); in DoWork()
470 config, execute_op, backend->memory_allocator()); in DoWork()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/tests/
Dmlir_gpu_test_base.cc81 executable_run_options.set_allocator(backend_->memory_allocator()); in RunMlirModule()
107 auto* allocator = backend_->memory_allocator(); in RunMlirModuleWithHostBuffers()
Dgpu_convolution_regression_test.cc31 backend().default_stream_executor(), backend().memory_allocator()); in CheckForHloText()
/external/tensorflow/tensorflow/compiler/xla/stream_executor/gpu/
Dredzone_allocator.h45 RedzoneAllocator(Stream* stream, DeviceMemoryAllocator* memory_allocator,

123