/external/v8/src/base/platform/ |
D | time.h | 33 class TimeDelta FINAL { 35 TimeDelta() : delta_(0) {} in TimeDelta() function 38 static TimeDelta FromDays(int days); 39 static TimeDelta FromHours(int hours); 40 static TimeDelta FromMinutes(int minutes); 41 static TimeDelta FromSeconds(int64_t seconds); 42 static TimeDelta FromMilliseconds(int64_t milliseconds); 43 static TimeDelta FromMicroseconds(int64_t microseconds) { in FromMicroseconds() 44 return TimeDelta(microseconds); in FromMicroseconds() 46 static TimeDelta FromNanoseconds(int64_t nanoseconds); [all …]
|
D | time-unittest.cc | 24 TEST(TimeDelta, FromAndIn) { in TEST() argument 25 EXPECT_EQ(TimeDelta::FromDays(2), TimeDelta::FromHours(48)); in TEST() 26 EXPECT_EQ(TimeDelta::FromHours(3), TimeDelta::FromMinutes(180)); in TEST() 27 EXPECT_EQ(TimeDelta::FromMinutes(2), TimeDelta::FromSeconds(120)); in TEST() 28 EXPECT_EQ(TimeDelta::FromSeconds(2), TimeDelta::FromMilliseconds(2000)); in TEST() 29 EXPECT_EQ(TimeDelta::FromMilliseconds(2), TimeDelta::FromMicroseconds(2000)); in TEST() 30 EXPECT_EQ(static_cast<int>(13), TimeDelta::FromDays(13).InDays()); in TEST() 31 EXPECT_EQ(static_cast<int>(13), TimeDelta::FromHours(13).InHours()); in TEST() 32 EXPECT_EQ(static_cast<int>(13), TimeDelta::FromMinutes(13).InMinutes()); in TEST() 33 EXPECT_EQ(static_cast<int64_t>(13), TimeDelta::FromSeconds(13).InSeconds()); in TEST() [all …]
|
D | time.cc | 29 TimeDelta TimeDelta::FromDays(int days) { in FromDays() 30 return TimeDelta(days * Time::kMicrosecondsPerDay); in FromDays() 34 TimeDelta TimeDelta::FromHours(int hours) { in FromHours() 35 return TimeDelta(hours * Time::kMicrosecondsPerHour); in FromHours() 39 TimeDelta TimeDelta::FromMinutes(int minutes) { in FromMinutes() 40 return TimeDelta(minutes * Time::kMicrosecondsPerMinute); in FromMinutes() 44 TimeDelta TimeDelta::FromSeconds(int64_t seconds) { in FromSeconds() 45 return TimeDelta(seconds * Time::kMicrosecondsPerSecond); in FromSeconds() 49 TimeDelta TimeDelta::FromMilliseconds(int64_t milliseconds) { in FromMilliseconds() 50 return TimeDelta(milliseconds * Time::kMicrosecondsPerMillisecond); in FromMilliseconds() [all …]
|
D | semaphore-unittest.cc | 81 ASSERT_FALSE(semaphore_->WaitFor(TimeDelta::FromMicroseconds(1))); in Run() 123 EXPECT_FALSE(semaphore.WaitFor(TimeDelta::FromMicroseconds(1))); in TEST() 131 ASSERT_FALSE(semaphore.WaitFor(TimeDelta::FromMicroseconds(0))); in TEST() 132 ASSERT_FALSE(semaphore.WaitFor(TimeDelta::FromMicroseconds(100))); in TEST() 133 ASSERT_FALSE(semaphore.WaitFor(TimeDelta::FromMicroseconds(1000))); in TEST() 137 ASSERT_TRUE(semaphore.WaitFor(TimeDelta::FromMicroseconds(0))); in TEST() 139 ASSERT_TRUE(semaphore.WaitFor(TimeDelta::FromMicroseconds(100))); in TEST() 141 ASSERT_TRUE(semaphore.WaitFor(TimeDelta::FromMicroseconds(1000))); in TEST()
|
D | elapsed-timer.h | 55 TimeDelta Restart() { in Restart() 58 TimeDelta elapsed = ticks - start_ticks_; in Restart() 67 TimeDelta Elapsed() const { in Elapsed() 69 TimeDelta elapsed = Now() - start_ticks_; in Elapsed() 77 bool HasExpired(TimeDelta time_delta) const { in HasExpired()
|
D | semaphore.h | 23 class TimeDelta; variable 50 bool WaitFor(const TimeDelta& rel_time) WARN_UNUSED_RESULT;
|
D | condition-variable.h | 16 class TimeDelta; variable 59 bool WaitFor(Mutex* mutex, const TimeDelta& rel_time) WARN_UNUSED_RESULT;
|
D | semaphore.cc | 54 bool Semaphore::WaitFor(const TimeDelta& rel_time) { in WaitFor() 109 bool Semaphore::WaitFor(const TimeDelta& rel_time) { 178 bool Semaphore::WaitFor(const TimeDelta& rel_time) {
|
D | condition-variable.cc | 71 bool ConditionVariable::WaitFor(Mutex* mutex, const TimeDelta& rel_time) { in WaitFor() 285 bool ConditionVariable::WaitFor(Mutex* mutex, const TimeDelta& rel_time) {
|
D | condition-variable-unittest.cc | 22 EXPECT_FALSE(cv.WaitFor(&mutex, TimeDelta::FromMicroseconds(n))); in TEST() 25 EXPECT_FALSE(cv.WaitFor(&mutex, TimeDelta::FromMicroseconds(n))); in TEST()
|
/external/v8/tools/ |
D | parser-shell.cc | 60 std::pair<v8::base::TimeDelta, v8::base::TimeDelta> RunBaselineParser( in RunBaselineParser() 85 v8::base::TimeDelta parse_time1, parse_time2; in RunBaselineParser() 102 return std::make_pair(v8::base::TimeDelta(), v8::base::TimeDelta()); in RunBaselineParser() 118 return std::make_pair(v8::base::TimeDelta(), v8::base::TimeDelta()); in RunBaselineParser() 163 std::pair<v8::base::TimeDelta, v8::base::TimeDelta> time = in main()
|
D | lexer-shell.cc | 131 v8::base::TimeDelta RunBaselineScanner(const char* fname, Isolate* isolate, in RunBaselineScanner() 160 v8::base::TimeDelta ProcessFile( in ProcessFile() 171 v8::base::TimeDelta baseline_time; in ProcessFile() 222 v8::base::TimeDelta time; in main()
|
/external/v8/src/ |
D | cpu-profiler.h | 129 base::TimeDelta period); 168 const base::TimeDelta period_; 203 void set_sampling_interval(base::TimeDelta value); 259 base::TimeDelta sampling_interval_;
|
D | optimizing-compiler-thread.h | 131 base::TimeDelta time_spent_compiling_; 132 base::TimeDelta time_spent_total_;
|
D | compiler.h | 624 base::TimeDelta time_taken_to_create_graph_; 625 base::TimeDelta time_taken_to_optimize_; 626 base::TimeDelta time_taken_to_codegen_; 637 Timer(OptimizedCompileJob* job, base::TimeDelta* location) in Timer() 649 base::TimeDelta* location_;
|
D | cpu-profiler.cc | 26 base::TimeDelta period) in ProfilerEventsProcessor() 372 sampling_interval_(base::TimeDelta::FromMicroseconds( in CpuProfiler() 386 sampling_interval_(base::TimeDelta::FromMicroseconds( in CpuProfiler() 401 void CpuProfiler::set_sampling_interval(base::TimeDelta value) { in set_sampling_interval()
|
D | hydrogen.h | 2759 void SaveTiming(const char* name, base::TimeDelta time, unsigned size); 2761 void IncrementFullCodeGen(base::TimeDelta full_code_gen) { in IncrementFullCodeGen() 2765 void IncrementCreateGraph(base::TimeDelta delta) { create_graph_ += delta; } in IncrementCreateGraph() 2767 void IncrementOptimizeGraph(base::TimeDelta delta) { in IncrementOptimizeGraph() 2771 void IncrementGenerateCode(base::TimeDelta delta) { generate_code_ += delta; } in IncrementGenerateCode() 2773 void IncrementSubtotals(base::TimeDelta create_graph, in IncrementSubtotals() 2774 base::TimeDelta optimize_graph, in IncrementSubtotals() 2775 base::TimeDelta generate_code) { in IncrementSubtotals() 2782 List<base::TimeDelta> times_; 2785 base::TimeDelta create_graph_; [all …]
|
D | d8.cc | 342 base::TimeDelta delta = in PerformanceNow()
|
D | lithium-allocator.cc | 2180 isolate()->GetHStatistics()->SaveTiming(name(), base::TimeDelta(), size); in ~LAllocatorPhase()
|
D | hydrogen.cc | 12457 base::TimeDelta sum; in Print() 12476 base::TimeDelta total = create_graph_ + optimize_graph_ + generate_code_; in Print() 12503 void HStatistics::SaveTiming(const char* name, base::TimeDelta time, in SaveTiming()
|
/external/v8/src/heap/ |
D | sweeper-thread.cc | 66 bool value = end_sweeping_semaphore_.WaitFor(base::TimeDelta::FromSeconds(0)); in SweepingCompleted()
|
D | mark-compact.cc | 617 base::TimeDelta::FromSeconds(0))) { in IsSweepingCompleted()
|
/external/v8/src/compiler/ |
D | pipeline.cc | 53 base::TimeDelta delta = timer_.Elapsed(); in ~PhaseStats()
|
D | register-allocator.cc | 2224 isolate()->GetTStatistics()->SaveTiming(name(), base::TimeDelta(), size); in ~RegisterAllocatorPhase()
|
/external/v8/test/cctest/ |
D | test-cpu-profiler.cc | 57 &generator, NULL, v8::base::TimeDelta::FromMicroseconds(100))); in TEST() 145 &generator, NULL, v8::base::TimeDelta::FromMicroseconds(100))); in TEST() 206 &generator, NULL, v8::base::TimeDelta::FromMicroseconds(100))); in TEST() 275 &generator, NULL, v8::base::TimeDelta::FromMicroseconds(100))); in TEST()
|