Home
last modified time | relevance | path

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

/external/v8/src/base/platform/
Dtime.cc640 bool ThreadTicks::IsSupported() { in IsSupported()
652 ThreadTicks ThreadTicks::Now() { in Now()
654 return ThreadTicks(ComputeThreadTicks()); in Now()
657 return ThreadTicks(ClockNow(CLOCK_THREAD_CPUTIME_ID)); in Now()
659 return ThreadTicks(gethrvtime() / Time::kNanosecondsPerMicrosecond); in Now()
661 return ThreadTicks::GetForThread(::GetCurrentThread()); in Now()
664 return ThreadTicks(); in Now()
670 ThreadTicks ThreadTicks::GetForThread(const HANDLE& thread_handle) { in GetForThread()
680 return ThreadTicks(); in GetForThread()
684 return ThreadTicks( in GetForThread()
[all …]
Dtime.h381 class V8_BASE_EXPORT ThreadTicks final
382 : public time_internal::TimeBase<ThreadTicks> {
384 ThreadTicks() : TimeBase(0) {} in ThreadTicks() function
404 static ThreadTicks Now();
410 static ThreadTicks GetForThread(const HANDLE& thread_handle);
419 explicit ThreadTicks(int64_t ticks) : TimeBase(ticks) {} in ThreadTicks() function
/external/libchrome/base/trace_event/
Dtrace_event_impl.h94 ThreadTicks thread_timestamp,
110 void UpdateDuration(const TimeTicks& now, const ThreadTicks& thread_now);
125 ThreadTicks thread_timestamp() const { return thread_timestamp_; } in thread_timestamp()
153 ThreadTicks thread_timestamp_;
Dtrace_log.cc101 ThreadTicks ThreadNow() { in ThreadNow()
102 return ThreadTicks::IsSupported() ? ThreadTicks::Now() : ThreadTicks(); in ThreadNow()
121 ThreadTicks(), in InitializeMetadataEvent()
1212 ThreadTicks thread_now = ThreadNow(); in AddTraceEventWithThreadIdAndTimestamp()
1343 ThreadTicks thread_now = ThreadNow(); in AddMetadataEvent()
1432 ThreadTicks thread_now = ThreadNow(); in UpdateTraceEventDuration()
Dtrace_event_impl.cc88 ThreadTicks thread_timestamp, in Initialize()
189 const ThreadTicks& thread_now) { in UpdateDuration()
195 if (thread_timestamp_ != ThreadTicks()) in UpdateDuration()
Devent_name_filter_unittest.cc17 event.Initialize(0, TimeTicks(), ThreadTicks(), 'b', nullptr, name, "", 0, 0, in MakeTraceEvent()
Dtrace_event.h667 static inline void SetTraceValue(const base::ThreadTicks arg, in SetTraceValue()
/external/libchrome/base/time/
Dtime.h794 class BASE_EXPORT ThreadTicks : public time_internal::TimeBase<ThreadTicks> {
796 ThreadTicks() : TimeBase(0) { in ThreadTicks() function
826 static ThreadTicks Now();
832 static ThreadTicks GetForThread(const PlatformThreadHandle& thread_handle);
836 friend class time_internal::TimeBase<ThreadTicks>;
840 explicit ThreadTicks(int64_t us) : TimeBase(us) {} in ThreadTicks() function
857 BASE_EXPORT std::ostream& operator<<(std::ostream& os, ThreadTicks time_ticks);
Dtime_posix.cc386 ThreadTicks ThreadTicks::Now() { in Now()
389 return ThreadTicks(ClockNow(CLOCK_THREAD_CPUTIME_ID)); in Now()
392 return ThreadTicks(); in Now()
Dtime_unittest.cc709 TEST(ThreadTicks, MAYBE_ThreadNow) { in TEST() argument
710 if (ThreadTicks::IsSupported()) { in TEST()
711 ThreadTicks::WaitUntilInitialized(); in TEST()
713 ThreadTicks begin_thread = ThreadTicks::Now(); in TEST()
715 EXPECT_GT(begin_thread, ThreadTicks()); in TEST()
718 ThreadTicks end_thread = ThreadTicks::Now(); in TEST()
Dtime.cc330 std::ostream& operator<<(std::ostream& os, ThreadTicks thread_ticks) { in operator <<()
331 const TimeDelta as_time_delta = thread_ticks - ThreadTicks(); in operator <<()
/external/v8/src/libplatform/tracing/
Dtrace-object.cc51 tts_ = base::ThreadTicks::Now().ToInternalValue(); in Initialize()
108 cpu_duration_ = base::ThreadTicks::Now().ToInternalValue() - tts_; in UpdateDuration()