Searched refs:ThreadTicks (Results 1 – 16 of 16) sorted by relevance
/external/libchrome/base/task/sequence_manager/ |
D | sequence_manager_perftest.cc | 65 if (ThreadTicks::IsSupported()) in SetUp() 66 ThreadTicks::WaitUntilInitialized(); in SetUp() 177 ThreadTicks start = ThreadTicks::Now(); in Benchmark() 178 ThreadTicks now; in Benchmark() 184 now = ThreadTicks::Now(); in Benchmark() 211 if (!ThreadTicks::IsSupported()) in TEST_F() 222 if (!ThreadTicks::IsSupported()) in TEST_F() 233 if (!ThreadTicks::IsSupported()) in TEST_F() 244 if (!ThreadTicks::IsSupported()) in TEST_F() 255 if (!ThreadTicks::IsSupported()) in TEST_F() [all …]
|
D | sequence_manager.cc | 15 : records_cpu_time_for_each_task(base::ThreadTicks::IsSupported() && in MetricRecordingSettings() 21 if (!base::ThreadTicks::IsSupported()) in MetricRecordingSettings()
|
D | task_queue.h | 177 base::ThreadTicks start_thread_time() const { in start_thread_time() 181 base::ThreadTicks end_thread_time() const { in end_thread_time() 200 base::ThreadTicks start_thread_time_; 201 base::ThreadTicks end_thread_time_;
|
D | task_queue.cc | 47 start_thread_time_ = base::ThreadTicks::Now(); in RecordTaskStart() 54 end_thread_time_ = base::ThreadTicks::Now(); in RecordTaskEnd()
|
D | sequence_manager_impl.cc | 684 return ThreadTicks::IsSupported() && in ShouldRecordCPUTimeForTask()
|
/external/v8/src/base/platform/ |
D | time.cc | 772 bool ThreadTicks::IsSupported() { in IsSupported() 784 ThreadTicks ThreadTicks::Now() { in Now() 786 return ThreadTicks(ComputeThreadTicks()); in Now() 789 return ThreadTicks(ClockNow(CLOCK_THREAD_CPUTIME_ID)); in Now() 791 return ThreadTicks(gethrvtime() / Time::kNanosecondsPerMicrosecond); in Now() 793 return ThreadTicks::GetForThread(::GetCurrentThread()); in Now() 801 ThreadTicks ThreadTicks::GetForThread(const HANDLE& thread_handle) { in GetForThread() 811 return ThreadTicks(); in GetForThread() 815 return ThreadTicks( in GetForThread() 820 bool ThreadTicks::IsSupportedWin() { in IsSupportedWin() [all …]
|
D | time.h | 425 class V8_BASE_EXPORT ThreadTicks final 426 : public time_internal::TimeBase<ThreadTicks> { 428 constexpr ThreadTicks() : TimeBase(0) {} in ThreadTicks() function 448 static ThreadTicks Now(); 454 static ThreadTicks GetForThread(const HANDLE& thread_handle); 463 explicit constexpr ThreadTicks(int64_t ticks) : TimeBase(ticks) {} in ThreadTicks() function
|
/external/libchrome/base/time/ |
D | time_unittest.cc | 938 static ThreadTicks Now() { in Now() 943 static ThreadTicks now_ticks_; 947 ThreadTicks ThreadTicksOverride::now_ticks_; 955 TEST(ThreadTicks, MAYBE_NowOverride) { in TEST() argument 956 ThreadTicksOverride::now_ticks_ = ThreadTicks::Min(); in TEST() 959 ThreadTicks initial_thread_ticks = ThreadTicks::Now(); in TEST() 960 EXPECT_LE(initial_thread_ticks, ThreadTicks::Now()); in TEST() 961 EXPECT_GT(ThreadTicks::Max(), ThreadTicks::Now()); in TEST() 963 EXPECT_GT(ThreadTicks::Max(), subtle::ThreadTicksNowIgnoringOverride()); in TEST() 971 EXPECT_EQ(ThreadTicks::Min() + TimeDelta::FromSeconds(1), in TEST() [all …]
|
D | time_now_posix.cc | 111 ThreadTicks ThreadTicksNowIgnoringOverride() { in ThreadTicksNowIgnoringOverride() 114 return ThreadTicks() + in ThreadTicksNowIgnoringOverride() 118 return ThreadTicks(); in ThreadTicksNowIgnoringOverride()
|
D | time.h | 922 class BASE_EXPORT ThreadTicks : public time_internal::TimeBase<ThreadTicks> { 924 ThreadTicks() : TimeBase(0) { in ThreadTicks() function 955 static ThreadTicks Now(); 961 static ThreadTicks GetForThread(const PlatformThreadHandle& thread_handle); 971 static constexpr ThreadTicks FromInternalValue(int64_t us) { in FromInternalValue() 972 return ThreadTicks(us); in FromInternalValue() 976 friend class time_internal::TimeBase<ThreadTicks>; 980 constexpr explicit ThreadTicks(int64_t us) : TimeBase(us) {} in ThreadTicks() function 997 BASE_EXPORT std::ostream& operator<<(std::ostream& os, ThreadTicks time_ticks);
|
D | time_override.h | 15 using ThreadTicksNowFunction = decltype(&ThreadTicks::Now); 52 BASE_EXPORT ThreadTicks ThreadTicksNowIgnoringOverride();
|
D | time.cc | 395 ThreadTicks ThreadTicks::Now() { in Now() 399 std::ostream& operator<<(std::ostream& os, ThreadTicks thread_ticks) { in operator <<() 400 const TimeDelta as_time_delta = thread_ticks - ThreadTicks(); in operator <<()
|
/external/libchrome/base/task/sequence_manager/test/ |
D | fake_task.h | 24 ThreadTicks thread_start, 25 ThreadTicks thread_end);
|
D | fake_task.cc | 26 ThreadTicks thread_start, in FakeTaskTiming() 27 ThreadTicks thread_end) in FakeTaskTiming()
|
/external/v8/src/libplatform/tracing/ |
D | tracing-controller.cc | 70 return base::ThreadTicks::Now().ToInternalValue(); in CurrentCpuTimestampMicroseconds()
|
/external/libchrome/base/trace_event/ |
D | trace_event.h | 777 static inline void SetTraceValue(const base::ThreadTicks arg, in SetTraceValue()
|