Home | History | Annotate | Download | only in core

Lines Matching refs:weak_this

495   auto weak_this = weak_ptr_factory_.GetWeakPtr();
506 [weak_this, tsid]() {
507 if (weak_this)
508 weak_this->OnStartTriggersTimeout(tsid);
680 auto weak_this = weak_ptr_factory_.GetWeakPtr();
682 [weak_this, tsid] {
685 if (!weak_this)
687 auto* tracing_session_ptr = weak_this->GetTracingSession(tsid);
699 weak_this->FlushAndDisableTracing(tsid);
706 auto weak_this = weak_ptr_factory_.GetWeakPtr();
708 [weak_this, tsid] {
709 if (weak_this)
710 weak_this->ReadBuffers(tsid, nullptr);
830 auto weak_this = weak_ptr_factory_.GetWeakPtr();
835 [weak_this, tsid] {
836 if (weak_this)
837 weak_this->OnDisableTracingTimeout(tsid);
943 auto weak_this = weak_ptr_factory_.GetWeakPtr();
976 [weak_this, tsid] {
980 if (weak_this && weak_this->GetTracingSession(tsid))
981 weak_this->FlushAndDisableTracing(tsid);
1091 auto weak_this = weak_ptr_factory_.GetWeakPtr();
1093 [weak_this, tsid, flush_request_id] {
1094 if (weak_this)
1095 weak_this->OnFlushTimeout(tsid, flush_request_id);
1111 auto weak_this = weak_ptr_factory_.GetWeakPtr();
1114 task_runner_->PostTask([weak_this, tsid, callback]() {
1115 if (weak_this) {
1116 weak_this->CompleteFlush(tsid, std::move(callback),
1281 auto weak_this = weak_ptr_factory_.GetWeakPtr();
1282 Flush(tsid, 0, [weak_this, tsid](bool success) {
1285 if (!weak_this)
1287 TracingSession* session = weak_this->GetTracingSession(tsid);
1291 weak_this->DisableTracing(tsid);
1297 weak_this->FreeBuffers(tsid);
1310 auto weak_this = weak_ptr_factory_.GetWeakPtr();
1312 [weak_this, tsid] {
1313 if (weak_this)
1314 weak_this->PeriodicFlushTask(tsid, /*post_next_only=*/false);
1338 auto weak_this = weak_ptr_factory_.GetWeakPtr();
1340 [weak_this, tsid] {
1341 if (weak_this)
1342 weak_this->PeriodicClearIncrementalStateTask(
1607 auto weak_this = weak_ptr_factory_.GetWeakPtr();
1609 [weak_this, tsid] {
1610 if (weak_this)
1611 weak_this->ReadBuffers(tsid, nullptr);
1620 auto weak_this = weak_ptr_factory_.GetWeakPtr();
1621 task_runner_->PostTask([weak_this, weak_consumer, tsid] {
1622 if (!weak_this || !weak_consumer)
1624 weak_this->ReadBuffers(tsid, weak_consumer.get());
2295 auto weak_this = GetWeakPtr();
2296 task_runner_->PostTask([weak_this] {
2297 if (weak_this)
2298 weak_this->consumer_->OnTracingDisabled();
2371 auto weak_this = GetWeakPtr();
2372 task_runner_->PostTask([weak_this, success] {
2373 if (weak_this)
2374 weak_this->consumer_->OnDetach(success);
2381 auto weak_this = GetWeakPtr();
2382 task_runner_->PostTask([weak_this, success] {
2383 if (!weak_this)
2385 Consumer* consumer = weak_this->consumer_;
2387 weak_this->service_->GetTracingSession(weak_this->tracing_session_id_);
2405 auto weak_this = GetWeakPtr();
2406 task_runner_->PostTask([weak_this, success, stats] {
2407 if (weak_this)
2408 weak_this->consumer_->OnTraceStats(success, stats);
2473 auto weak_this = GetWeakPtr();
2474 task_runner_->PostTask([weak_this] {
2475 if (!weak_this)
2479 auto observable_events = std::move(weak_this->observable_events_);
2480 weak_this->consumer_->OnObservableEvents(*observable_events);
2640 auto weak_this = weak_ptr_factory_.GetWeakPtr();
2641 task_runner_->PostTask([weak_this, ds_inst_id] {
2642 if (weak_this)
2643 weak_this->producer_->StopDataSource(ds_inst_id);
2673 auto weak_this = weak_ptr_factory_.GetWeakPtr();
2674 task_runner_->PostTask([weak_this] {
2675 if (weak_this)
2676 weak_this->producer_->OnTracingSetup();
2684 auto weak_this = weak_ptr_factory_.GetWeakPtr();
2685 task_runner_->PostTask([weak_this, flush_request_id, data_sources] {
2686 if (weak_this) {
2687 weak_this->producer_->Flush(flush_request_id, data_sources.data(),
2698 auto weak_this = weak_ptr_factory_.GetWeakPtr();
2699 task_runner_->PostTask([weak_this, ds_id, config] {
2700 if (weak_this)
2701 weak_this->producer_->SetupDataSource(ds_id, std::move(config));
2709 auto weak_this = weak_ptr_factory_.GetWeakPtr();
2710 task_runner_->PostTask([weak_this, ds_id, config] {
2711 if (weak_this)
2712 weak_this->producer_->StartDataSource(ds_id, std::move(config));
2739 auto weak_this = weak_ptr_factory_.GetWeakPtr();
2740 task_runner_->PostTask([weak_this, data_sources] {
2741 if (weak_this) {
2742 weak_this->producer_->ClearIncrementalState(data_sources.data(),