Lines Matching refs:ThreadData
37 const ThreadData::Status kInitialStartupState = ThreadData::PROFILING_ACTIVE;
252 const ThreadData& current) in BirthOnThread()
270 Births::Births(const Location& location, const ThreadData& current) in Births()
287 NowFunction* ThreadData::now_function_ = NULL;
290 bool ThreadData::now_function_is_time_ = false;
296 base::ThreadLocalStorage::StaticSlot ThreadData::tls_index_ = TLS_INITIALIZER;
299 int ThreadData::worker_thread_data_creation_count_ = 0;
302 int ThreadData::cleanup_count_ = 0;
305 int ThreadData::incarnation_counter_ = 0;
308 ThreadData* ThreadData::all_thread_data_list_head_ = NULL;
311 ThreadData* ThreadData::first_retired_worker_ = NULL;
315 ThreadData::list_lock_ = LAZY_INSTANCE_INITIALIZER;
318 base::subtle::Atomic32 ThreadData::status_ = ThreadData::UNINITIALIZED;
320 ThreadData::ThreadData(const std::string& suggested_name) in ThreadData() function in tracked_objects::ThreadData
331 ThreadData::ThreadData(int thread_number) in ThreadData() function in tracked_objects::ThreadData
342 ThreadData::~ThreadData() { in ~ThreadData()
345 void ThreadData::PushToHeadOfList() { in PushToHeadOfList()
350 random_number_ += static_cast<uint32_t>(this - static_cast<ThreadData*>(0)); in PushToHeadOfList()
361 ThreadData* ThreadData::first() { in first()
366 ThreadData* ThreadData::next() const { return next_; } in next()
369 void ThreadData::InitializeThreadContext(const std::string& suggested_name) { in InitializeThreadContext()
371 ThreadData* current_thread_data = in InitializeThreadContext()
372 reinterpret_cast<ThreadData*>(tls_index_.Get()); in InitializeThreadContext()
375 current_thread_data = new ThreadData(suggested_name); in InitializeThreadContext()
380 ThreadData* ThreadData::Get() { in Get()
383 ThreadData* registered = reinterpret_cast<ThreadData*>(tls_index_.Get()); in Get()
388 ThreadData* worker_thread_data = NULL; in Get()
404 worker_thread_data = new ThreadData(worker_thread_number); in Get()
413 void ThreadData::OnThreadTermination(void* thread_data) { in OnThreadTermination()
417 reinterpret_cast<ThreadData*>(thread_data)->OnThreadTerminationCleanup(); in OnThreadTermination()
420 void ThreadData::OnThreadTerminationCleanup() { in OnThreadTerminationCleanup()
433 DCHECK_EQ(this->next_retired_worker_, reinterpret_cast<ThreadData*>(NULL)); in OnThreadTerminationCleanup()
439 void ThreadData::Snapshot(int current_profiling_phase, in Snapshot()
442 ThreadData* my_list = ThreadData::first(); in Snapshot()
451 for (ThreadData* thread_data = my_list; thread_data; in Snapshot()
474 void ThreadData::OnProfilingPhaseCompleted(int profiling_phase) { in OnProfilingPhaseCompleted()
476 ThreadData* my_list = ThreadData::first(); in OnProfilingPhaseCompleted()
483 for (ThreadData* thread_data = my_list; thread_data; in OnProfilingPhaseCompleted()
489 Births* ThreadData::TallyABirth(const Location& location) { in TallyABirth()
506 void ThreadData::TallyADeath(const Births& births, in TallyADeath()
540 Births* ThreadData::TallyABirthIfActive(const Location& location) { in TallyABirthIfActive()
543 ThreadData* current_thread_data = Get(); in TallyABirthIfActive()
550 void ThreadData::TallyRunOnNamedThreadIfTracking( in TallyRunOnNamedThreadIfTracking()
559 ThreadData* current_thread_data = stopwatch.GetThreadData(); in TallyRunOnNamedThreadIfTracking()
578 void ThreadData::TallyRunOnWorkerThreadIfTracking( in TallyRunOnWorkerThreadIfTracking()
597 ThreadData* current_thread_data = stopwatch.GetThreadData(); in TallyRunOnWorkerThreadIfTracking()
610 void ThreadData::TallyRunInAScopedRegionIfTracking( in TallyRunInAScopedRegionIfTracking()
619 ThreadData* current_thread_data = stopwatch.GetThreadData(); in TallyRunInAScopedRegionIfTracking()
627 void ThreadData::SnapshotExecutedTasks( in SnapshotExecutedTasks()
664 void ThreadData::SnapshotMaps(int profiling_phase, in SnapshotMaps()
686 void ThreadData::OnProfilingPhaseCompletedOnThread(int profiling_phase) { in OnProfilingPhaseCompletedOnThread()
697 ThreadData::SetAlternateTimeSource(alternate_time_source); in OptionallyInitializeAlternateTimer()
700 void ThreadData::Initialize() { in Initialize()
724 tls_index_.Initialize(&ThreadData::OnThreadTermination); in Initialize()
743 void ThreadData::InitializeAndSetTrackingStatus(Status status) { in InitializeAndSetTrackingStatus()
755 ThreadData::Status ThreadData::status() { in status()
756 return static_cast<ThreadData::Status>(base::subtle::Acquire_Load(&status_)); in status()
760 bool ThreadData::TrackingStatus() { in TrackingStatus()
765 void ThreadData::SetAlternateTimeSource(NowFunction* now_function) { in SetAlternateTimeSource()
772 void ThreadData::EnableProfilerTiming() { in EnableProfilerTiming()
777 TrackedTime ThreadData::Now() { in Now()
786 void ThreadData::EnsureCleanupWasCalled( in EnsureCleanupWasCalled()
802 void ThreadData::ShutdownSingleThreadedCleanup(bool leak) { in ShutdownSingleThreadedCleanup()
808 ThreadData* thread_data_list; in ShutdownSingleThreadedCleanup()
816 ThreadData* worker = first_retired_worker_; in ShutdownSingleThreadedCleanup()
834 ThreadData* thread_data = thread_data_list; in ShutdownSingleThreadedCleanup()
845 ThreadData* next_thread_data = thread_data_list; in ShutdownSingleThreadedCleanup()
880 start_time_ = ThreadData::Now(); in Start()
882 current_thread_data_ = ThreadData::Get(); in Start()
898 const TrackedTime end_time = ThreadData::Now(); in Stop()
942 ThreadData* TaskStopwatch::GetThreadData() const { in GetThreadData()