Home
last modified time | relevance | path

Searched refs:ThreadTicks (Results 1 – 16 of 16) sorted by relevance

/external/libchrome/base/task/sequence_manager/
Dsequence_manager_perftest.cc65 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 …]
Dsequence_manager.cc15 : records_cpu_time_for_each_task(base::ThreadTicks::IsSupported() && in MetricRecordingSettings()
21 if (!base::ThreadTicks::IsSupported()) in MetricRecordingSettings()
Dtask_queue.h177 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_;
Dtask_queue.cc47 start_thread_time_ = base::ThreadTicks::Now(); in RecordTaskStart()
54 end_thread_time_ = base::ThreadTicks::Now(); in RecordTaskEnd()
Dsequence_manager_impl.cc684 return ThreadTicks::IsSupported() && in ShouldRecordCPUTimeForTask()
/external/v8/src/base/platform/
Dtime.cc772 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 …]
Dtime.h425 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/
Dtime_unittest.cc938 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 …]
Dtime_now_posix.cc111 ThreadTicks ThreadTicksNowIgnoringOverride() { in ThreadTicksNowIgnoringOverride()
114 return ThreadTicks() + in ThreadTicksNowIgnoringOverride()
118 return ThreadTicks(); in ThreadTicksNowIgnoringOverride()
Dtime.h922 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);
Dtime_override.h15 using ThreadTicksNowFunction = decltype(&ThreadTicks::Now);
52 BASE_EXPORT ThreadTicks ThreadTicksNowIgnoringOverride();
Dtime.cc395 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/
Dfake_task.h24 ThreadTicks thread_start,
25 ThreadTicks thread_end);
Dfake_task.cc26 ThreadTicks thread_start, in FakeTaskTiming()
27 ThreadTicks thread_end) in FakeTaskTiming()
/external/v8/src/libplatform/tracing/
Dtracing-controller.cc70 return base::ThreadTicks::Now().ToInternalValue(); in CurrentCpuTimestampMicroseconds()
/external/libchrome/base/trace_event/
Dtrace_event.h777 static inline void SetTraceValue(const base::ThreadTicks arg, in SetTraceValue()