| /xnu-11215/tests/vm/ |
| H A D | perf_madvise.c | 88 struct timespec start_time, end_time; in madvise_free_test() local 89 ret = clock_gettime(kThreadCPUTimeClock, &start_time); in madvise_free_test() 97 time_elapsed_us += timespec_difference_us(&end_time, &start_time); in madvise_free_test() 99 ret = clock_gettime(kThreadCPUTimeClock, &start_time); in madvise_free_test() 106 time_fault_us += timespec_difference_us(&end_time, &start_time); in madvise_free_test()
|
| H A D | fault_throughput.c | 172 static uint64_t finish_iteration(test_globals_t *globals, uint64_t start_time); 346 struct timespec start_time, end_time; in grab_and_fault_pages() local 355 ret = clock_gettime(kThreadCPUTimeClock, &start_time); in grab_and_fault_pages() 362 nanoseconds_faulting_on_cpu += (unsigned long) timespec_difference_us(&end_time, &start_time); in grab_and_fault_pages() 371 uint64_t start_time; in start_iteration() local 383 start_time = current_timestamp_ns(); in start_iteration() 389 return start_time; in start_iteration() 393 finish_iteration(test_globals_t* globals, uint64_t start_time) in finish_iteration() argument 406 return end_time - start_time; in finish_iteration()
|
| H A D | perf_compressor.c | 223 uint64_t start_time, end_time; in decompress_buffer() local 224 start_time = current_timestamp_ns(); in decompress_buffer() 230 return end_time - start_time; in decompress_buffer()
|
| H A D | memorystatus_jetsam_zprint_snapshot.c | 177 const uint64_t start_time = mach_absolute_time(); in run_jzs_test() local 230 if ((mach_absolute_time() - start_time) > test_timeout_in_nanoseconds) { in run_jzs_test()
|
| /xnu-11215/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_poll.c | 302 struct ifnet_stat_increment_param *s, struct timespec *start_time, in netif_rxpoll_poll_driver() argument 320 nanouptime(start_time); in netif_rxpoll_poll_driver() 324 net_timersub(&now, start_time, poll_duration); in netif_rxpoll_poll_driver() 351 struct timespec start_time, poll_intvl, poll_duration; in netif_rxpoll_compat_thread_cont() local 356 net_timerclear(&start_time); in netif_rxpoll_compat_thread_cont() 394 netif_rxpoll_poll_driver(ifp, m_lim, &s, &start_time, in netif_rxpoll_compat_thread_cont() 407 net_timerclear(&start_time); in netif_rxpoll_compat_thread_cont()
|
| /xnu-11215/tools/tests/perf_index/ |
| H A D | test_controller.py | 35 start_time = time.time() 47 return end_time - start_time
|
| /xnu-11215/osfmk/i386/ |
| H A D | locks_i386.c | 1897 uint64_t spin_start, start_time, cur_time, avg_hold_time, bias, delta; in lck_mtx_lock_spinwait_x86() local 1909 start_time = mach_absolute_time(); in lck_mtx_lock_spinwait_x86() 1920 window_deadline = start_time + low_MutexSpin; in lck_mtx_lock_spinwait_x86() 1931 high_deadline = start_time + high_MutexSpin; in lck_mtx_lock_spinwait_x86() 1933 high_deadline = start_time + low_MutexSpin * real_ncpus; in lck_mtx_lock_spinwait_x86() 2078 delta = cur_time - start_time; in lck_mtx_lock_spinwait_x86() 2079 sliding_deadline = start_time + (delta * (real_ncpus - 1)) / total_hold_time_samples; in lck_mtx_lock_spinwait_x86()
|
| H A D | mp.c | 1655 uint64_t start_time = cpu_datap(my_cpu)->debugger_entry_time = mach_absolute_time(); in mp_kdp_enter() local 1662 if (mach_absolute_time() - start_time > 500000000ll) { in mp_kdp_enter()
|
| /xnu-11215/osfmk/kern/ |
| H A D | exclaves_memory.c | 161 uint64_t start_time = mach_continuous_approximate_time(); in exclaves_memory_alloc() local 201 uint64_t elapsed_time = mach_continuous_approximate_time() - start_time; in exclaves_memory_alloc()
|
| H A D | waitq.c | 905 uint64_t start_time = ml_get_sched_hygiene_timebase(); in waitq_select_queue_flush() local 934 (end_time - start_time) > waitq_flush_excess_time_mt) { in waitq_select_queue_flush() 966 KDBG(MACHDBG_CODE(DBG_MACH_SCHED, MACH_INT_MASKED_RESET), flushed_threads, end_time - start_time); in waitq_select_queue_flush()
|
| /xnu-11215/osfmk/tests/ |
| H A D | pmap_tests.c | 529 uint64_t start_time = mach_absolute_time(); in test_pmap_page_protect_overhead() local 533 duration += (mach_absolute_time() - start_time); in test_pmap_page_protect_overhead()
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | ktrace.py | 809 start_time = time.time() 839 elapsed = time.time() - start_time
|
| /xnu-11215/tools/tests/zero-to-n/ |
| H A D | zero-to-n.c | 1346 cpu_time_t start_time; in main() local 1349 record_cpu_time(&start_time); in main() 1474 uint32_t cpu_idle_time = (finish_time.idle - start_time.idle) * 10; in main()
|
| /xnu-11215/tests/ |
| H A D | stackshot_tests.m | 214 uint64_t start_time = mach_absolute_time(); 247 dt_stat_mach_time_add(scenario->timer, end_time - start_time); 491 uint64_t start_time; 510 start_time = clock_gettime_nsec_np(CLOCK_MONOTONIC); 511 while (clock_gettime_nsec_np(CLOCK_MONOTONIC) - start_time < max_diff_time) { 929 uint64_t start_time = mach_absolute_time(); 937 …ceived signal from pre-exec child, unique_pid is %llu, timestamp is %llu", unique_pid, start_time); 950 .since_timestamp = start_time
|
| /xnu-11215/osfmk/arm/ |
| H A D | machine_routines.h | 851 uint64_t start_time; member
|
| H A D | machine_routines_common.c | 524 on_core.start_time = timestamp; in machine_thread_going_on_core()
|
| /xnu-11215/bsd/vfs/ |
| H A D | vfs_subr.c | 12992 uint64_t elapsed_sec, start_time; in wait_for_lease_break() local 13020 start_time = fl->fl_release_start; in wait_for_lease_break() 13022 start_time = fl->fl_downgrade_start; in wait_for_lease_break() 13025 start_time = fl->fl_downgrade_start; in wait_for_lease_break() 13027 assert(start_time > 0); in wait_for_lease_break() 13029 elapsed_sec = absolutetime_elapsed_in_secs(start_time); in wait_for_lease_break()
|
| /xnu-11215/bsd/net/ |
| H A D | dlil.c | 4493 struct timespec start_time; in ifnet_poll_thread_cont() local 4498 net_timerclear(&start_time); in ifnet_poll_thread_cont()
|