Lines Matching refs:ThreadData

30     ThreadData::ShutdownSingleThreadedCleanup(true);
33 ThreadData::SetAlternateTimeSource(&TrackedObjectsTest::GetTestTime);
34 ThreadData::now_function_is_time_ = true;
40 ThreadData::ShutdownSingleThreadedCleanup(false);
45 ThreadData::ShutdownSingleThreadedCleanup(false);
55 ThreadData::InitializeThreadContext(kMainThreadName);
58 Births* birth = ThreadData::TallyABirthIfActive(location);
60 if (ThreadData::status() == ThreadData::DEACTIVATED)
100 // Sets time that will be returned by ThreadData::Now().
117 if (!ThreadData::InitializeAndSetTrackingStatus(
118 ThreadData::PROFILING_CHILDREN_ACTIVE)) {
122 EXPECT_FALSE(ThreadData::first()); // No activity even on this thread.
123 ThreadData* data = ThreadData::Get();
124 EXPECT_TRUE(ThreadData::first()); // Now class was constructed.
127 EXPECT_EQ(data, ThreadData::Get());
128 ThreadData::BirthMap birth_map;
129 ThreadData::DeathMap death_map;
130 ThreadData::ParentChildSet parent_child_set;
140 EXPECT_TRUE(ThreadData::InitializeAndSetTrackingStatus(
141 ThreadData::PROFILING_CHILDREN_ACTIVE));
142 EXPECT_FALSE(ThreadData::first()); // No activity even on this thread.
143 data = ThreadData::Get();
144 EXPECT_TRUE(ThreadData::first()); // Now class was constructed.
147 EXPECT_EQ(data, ThreadData::Get());
158 if (!ThreadData::InitializeAndSetTrackingStatus(
159 ThreadData::PROFILING_CHILDREN_ACTIVE)) {
166 Births* first_birth = ThreadData::TallyABirthIfActive(location);
168 ThreadData* data = ThreadData::first();
171 EXPECT_EQ(data, ThreadData::Get());
172 ThreadData::BirthMap birth_map;
173 ThreadData::DeathMap death_map;
174 ThreadData::ParentChildSet parent_child_set;
184 ThreadData::PrepareForStartOfRun(first_birth);
198 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch);
208 if (ThreadData::TrackingParentChildStatus()) {
220 ThreadData::Snapshot(false, &process_data);
236 if (ThreadData::TrackingParentChildStatus()) {
257 if (!ThreadData::InitializeAndSetTrackingStatus(
258 ThreadData::PROFILING_CHILDREN_ACTIVE)) {
300 if (!ThreadData::InitializeAndSetTrackingStatus(ThreadData::DEACTIVATED)) {
309 ThreadData::Snapshot(false, &process_data);
317 if (!ThreadData::InitializeAndSetTrackingStatus(ThreadData::DEACTIVATED)) {
326 ThreadData::Snapshot(false, &process_data);
333 if (!ThreadData::InitializeAndSetTrackingStatus(
334 ThreadData::PROFILING_CHILDREN_ACTIVE)) {
343 ThreadData::Snapshot(false, &process_data);
349 if (!ThreadData::InitializeAndSetTrackingStatus(
350 ThreadData::PROFILING_CHILDREN_ACTIVE)) {
359 ThreadData::Snapshot(false, &process_data);
365 if (!ThreadData::InitializeAndSetTrackingStatus(
366 ThreadData::PROFILING_CHILDREN_ACTIVE)) {
388 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch);
391 ThreadData::Snapshot(false, &process_data);
401 if (!ThreadData::InitializeAndSetTrackingStatus(
402 ThreadData::PROFILING_CHILDREN_ACTIVE)) {
418 EXPECT_TRUE(ThreadData::InitializeAndSetTrackingStatus(
419 ThreadData::DEACTIVATED));
428 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch);
431 ThreadData::Snapshot(false, &process_data);
440 if (!ThreadData::InitializeAndSetTrackingStatus(ThreadData::DEACTIVATED)) {
462 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch);
465 ThreadData::Snapshot(false, &process_data);
472 if (!ThreadData::InitializeAndSetTrackingStatus(
473 ThreadData::PROFILING_CHILDREN_ACTIVE)) {
480 Births* birth = ThreadData::TallyABirthIfActive(location);
491 ThreadData::TallyRunOnWorkerThreadIfTracking(
496 ThreadData::Snapshot(false, &process_data);
504 ThreadData::Snapshot(true, &process_data_pre_reset);
511 ThreadData::Snapshot(true, &process_data_post_reset);
535 if (!ThreadData::InitializeAndSetTrackingStatus(
536 ThreadData::PROFILING_CHILDREN_ACTIVE)) {
558 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch);
568 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task2, stopwatch2);
571 ThreadData::Snapshot(false, &process_data);
577 if (!ThreadData::InitializeAndSetTrackingStatus(
578 ThreadData::PROFILING_CHILDREN_ACTIVE)) {
583 ThreadData::InitializeThreadContext(kMainThreadName);
601 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, stopwatch);
611 ThreadData::Snapshot(false, &process_data);
644 if (!ThreadData::InitializeAndSetTrackingStatus(
645 ThreadData::PROFILING_CHILDREN_ACTIVE)) {
671 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, task_stopwatch);
674 ThreadData::Snapshot(false, &process_data);
680 if (!ThreadData::InitializeAndSetTrackingStatus(
681 ThreadData::PROFILING_CHILDREN_ACTIVE)) {
712 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, task_stopwatch);
715 ThreadData::Snapshot(false, &process_data);
721 if (!ThreadData::InitializeAndSetTrackingStatus(
722 ThreadData::PROFILING_CHILDREN_ACTIVE)) {
755 ThreadData::TallyRunOnNamedThreadIfTracking(
764 ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, task_stopwatch);
767 ThreadData::Snapshot(false, &process_data);