Home
last modified time | relevance | path

Searched refs:NoDestructor (Results 1 – 22 of 22) sorted by relevance

/external/perfetto/include/perfetto/base/
Dno_destructor.h41 class NoDestructor {
46 explicit NoDestructor(Args&&... args) { in NoDestructor() function
50 NoDestructor(const NoDestructor&) = delete;
51 NoDestructor& operator=(const NoDestructor&) = delete;
52 NoDestructor(NoDestructor&&) = delete;
53 NoDestructor& operator=(NoDestructor&&) = delete;
55 ~NoDestructor() = default;
/external/libchrome/base/
Dno_destructor.h49 class NoDestructor {
54 explicit NoDestructor(Args&&... args) { in NoDestructor() function
60 explicit NoDestructor(const T& x) { new (storage_) T(x); } in NoDestructor() function
61 explicit NoDestructor(T&& x) { new (storage_) T(std::move(x)); } in NoDestructor() function
63 NoDestructor(const NoDestructor&) = delete;
64 NoDestructor& operator=(const NoDestructor&) = delete;
66 ~NoDestructor() = default;
Dno_destructor_unittest.cc23 NoDestructor<CheckOnDestroy> destructor_should_not_run; in TEST()
54 static NoDestructor<ForwardingTestStruct> test_forwarding( in TEST()
59 static NoDestructor<std::string> awesome("awesome"); in TEST()
71 static NoDestructor<std::vector<std::string>> vector({"a", "b", "c"}); in TEST()
/external/libchrome/mojo/public/cpp/bindings/lib/
Dsync_call_restrictions.cc44 static base::NoDestructor<GlobalSyncCallSettings> global_settings; in GetGlobalSettings()
49 static base::NoDestructor<base::SequenceLocalStorageSlot<size_t>> count; in GetSequenceLocalScopedAllowCount()
Dmessage_dumper.cc21 static base::NoDestructor<base::FilePath> dump_directory; in DumpDirectory()
Dsequence_local_sync_event_watcher.cc174 static base::NoDestructor<StorageSlotType> storage; in GetStorageSlot()
/external/perfetto/src/base/
Dno_destructor_unittest.cc43 { NoDestructor<SetFlagOnDestruct> f(&destructor_called); } in TEST()
57 static NoDestructor<NonTrivial> x(std::vector<int>{1, 2, 3}, in TEST()
/external/libchrome/base/sampling_heap_profiler/
Dsampling_heap_profiler.h21 class NoDestructor; variable
112 friend class base::NoDestructor<SamplingHeapProfiler>;
Dsampling_heap_profiler.cc163 static base::NoDestructor<base::ThreadLocalStorage::Slot> in AccumulatedBytesTLS()
433 static base::NoDestructor<SamplingHeapProfiler> instance; in GetInstance()
/external/libchrome/base/time/
Ddefault_tick_clock.cc19 static const base::NoDestructor<DefaultTickClock> default_tick_clock; in GetInstance()
Dtime.cc362 static const base::NoDestructor<base::TimeTicks> epoch([]() { in UnixEpoch()
/external/libchrome/libchrome_tools/patch/
Dmojom_disable_trace_and_mem_dump.patch86 - static base::NoDestructor<MessageMemoryDumpProvider> provider;
116 +// static base::NoDestructor<MessageMemoryDumpProvider> provider;
214 - static base::NoDestructor<scoped_refptr<base::TaskRunner>> task_runner(
218 + // static base::NoDestructor<scoped_refptr<base::TaskRunner>> task_runner(
/external/libchrome/base/metrics/
Ddummy_histogram.h51 friend class NoDestructor<DummyHistogram>;
Ddummy_histogram.cc67 static base::NoDestructor<DummyHistogram> dummy_histogram; in GetInstance()
/external/libchrome/base/debug/
Dtask_annotator.cc27 static NoDestructor<ThreadLocalPointer<const PendingTask>> in GetTLSForCurrentPendingTask()
/external/libchrome/base/threading/
Dthread_id_name_manager.cc25 static base::NoDestructor<base::ThreadLocalStorage::Slot> thread_name_tls; in GetThreadNameTLS()
Dthread_local_storage_unittest.cc52 static NoDestructor<ThreadLocalStorage::Slot> slot( in TLSSlot()
/external/perfetto/src/trace_processor/
Dtrace_storage.cc57 static const base::NoDestructor<std::vector<const char*>> map( in GetRefTypeStringMap()
/external/libchrome/base/message_loop/
Dmessage_loop_current.cc19 static NoDestructor<ThreadLocalPointer<MessageLoop>> lazy_tls_ptr; in GetTLSMessageLoop()
/external/libchrome/mojo/public/c/system/
Dthunks.cc147 static base::NoDestructor<mojo::CoreLibraryInitializer> initializer(options); in MojoInitialize()
/external/perfetto/src/profiling/memory/
Dmalloc_hooks.cc130 perfetto::base::NoDestructor<std::shared_ptr<perfetto::profiling::Client>>
/external/libchrome/ipc/
Dipc_mojo_bootstrap.cc89 static base::NoDestructor<ControllerMemoryDumpProvider> provider; in GetMemoryDumpProvider()