Home
last modified time | relevance | path

Searched refs:weak_this (Results 1 – 18 of 18) sorted by relevance

/external/perfetto/src/perfetto_cmd/
Dtrigger_producer.cc43 auto weak_this = weak_factory_.GetWeakPtr(); in TriggerProducer() local
45 [weak_this]() { in TriggerProducer()
46 if (!weak_this || weak_this->issued_callback_) in TriggerProducer()
48 weak_this->issued_callback_ = true; in TriggerProducer()
49 weak_this->callback_(false); in TriggerProducer()
60 auto weak_this = weak_factory_.GetWeakPtr(); in OnConnect() local
61 task_runner_->PostTask([weak_this]() { in OnConnect()
62 if (!weak_this || weak_this->issued_callback_) in OnConnect()
64 weak_this->issued_callback_ = true; in OnConnect()
65 weak_this->callback_(true); in OnConnect()
/external/perfetto/src/tracing/core/
Dshared_memory_arbiter_impl.cc174 base::WeakPtr<SharedMemoryArbiterImpl> weak_this; in UpdateCommitDataRequest() local
180 weak_this = weak_ptr_factory_.GetWeakPtr(); in UpdateCommitDataRequest()
246 task_runner_->PostTask([weak_this] { in UpdateCommitDataRequest()
247 if (weak_this) in UpdateCommitDataRequest()
248 weak_this->FlushPendingCommitDataRequests(); in UpdateCommitDataRequest()
269 auto weak_this = weak_ptr_factory_.GetWeakPtr(); in FlushPendingCommitDataRequests() local
270 task_runner_->PostTask([weak_this, callback] { in FlushPendingCommitDataRequests()
271 if (weak_this) in FlushPendingCommitDataRequests()
272 weak_this->FlushPendingCommitDataRequests(std::move(callback)); in FlushPendingCommitDataRequests()
306 auto weak_this = weak_ptr_factory_.GetWeakPtr(); in CreateTraceWriter() local
[all …]
Dtracing_service_impl.cc495 auto weak_this = weak_ptr_factory_.GetWeakPtr(); in EnableTracing() local
506 [weak_this, tsid]() { in EnableTracing()
507 if (weak_this) in EnableTracing()
508 weak_this->OnStartTriggersTimeout(tsid); in EnableTracing()
680 auto weak_this = weak_ptr_factory_.GetWeakPtr(); in StartTracing() local
682 [weak_this, tsid] { in StartTracing()
685 if (!weak_this) in StartTracing()
687 auto* tracing_session_ptr = weak_this->GetTracingSession(tsid); in StartTracing()
699 weak_this->FlushAndDisableTracing(tsid); in StartTracing()
706 auto weak_this = weak_ptr_factory_.GetWeakPtr(); in StartTracing() local
[all …]
Dstartup_trace_writer_registry.cc118 auto weak_this = weak_ptr_factory_->GetWeakPtr(); in TryBindWriters() local
119 task_runner_->PostTask([weak_this] { in TryBindWriters()
120 if (weak_this) in TryBindWriters()
121 weak_this->TryBindWriters(); in TryBindWriters()
139 auto weak_this = weak_ptr_factory_->GetWeakPtr(); in OnUnboundWritersRemovedLocked() local
144 task_runner_->PostTask([weak_this, callback]() { in OnUnboundWritersRemovedLocked()
145 if (!weak_this) in OnUnboundWritersRemovedLocked()
148 callback(weak_this.get()); in OnUnboundWritersRemovedLocked()
/external/perfetto/src/tracing/ipc/consumer/
Dconsumer_ipc_client_impl.cc78 auto weak_this = weak_ptr_factory_.GetWeakPtr(); in EnableTracing() local
80 [weak_this](ipc::AsyncResult<protos::EnableTracingResponse> response) { in EnableTracing()
81 if (weak_this) in EnableTracing()
82 weak_this->OnEnableTracingResponse(std::move(response)); in EnableTracing()
223 auto weak_this = weak_ptr_factory_.GetWeakPtr(); in Detach() local
226 [weak_this](ipc::AsyncResult<protos::DetachResponse> response) { in Detach()
227 if (weak_this) in Detach()
228 weak_this->consumer_->OnDetach(!!response); in Detach()
243 auto weak_this = weak_ptr_factory_.GetWeakPtr(); in Attach() local
245 async_response.Bind([weak_this]( in Attach()
[all …]
/external/perfetto/src/traced/service/
Dlazy_producer.cc63 auto weak_this = weak_factory_.GetWeakPtr(); in StopDataSource() local
65 [weak_this, cur_generation] { in StopDataSource()
66 if (!weak_this) in StopDataSource()
68 if (weak_this->generation_ == cur_generation) in StopDataSource()
69 weak_this->SetAndroidProperty(weak_this->property_name_, "0"); in StopDataSource()
/external/perfetto/src/traced/probes/android_log/
Dandroid_log_data_source.cc169 auto weak_this = weak_factory_.GetWeakPtr(); in EnableSocketWatchTask() local
170 task_runner_->AddFileDescriptorWatch(logdr_sock_.fd(), [weak_this] { in EnableSocketWatchTask()
171 if (weak_this) in EnableSocketWatchTask()
172 weak_this->OnSocketDataAvailable(); in EnableSocketWatchTask()
195 auto weak_this = weak_factory_.GetWeakPtr(); in OnSocketDataAvailable() local
197 [weak_this] { in OnSocketDataAvailable()
198 if (weak_this) { in OnSocketDataAvailable()
199 weak_this->ReadLogSocket(); in OnSocketDataAvailable()
200 weak_this->EnableSocketWatchTask(true); in OnSocketDataAvailable()
220 auto weak_this = weak_factory_.GetWeakPtr(); in ReadLogSocket() local
[all …]
/external/perfetto/src/traced/probes/ftrace/
Dftrace_controller.cc259 base::WeakPtr<FtraceController> weak_this = weak_factory_.GetWeakPtr(); in DrainCPUs() local
260 task_runner_->PostTask([weak_this] { in DrainCPUs()
261 if (weak_this) in DrainCPUs()
262 weak_this->UnblockReaders(); in DrainCPUs()
298 base::WeakPtr<FtraceController> weak_this = weak_factory_.GetWeakPtr(); in StartIfNeeded() local
353 base::WeakPtr<FtraceController> weak_this = weak_factory_.GetWeakPtr(); in Flush() local
355 [weak_this, flush_id] { in Flush()
356 if (weak_this) in Flush()
357 weak_this->OnFlushTimeout(flush_id); in Flush()
/external/perfetto/src/traced/probes/filesystem/
Dinode_file_data_source.cc245 auto weak_this = GetWeakPtr(); in OnInodes() local
247 [weak_this] { in OnInodes()
248 if (!weak_this) { in OnInodes()
252 weak_this.get()->FindMissingInodes(); in OnInodes()
349 auto weak_this = GetWeakPtr(); in OnInodeScanDone() local
352 [weak_this] { in OnInodeScanDone()
353 if (!weak_this) { in OnInodeScanDone()
357 weak_this->FindMissingInodes(); in OnInodeScanDone()
388 auto weak_this = GetWeakPtr(); in FindMissingInodes() local
Dfile_scanner.cc68 auto weak_this = weak_factory_.GetWeakPtr(); in Scan() local
70 [weak_this, task_runner] { in Scan()
71 if (!weak_this) in Scan()
73 weak_this->Scan(task_runner); in Scan()
/external/perfetto/src/traced/probes/sys_stats/
Dsys_stats_data_source.cc142 auto weak_this = GetWeakPtr(); in Start() local
143 task_runner_->PostTask(std::bind(&SysStatsDataSource::Tick, weak_this)); in Start()
147 void SysStatsDataSource::Tick(base::WeakPtr<SysStatsDataSource> weak_this) { in Tick() argument
148 if (!weak_this) in Tick()
150 SysStatsDataSource& thiz = *weak_this; in Tick()
155 std::bind(&SysStatsDataSource::Tick, weak_this), delay_ms); in Tick()
/external/perfetto/src/profiling/memory/
Dheapprofd_producer.cc757 auto weak_this = weak_factory_.GetWeakPtr(); in PostAllocRecord() local
758 task_runner_->PostTask([weak_this, raw_alloc_rec] { in PostAllocRecord()
759 if (weak_this) in PostAllocRecord()
760 weak_this->HandleAllocRecord(std::move(*raw_alloc_rec)); in PostAllocRecord()
768 auto weak_this = weak_factory_.GetWeakPtr(); in PostFreeRecord() local
769 task_runner_->PostTask([weak_this, raw_free_rec] { in PostFreeRecord()
770 if (weak_this) in PostFreeRecord()
771 weak_this->HandleFreeRecord(std::move(*raw_free_rec)); in PostFreeRecord()
779 auto weak_this = weak_factory_.GetWeakPtr(); in PostSocketDisconnected() local
780 task_runner_->PostTask([weak_this, ds_id, pid, stats] { in PostSocketDisconnected()
[all …]
/external/perfetto/src/traced/probes/
Dprobes_producer.cc340 auto weak_this = weak_factory_.GetWeakPtr(); in Flush() local
351 auto flush_callback = [weak_this, flush_request_id, ds_id] { in Flush()
352 if (weak_this) in Flush()
353 weak_this->OnDataSourceFlushComplete(flush_request_id, ds_id); in Flush()
366 [weak_this, flush_request_id] { in Flush()
367 if (weak_this) in Flush()
368 weak_this->OnFlushTimeout(flush_request_id); in Flush()
/external/perfetto/src/traced/probes/power/
Dandroid_power_data_source.cc176 auto weak_this = weak_factory_.GetWeakPtr(); in Tick() local
178 [weak_this] { in Tick()
179 if (weak_this) in Tick()
180 weak_this->Tick(); in Tick()
/external/perfetto/src/traced/probes/ps/
Dprocess_stats_data_source.cc126 auto weak_this = GetWeakPtr(); in Start() local
127 task_runner_->PostTask(std::bind(&ProcessStatsDataSource::Tick, weak_this)); in Start()
343 base::WeakPtr<ProcessStatsDataSource> weak_this) { in Tick() argument
344 if (!weak_this) in Tick()
346 ProcessStatsDataSource& thiz = *weak_this; in Tick()
350 std::bind(&ProcessStatsDataSource::Tick, weak_this), delay_ms); in Tick()
/external/perfetto/src/tracing/ipc/service/
Dconsumer_ipc_service.cc125 auto weak_this = weak_ptr_factory_.GetWeakPtr(); in Flush() local
126 auto callback = [weak_this, it](bool success) { in Flush()
127 if (weak_this) in Flush()
128 weak_this->OnFlushCallback(success, std::move(it)); in Flush()
/external/libchrome/base/files/
Dfile_descriptor_watcher_posix.cc186 WeakPtr<Controller> weak_this = weak_factory_.GetWeakPtr(); in RunCallback() local
191 if (weak_this) in RunCallback()
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
Dp4.cpp215 weak_ptr<T> weak_this; member