Home
last modified time | relevance | path

Searched refs:NanoTime (Results 1 – 25 of 46) sorted by relevance

12

/aosp12/system/testing/gtest_extras/
H A DTest.cpp46 start_ns_(NanoTime()) {} in Test()
49 end_ns_ = NanoTime(); in Stop()
105 uint64_t start_ns = NanoTime(); in ReadUntilClosed()
111 if (NanoTime() - start_ns > 2 * kNsPerS) { in ReadUntilClosed()
H A DNanoTime.h27 uint64_t NanoTime();
H A DNanoTime.cpp26 uint64_t NanoTime() { in NanoTime() function
H A DIsolate.cpp398 if (NanoTime() > test->start_ns() + deadline_threshold_ns_) { in CheckTestsTimeout()
404 } else if (!test->slow() && NanoTime() > test->start_ns() + slow_threshold_ns_) { in CheckTestsTimeout()
423 uint64_t run_time_ms = (NanoTime() - test->start_ns()) / kNsPerMs; in HandleSignals()
799 uint64_t time_ns = NanoTime(); in Run()
801 time_ns = NanoTime() - time_ns; in Run()
H A DAndroid.bp29 "NanoTime.cpp",
/aosp12/bionic/tests/
H A Dsystem_properties_test2.cpp31 int64_t NanoTime() { in NanoTime() function
50 ss << "debug.test." << getpid() << "." << NanoTime() << "."; in TEST()
137 ss << "debug.test." << getpid() << "." << NanoTime() << "."; in TEST()
161 ss << "debug.test." << getpid() << "." << NanoTime() << "." << "property_empty"; in TEST()
/aosp12/art/test/149-suspend-all-stress/
H A Dsuspend_all.cc34 const uint64_t start_time = NanoTime(); in Java_Main_suspendAndResume()
37 while (NanoTime() - start_time < MsToNs(10 * 1000)) { in Java_Main_suspendAndResume()
/aosp12/art/libartbase/base/
H A Dtime_utils_test.cc53 auto start = NanoTime(); in TEST()
55 EXPECT_GT(NanoTime() - start, MsToNs(1000)); in TEST()
H A Dleb128_test.cc280 uint64_t last_time = NanoTime(); in TEST()
285 uint64_t cur_time = NanoTime(); in TEST()
291 last_time = NanoTime(); in TEST()
296 uint64_t cur_time = NanoTime(); in TEST()
H A Dtime_utils.cc183 uint64_t NanoTime() { in NanoTime() function
218 return NanoTime(); in ProcessCpuNanoTime()
H A Dtime_utils.h67 uint64_t NanoTime();
/aosp12/art/runtime/jit/
H A Dprofile_saver.cc139 const uint64_t end_time = NanoTime() + MsToNs(force_early_first_save in Run()
143 const uint64_t current_time = NanoTime(); in Run()
170 uint64_t sleep_start = NanoTime(); in Run()
182 sleep_time = NanoTime() - sleep_start; in Run()
197 sleep_time = NanoTime() - sleep_start; in Run()
205 total_ms_of_sleep_ += NsToMs(NanoTime() - sleep_start); in Run()
213 uint64_t start_work = NanoTime(); in Run()
232 total_ns_of_work_ += NanoTime() - start_work; in Run()
293 last_time_ns_saver_woke_up_ = NanoTime(); in WakeUpSaver()
757 const uint64_t start_time = NanoTime(); in FetchAndCacheResolvedClassesAndMethods()
[all …]
/aosp12/system/unwinding/libbacktrace/
H A Dbacktrace_test.cpp117 static uint64_t NanoTime() { in NanoTime() function
136 uint64_t start = NanoTime(); in WaitForStop()
140 if ((NanoTime() - start) > NS_PER_SEC) { in WaitForStop()
263 uint64_t start = NanoTime(); in WaitForNonZero()
396 uint64_t start = NanoTime(); in VerifyProcTest()
522 uint64_t start = NanoTime(); in TEST_F()
1153 uint64_t start = NanoTime(); in TEST_F()
1310 uint64_t start = NanoTime(); in TEST_F()
1460 uint64_t start = NanoTime(); in TEST_F()
1740 uint64_t start = NanoTime(); in UnwindThroughSignal()
[all …]
/aosp12/art/runtime/
H A Dbarrier.cc79 uint64_t abs_timeout = NanoTime() + MsToNs(timeout_ms); in Increment()
84 uint64_t now = NanoTime(); in Increment()
H A Dthread_list.cc523 const uint64_t suspend_start_time = NanoTime(); in FlipThreadRoots()
531 suspend_all_historam_.AdjustAndAddValue(NanoTime() - suspend_start_time); in FlipThreadRoots()
534 collector->RegisterPause(NanoTime() - suspend_start_time); in FlipThreadRoots()
616 const uint64_t start_time = NanoTime(); in SuspendAll()
640 const uint64_t end_time = NanoTime(); in SuspendAll()
722 const uint64_t start_time = NanoTime(); in SuspendAllInternal()
734 const uint64_t wait_time = NanoTime() - start_time; in SuspendAllInternal()
880 const uint64_t start_time = NanoTime(); in SuspendThreadByPeer()
960 const uint64_t total_delay = NanoTime() - start_time; in SuspendThreadByPeer()
1004 const uint64_t start_time = NanoTime(); in SuspendThreadByThreadId()
[all …]
H A Dthread_pool.cc240 start_time_ = NanoTime(); in StartWorkers()
268 const uint64_t wait_start = kMeasureWaitTime ? NanoTime() : 0; in GetTask()
271 const uint64_t wait_end = NanoTime(); in GetTask()
/aosp12/art/runtime/gc/collector/
H A Dgarbage_collector.cc159 uint64_t start_time = NanoTime(); in Run()
180 uint64_t end_time = NanoTime(); in Run()
266 : start_time_(NanoTime()), collector_(collector), with_reporting_(with_reporting) { in ScopedPause()
278 collector_->RegisterPause(NanoTime() - start_time_); in ~ScopedPause()
/aosp12/art/runtime/gc/
H A Dtask_processor_test.cc33 : HeapTask(NanoTime() + MsToNs(10)), task_processor_(task_processor), counter_(counter), in RecursiveTask()
120 const uint64_t current_time = NanoTime(); in TEST_F()
H A Dheap.cc955 wait_start = NanoTime(); in IncrementDisableThreadFlip()
1000 uint64_t wait_start = NanoTime(); in ThreadFlipBegin()
1501 uint64_t start_time = NanoTime(); in Trim()
1560 const uint64_t start_ns = NanoTime(); in TrimSpaces()
1591 uint64_t gc_heap_end_ns = NanoTime(); in TrimSpaces()
1904 const uint64_t current_time = NanoTime(); in AllocateInternalWithGc()
2090 uint64_t start_time = NanoTime(); in PerformHomogeneousSpaceCompact()
2108 uint64_t duration = NanoTime() - start_time; in PerformHomogeneousSpaceCompact()
2791 uint64_t now = NanoTime(); in UpdateGcCountRateHistograms()
3459 uint64_t wait_start = NanoTime(); in WaitForGcToCompleteLocked()
[all …]
H A Dtask_processor.cc59 const uint64_t current_time = NanoTime(); in GetTask()
/aosp12/art/compiler/jit/
H A Djit_logger.cc240 header.time_stamp_ = art::NanoTime(); // CLOCK_MONOTONIC clock is required. in WriteJitDumpHeader()
277 jit_code.time_stamp_ = art::NanoTime(); // CLOCK_MONOTONIC clock is required. in WriteJitDumpLog()
/aosp12/art/tools/dexanalyze/
H A Ddexanalyze_strings.cc503 uint64_t start = NanoTime(); in Benchmark()
513 timings->time_equal_comparisons_ += NanoTime() - start; in Benchmark()
515 start = NanoTime(); in Benchmark()
526 timings->time_non_equal_comparisons_ += NanoTime() - start; in Benchmark()
/aosp12/art/compiler/utils/
H A Ddedupe_set-inl.h193 hash_start = NanoTime();
197 uint64_t hash_end = NanoTime();
/aosp12/system/testing/gtest_extras/tests/
H A DSystemTests.cpp846 uint64_t time_ns = NanoTime(); in TEST_F()
849 time_ns = NanoTime() - time_ns; in TEST_F()
867 uint64_t time_ns = NanoTime(); in TEST_F()
879 uint64_t test_ns = NanoTime() - time_ns; in TEST_F()
902 time_ns = NanoTime() - time_ns; in TEST_F()
/aosp12/art/runtime/gc/space/
H A Ddlmalloc_space.cc118 start_time = NanoTime(); in Create()
145 LOG(INFO) << "DlMallocSpace::Create exiting (" << PrettyDuration(NanoTime() - start_time) in Create()

12