| /llvm-project/libcxxabi/test/support/ |
| H A D | timer.h | 18 class timer 24 timer() : m_start(Clock::now()) {} in timer() function 26 timer(timer const &) = delete; 27 timer & operator=(timer const &) = delete; 29 ~timer() in ~timer() 43 class timer 46 timer() {} in timer() function 47 timer(timer const &) = delete; 48 timer & operator=(timer const &) = delete; 49 ~timer() {} in ~timer()
|
| /llvm-project/compiler-rt/test/tsan/ |
| H A D | signal_block2.cpp | 56 struct itimerval timer; in main() local 57 timer.it_value.tv_sec = 0; in main() 58 timer.it_value.tv_usec = 50000; in main() 59 timer.it_interval = timer.it_value; in main() 60 if (setitimer(ITIMER_REAL, &timer, NULL)) in main() 82 memset(&timer, 0, sizeof(timer)); in main() 83 if (setitimer(ITIMER_REAL, &timer, NULL)) in main()
|
| /llvm-project/mlir/include/mlir/Support/ |
| H A D | Timing.h | 275 TimingScope(const Timer &other) : timer(other) { in TimingScope() 276 if (timer) in TimingScope() 277 timer.start(); in TimingScope() 279 TimingScope(Timer &&other) : timer(std::move(other)) { in TimingScope() 280 if (timer) in TimingScope() 281 timer.start(); in TimingScope() 283 TimingScope(TimingScope &&other) : timer(std::move(other.timer)) {} in TimingScope() 288 timer = std::move(other.timer); 293 explicit operator bool() const { return bool(timer); } 301 timer.stop(); in stop() [all …]
|
| /llvm-project/compiler-rt/test/lsan/TestCases/Darwin/ |
| H A D | dispatch_continuations.mm | 11 dispatch_source_t timer = 13 dispatch_source_set_event_handler(timer, ^{ 15 dispatch_source_set_timer(timer, DISPATCH_TIME_FOREVER, DISPATCH_TIME_FOREVER, 17 dispatch_resume(timer); 19 dispatch_source_cancel(timer); 20 dispatch_release(timer);
|
| /llvm-project/compiler-rt/test/asan/TestCases/Linux/ |
| H A D | uar_signals.cpp | 34 struct itimerval timer; in EnableSigprof() local 35 timer.it_interval.tv_sec = 0; in EnableSigprof() 36 timer.it_interval.tv_usec = 1; in EnableSigprof() 37 timer.it_value = timer.it_interval; in EnableSigprof() 38 if (setitimer(ITIMER_PROF, &timer, 0) != 0) { in EnableSigprof()
|
| /llvm-project/compiler-rt/test/tsan/libdispatch/ |
| H A D | source-serial.c | 14 dispatch_source_t timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, q); in main() local 16 …dispatch_source_set_timer(timer, dispatch_time(DISPATCH_TIME_NOW, 0), interval_ms * NSEC_PER_MSEC,… in main() 19 dispatch_source_set_event_handler(timer, ^{ in main() 25 dispatch_suspend(timer); in main() 28 dispatch_resume(timer); in main()
|
| /llvm-project/compiler-rt/lib/asan/tests/ |
| H A D | asan_mac_test_helpers.mm | 165 dispatch_source_t timer = 167 // Schedule the timer one second from the current time. 171 dispatch_source_set_timer(timer, milestone, DISPATCH_TIME_FOREVER, 0); 173 dispatch_source_set_event_handler(timer, ^{ 176 dispatch_resume(timer); 182 dispatch_source_t timer = 184 // Schedule the timer one second from the current time. 188 dispatch_source_set_timer(timer, milestone, DISPATCH_TIME_FOREVER, 0); 194 dispatch_source_set_event_handler(timer, ^{ 195 dispatch_source_cancel(timer); [all …]
|
| /llvm-project/libc/test/src/math/performance_testing/ |
| H A D | SingleInputSingleOutputPerf.h | 48 Timer timer; in runPerfInRange() 49 timer.start(); in runPerfInRange() 51 timer.stop(); in runPerfInRange() 53 double myAverage = static_cast<double>(timer.nanoseconds()) / n / rounds; in runPerfInRange() 55 log << " Total time : " << timer.nanoseconds() << " ns \n"; in runPerfInRange() 60 timer.start(); in runPerfInRange() 62 timer.stop(); in runPerfInRange() 64 double otherAverage = static_cast<double>(timer.nanoseconds()) / n / rounds; in runPerfInRange() 66 log << " Total time : " << timer.nanoseconds() << " ns \n"; in runPerfInRange() 41 Timer timer; runPerfInRange() local
|
| H A D | BinaryOpSingleOutputPerf.h | 55 Timer timer; in run_perf_in_range() 56 timer.start(); in run_perf_in_range() 58 timer.stop(); in run_perf_in_range() 60 double my_average = static_cast<double>(timer.nanoseconds()) / N / rounds; in run_perf_in_range() 62 log << " Total time : " << timer.nanoseconds() << " ns \n"; in run_perf_in_range() 67 timer.start(); in run_perf_in_range() 69 timer.stop(); in run_perf_in_range() 72 static_cast<double>(timer.nanoseconds()) / N / rounds; in run_perf_in_range() 74 log << " Total time : " << timer.nanoseconds() << " ns \n"; in run_perf_in_range() 53 Timer timer; run_perf_in_range() local
|
| /llvm-project/libcxx/include/ |
| H A D | ctime | 36 time_t time(time_t* timer); 38 char* ctime(const time_t* timer); 39 tm* gmtime(const time_t* timer); 40 tm* localtime(const time_t* timer);
|
| /llvm-project/libc/src/time/ |
| H A D | gmtime.cpp | 16 LLVM_LIBC_FUNCTION(struct tm *, gmtime, (const time_t *timer)) { 18 return time_utils::gmtime_internal(timer, &tm_out);
|
| H A D | gmtime_r.cpp | 17 (const time_t *timer, struct tm *result)) { 18 return time_utils::gmtime_internal(timer, result);
|
| H A D | time_utils.h | 79 LIBC_INLINE struct tm *gmtime_internal(const time_t *timer, struct tm *result) { 80 int64_t seconds = *timer; 142 gmtime_internal(const time_t * timer,struct tm * result) gmtime_internal() argument
|
| H A D | gmtime.h | 18 struct tm *gmtime(const time_t *timer);
|
| H A D | gmtime_r.h | 18 struct tm *gmtime_r(const time_t *timer, struct tm *result);
|
| /llvm-project/clang/test/Analysis/ |
| H A D | qt_malloc.cpp | 23 void singleShot(QTimer *timer) { in singleShot() argument 24 timer->singleShotImpl(0, (Qt::TimerType)0, nullptr, in singleShot()
|
| /llvm-project/openmp/runtime/src/ |
| H A D | kmp_stats.cpp | 277 void partitionedTimers::init(explicitTimer timer) { in init() argument 279 timer_stack.push_back(timer); in init() 287 void partitionedTimers::push(explicitTimer timer) { in push() argument 295 timer_stack.push_back(timer); in push() 321 void partitionedTimers::exchange(explicitTimer timer) { in exchange() argument 334 timer_stack.push_back(timer); in exchange() 498 time_t timer; in getTime() local 500 time(&timer); in getTime() 502 struct tm *tm_info = localtime(&timer); in getTime()
|
| H A D | kmp_stats.h | 46 * \brief flags to describe the statistic (timer or counter) 127 * \details A timer collects multiple samples of some count in each thread and 131 * hence the name "timer". (But can be any value, so we use this for "number of 245 // KMP_icv_copy -- start/stop timer for any ICV copying 294 * \details Explicit timers are ones where we need to allocate a timer itself 297 * allocate the timer itself on the stack, and use the destructor to notice 299 * same as that of a timer above. 487 // Where we need explicitly to start and end the timer, this version can be used 529 void init(explicitTimer timer); 530 void exchange(explicitTimer timer); 542 blockPartitionedTimer(partitionedTimers * pt,explicitTimer timer) blockPartitionedTimer() argument [all...] |
| H A D | kmp_stats_timing.h | 61 #error Must have high resolution timer defined
|
| /llvm-project/third-party/benchmark/src/ |
| H A D | benchmark_runner.cc | 127 internal::ThreadTimer timer( in RunInThread() local 133 b->Run(iters, thread_id, &timer, manager, perf_counters_measurement); in RunInThread() 140 results.cpu_time_used += timer.cpu_time_used(); in RunInThread() 141 results.real_time_used += timer.real_time_used(); in RunInThread() 142 results.manual_time_used += timer.manual_time_used(); in RunInThread()
|
| H A D | benchmark_api_internal.cc | 93 IterationCount iters, int thread_id, internal::ThreadTimer* timer, in Run() argument 96 State st(name_.function_name, iters, args_, thread_id, threads_, timer, in Run()
|
| H A D | benchmark_api_internal.h | 45 State Run(IterationCount iters, int thread_id, internal::ThreadTimer* timer,
|
| /llvm-project/mlir/lib/Support/ |
| H A D | Timing.cpp | 377 std::function<void(TimerImpl *)> addTimer = [&](TimerImpl *timer) { in printAsList() argument 378 mergedTimers[timer->name] += timer->getTimeRecord(); in printAsList() 379 for (auto &children : timer->children) in printAsList()
|
| /llvm-project/clang/test/Analysis/Inputs/ |
| H A D | std-c-library-functions-POSIX.h | 177 struct tm *localtime_r(const time_t *restrict timer, struct tm *restrict result); 180 struct tm *gmtime_r(const time_t *restrict timer, struct tm *restrict result);
|
| /llvm-project/third-party/benchmark/docs/ |
| H A D | perf_counters.md | 19 handled at the boundaries where timer collection is also handled.
|