Home
last modified time | relevance | path

Searched refs:thread_table (Results 1 – 17 of 17) sorted by relevance

/external/perfetto/src/trace_processor/importers/common/
Dprocess_tracker.cc53 auto* thread_table = context_->storage->mutable_thread_table(); in StartNewThread() local
54 UniqueTid new_utid = thread_table->Insert(row).row; in StartNewThread()
62 auto* thread_table = context_->storage->mutable_thread_table(); in EndThread() local
66 thread_table->mutable_end_ts()->Set(utid, timestamp); in EndThread()
73 auto opt_upid = thread_table->upid()[utid]; in EndThread()
77 if (process_table->pid()[*opt_upid] == thread_table->tid()[utid]) { in EndThread()
120 auto* thread_table = context_->storage->mutable_thread_table(); in UpdateThreadNameByUtid() local
122 thread_table->mutable_name()->Set(utid, thread_name_id); in UpdateThreadNameByUtid()
192 auto* thread_table = context_->storage->mutable_thread_table(); in UpdateThread() local
199 PERFETTO_DCHECK(thread_table->tid()[utid] == tid); in UpdateThread()
[all …]
Dprocess_tracker_unittest.cc99 ASSERT_EQ(context.storage->thread_table().row_count(), 3u); in TEST_F()
103 ASSERT_EQ(context.storage->thread_table().upid()[1].value(), 1u); in TEST_F()
124 ASSERT_EQ(context.storage->thread_table().row_count(), 5u); in TEST_F()
141 ASSERT_EQ(context.storage->thread_table().row_count(), 2u); in TEST_F()
142 ASSERT_EQ(context.storage->thread_table().name()[1], name1); in TEST_F()
147 ASSERT_EQ(context.storage->thread_table().row_count(), 2u); in TEST_F()
148 ASSERT_EQ(context.storage->thread_table().name()[1], name2); in TEST_F()
153 ASSERT_EQ(context.storage->thread_table().row_count(), 2u); in TEST_F()
154 ASSERT_EQ(context.storage->thread_table().name()[1], name2); in TEST_F()
Devent_tracker.cc108 const auto& thread_table = context_->storage->thread_table(); in FlushPendingEvents() local
113 UniquePid upid = thread_table.upid()[utid].value_or(0); in FlushPendingEvents()
124 UniquePid upid = thread_table.upid()[utid].value_or(0); in FlushPendingEvents()
/external/perfetto/src/trace_processor/importers/ftrace/
Dsched_event_tracker_unittest.cc70 ASSERT_EQ(context.storage->thread_table().start_ts()[1], base::nullopt); in TEST_F()
73 context.storage->GetString(context.storage->thread_table().name()[1]); in TEST_F()
105 ASSERT_EQ(context.storage->thread_table().start_ts()[1], base::nullopt); in TEST_F()
132 ASSERT_EQ(context.storage->thread_table().tid()[1], 4u); in TEST_F()
133 ASSERT_EQ(context.storage->thread_table().upid()[1].value(), 1u); in TEST_F()
Dbinder_tracker.cc117 const auto& thread_table = context_->storage->thread_table(); in Transaction() local
120 StringId dest_thread_name = thread_table.name()[utid]; in Transaction()
151 const auto& thread_table = context_->storage->thread_table(); in TransactionReceived() local
152 StringId thread_name = thread_table.name()[utid]; in TransactionReceived()
Dsched_event_tracker.cc175 StringId prev_comm_id = context_->storage->thread_table().name()[prev_utid]; in PushSchedSwitchCompact()
Dftrace_parser.cc1376 UniquePid upid = context_->storage->thread_table().upid()[utid].value_or(0); in ParseGpuMemTotal()
/external/perfetto/src/trace_processor/
Dexport_json.cc678 const auto& thread_table = storage_->thread_table(); in MapUniquePidsAndTids() local
679 for (UniqueTid utid = 0; utid < thread_table.row_count(); utid++) { in MapUniquePidsAndTids()
681 base::Optional<UniquePid> upid = thread_table.upid()[utid]; in MapUniquePidsAndTids()
688 uint32_t exported_tid = thread_table.tid()[utid]; in MapUniquePidsAndTids()
704 const auto& thread_table = storage_->thread_table(); in ExportThreadNames() local
705 for (UniqueTid utid = 0; utid < thread_table.row_count(); ++utid) { in ExportThreadNames()
706 auto opt_name = thread_table.name()[utid]; in ExportThreadNames()
1802 const auto& thread_table = storage_->thread_table(); in IsValidPidOrTid() local
1803 for (UniqueTid utid = 0; utid < thread_table.row_count(); utid++) { in IsValidPidOrTid()
1804 if (thread_table.tid()[utid] == pid_or_tid) in IsValidPidOrTid()
Dtrace_processor_impl.cc767 storage->thread_table()))); in TraceProcessorImpl()
775 RegisterDbTable(storage->thread_table()); in TraceProcessorImpl()
Dexport_json_unittest.cc848 ASSERT_EQ(upid1, *context_.storage->thread_table().upid()[utid1a]); in TEST_F()
849 ASSERT_EQ(upid1, *context_.storage->thread_table().upid()[utid1b]); in TEST_F()
850 ASSERT_EQ(upid1, *context_.storage->thread_table().upid()[utid1c]); in TEST_F()
851 ASSERT_EQ(upid2, *context_.storage->thread_table().upid()[utid2a]); in TEST_F()
852 ASSERT_EQ(upid2, *context_.storage->thread_table().upid()[utid2b]); in TEST_F()
/external/perfetto/src/trace_processor/importers/fuchsia/
Dfuchsia_trace_tokenizer.cc269 current_provider_->thread_table[index] = tinfo; in ParseRecord()
305 current_provider_->thread_table[thread_ref]); in ParseRecord()
486 outgoing_thread = current_provider_->thread_table[outgoing_thread_ref]; in ParseRecord()
496 incoming_thread = current_provider_->thread_table[incoming_thread_ref]; in ParseRecord()
Dfuchsia_trace_tokenizer.h46 std::unordered_map<uint64_t, fuchsia_trace_utils::ThreadInfo> thread_table; member
/external/perfetto/src/trace_processor/sqlite/
Dsqlite_raw_table.cc590 uint32_t tid = storage_->thread_table().tid()[utid]; in SerializePrefix()
593 auto opt_upid = storage_->thread_table().upid()[utid]; in SerializePrefix()
597 auto name = storage_->GetString(storage_->thread_table().name()[utid]); in SerializePrefix()
/external/perfetto/src/trace_processor/importers/proto/
Dtrack_event_parser.cc356 upid_ = storage_->thread_table().upid()[*utid_]; in ParseTrackAssociation()
368 if (storage_->thread_table().upid()[utid_candidate] == upid_) in ParseTrackAssociation()
419 upid_ = storage_->thread_table().upid()[*utid_]; in ParseTrackAssociation()
Dgpu_event_parser.cc754 UniquePid upid = context_->storage->thread_table().upid()[utid].value_or(0); in ParseGpuMemTotalEvent()
Dproto_trace_parser_unittest.cc422 ASSERT_EQ(storage_->thread_table().tid()[raw.utid()[raw.row_count() - 1]], in TEST_F()
/external/perfetto/src/trace_processor/storage/
Dtrace_storage.h304 const tables::ThreadTable& thread_table() const { return thread_table_; } in thread_table() function