/art/libartbase/base/ |
D | time_utils.h | 39 std::string PrettyDuration(uint64_t nano_duration, size_t max_fraction_digits = 3); 42 std::string FormatDuration(uint64_t nano_duration, TimeUnit time_unit, 46 TimeUnit GetAppropriateTimeUnit(uint64_t nano_duration); 49 uint64_t GetNsToTimeUnitDivisor(TimeUnit time_unit); 55 uint64_t MilliTime(); 58 uint64_t MicroTime(); 61 uint64_t NanoTime(); 64 uint64_t ThreadCpuNanoTime(); 67 uint64_t ProcessCpuNanoTime(); 70 static constexpr inline uint64_t NsToMs(uint64_t ns) { in NsToMs() [all …]
|
D | time_utils.cc | 35 std::string PrettyDuration(uint64_t nano_duration, size_t max_fraction_digits) { in PrettyDuration() 44 TimeUnit GetAppropriateTimeUnit(uint64_t nano_duration) { in GetAppropriateTimeUnit() 45 const uint64_t one_sec = 1000 * 1000 * 1000; in GetAppropriateTimeUnit() 46 const uint64_t one_ms = 1000 * 1000; in GetAppropriateTimeUnit() 47 const uint64_t one_us = 1000; in GetAppropriateTimeUnit() 59 uint64_t GetNsToTimeUnitDivisor(TimeUnit time_unit) { in GetNsToTimeUnitDivisor() 60 const uint64_t one_sec = 1000 * 1000 * 1000; in GetNsToTimeUnitDivisor() 61 const uint64_t one_ms = 1000 * 1000; in GetNsToTimeUnitDivisor() 62 const uint64_t one_us = 1000; in GetNsToTimeUnitDivisor() 77 std::string FormatDuration(uint64_t nano_duration, TimeUnit time_unit, in FormatDuration() [all …]
|
D | bit_utils_test.cc | 35 static_assert(63 == CLZ<uint64_t>(UINT64_C(1)), "TestCLZ64#1"); 36 static_assert(62 == CLZ<uint64_t>(UINT64_C(3)), "TestCLZ64#2"); 37 static_assert(48 == CLZ<uint64_t>(UINT64_C(0x00008765)), "TestCLZ64#3"); 38 static_assert(32 == CLZ<uint64_t>(UINT64_C(0x87654321)), "TestCLZ64#4"); 39 static_assert(31 == CLZ<uint64_t>(UINT64_C(0x123456789)), "TestCLZ64#5"); 40 static_assert(16 == CLZ<uint64_t>(UINT64_C(0x876543211234)), "TestCLZ64#6"); 41 static_assert(1 == CLZ<uint64_t>(UINT64_C(0x4321432187654321)), "TestCLZ64#7"); 42 static_assert(0 == CLZ<uint64_t>(UINT64_C(0x8765432187654321)), "TestCLZ64#8"); 53 static_assert(0 == CTZ<uint64_t>(UINT64_C(1)), "TestCTZ64#1"); 54 static_assert(1 == CTZ<uint64_t>(UINT64_C(2)), "TestCTZ64#2"); [all …]
|
D | histogram_test.cc | 37 std::unique_ptr<Histogram<uint64_t>> hist(new Histogram<uint64_t>("MeanTest", 5)); in TEST() 41 hist->AddValue(static_cast<uint64_t>(50)); in TEST() 55 std::unique_ptr<Histogram<uint64_t>> hist(new Histogram<uint64_t>("VarianceTest", 5)); in TEST() 67 std::unique_ptr<Histogram<uint64_t>> hist(new Histogram<uint64_t>("Percentile", 5)); in TEST() 68 Histogram<uint64_t>::CumulativeData data; in TEST() 94 std::unique_ptr<Histogram<uint64_t>> hist(new Histogram<uint64_t>("UpdateRange", 5)); in TEST() 95 Histogram<uint64_t>::CumulativeData data; in TEST() 134 std::unique_ptr<Histogram<uint64_t>> hist(new Histogram<uint64_t>("Reset", 5)); in TEST() 162 Histogram<uint64_t>::CumulativeData data; in TEST() 177 std::unique_ptr<Histogram<uint64_t>> hist(new Histogram<uint64_t>("MultipleCreateHist", 5)); in TEST() [all …]
|
D | utils_test.cc | 120 EXPECT_EQ(BoundsCheckedCast<const uint64_t*>(nullptr, buffer, buffer_end), nullptr); in TEST_F() 121 EXPECT_EQ(BoundsCheckedCast<const uint64_t*>(buffer, buffer, buffer_end), in TEST_F() 122 reinterpret_cast<const uint64_t*>(buffer)); in TEST_F() 123 EXPECT_EQ(BoundsCheckedCast<const uint64_t*>(buffer + 56, buffer, buffer_end), in TEST_F() 124 reinterpret_cast<const uint64_t*>(buffer + 56)); in TEST_F() 125 EXPECT_EQ(BoundsCheckedCast<const uint64_t*>(buffer - 1, buffer, buffer_end), nullptr); in TEST_F() 126 EXPECT_EQ(BoundsCheckedCast<const uint64_t*>(buffer + 57, buffer, buffer_end), nullptr); in TEST_F()
|
D | allocator.cc | 80 Atomic<uint64_t> g_total_bytes_used[kAllocatorTagCount]; 86 uint64_t bytes_used = g_bytes_used[i].LoadRelaxed(); in Dump() 87 uint64_t max_bytes_used = g_max_bytes_used[i]; in Dump() 88 uint64_t total_bytes_used = g_total_bytes_used[i].LoadRelaxed(); in Dump()
|
D | time_utils_test.cc | 24 const uint64_t one_sec = 1000000000; in TEST() 25 const uint64_t one_ms = 1000000; in TEST() 26 const uint64_t one_us = 1000; in TEST()
|
/art/runtime/gc/collector/ |
D | iteration.h | 38 const std::vector<uint64_t>& GetPauseTimes() const { in GetPauseTimes() 45 uint64_t GetDurationNs() const { in GetDurationNs() 54 uint64_t GetFreedObjects() const { in GetFreedObjects() 57 uint64_t GetFreedLargeObjects() const { in GetFreedLargeObjects() 60 uint64_t GetFreedRevokeBytes() const { in GetFreedRevokeBytes() 63 void SetFreedRevoke(uint64_t freed) { in SetFreedRevoke() 68 uint64_t GetEstimatedThroughput() const; 80 void SetDurationNs(uint64_t duration) { in SetDurationNs() 86 uint64_t duration_ns_; 90 uint64_t freed_bytes_revoke_; // see Heap::num_bytes_freed_revoke_. [all …]
|
D | garbage_collector.h | 57 const uint64_t start_time_; 74 void RegisterPause(uint64_t nano_length); 84 uint64_t GetTotalPausedTimeNs() REQUIRES(!pause_histogram_lock_); 88 uint64_t GetTotalFreedObjects() const { in GetTotalFreedObjects() 94 uint64_t GetEstimatedMeanThroughput() const; 148 Histogram<uint64_t> pause_histogram_ GUARDED_BY(pause_histogram_lock_); 149 uint64_t total_time_ns_; 150 uint64_t total_freed_objects_;
|
D | garbage_collector.cc | 59 uint64_t Iteration::GetEstimatedThroughput() const { in GetEstimatedThroughput() 61 return (static_cast<uint64_t>(freed_.bytes) * 1000) / (NsToMs(GetDurationNs()) + 1); in GetEstimatedThroughput() 74 void GarbageCollector::RegisterPause(uint64_t nano_length) { in RegisterPause() 90 uint64_t start_time = NanoTime(); in Run() 104 uint64_t end_time = NanoTime(); in Run() 113 for (uint64_t pause_time : current_iteration->GetPauseTimes()) { in Run() 151 uint64_t GarbageCollector::GetEstimatedMeanThroughput() const { in GetEstimatedMeanThroughput() 208 uint64_t GarbageCollector::GetTotalPausedTimeNs() { in GetTotalPausedTimeNs() 220 const uint64_t total_ns = logger.GetTotalNs(); in DumpPerformanceInfo() 222 const uint64_t freed_bytes = GetTotalFreedBytes(); in DumpPerformanceInfo() [all …]
|
/art/compiler/optimizing/ |
D | code_generator_utils.cc | 55 const uint64_t exp = is_long ? (UINT64_C(1) << 63) : (UINT32_C(1) << 31); in CalculateMagicAndShiftForDivRem() 58 uint64_t abs_d = (divisor >= 0) ? divisor : -divisor; in CalculateMagicAndShiftForDivRem() 59 uint64_t sign_bit = is_long ? static_cast<uint64_t>(divisor) >> 63 : in CalculateMagicAndShiftForDivRem() 61 uint64_t tmp = exp + sign_bit; in CalculateMagicAndShiftForDivRem() 62 uint64_t abs_nc = tmp - 1 - (tmp % abs_d); in CalculateMagicAndShiftForDivRem() 63 uint64_t quotient1 = exp / abs_nc; in CalculateMagicAndShiftForDivRem() 64 uint64_t remainder1 = exp % abs_nc; in CalculateMagicAndShiftForDivRem() 65 uint64_t quotient2 = exp / abs_d; in CalculateMagicAndShiftForDivRem() 66 uint64_t remainder2 = exp % abs_d; in CalculateMagicAndShiftForDivRem() 72 uint64_t delta; in CalculateMagicAndShiftForDivRem()
|
/art/runtime/ |
D | runtime_stats.h | 92 uint64_t allocated_objects; 94 uint64_t allocated_bytes; 97 uint64_t freed_objects; 99 uint64_t freed_bytes; 102 uint64_t gc_for_alloc_count; 105 uint64_t class_init_count; 107 uint64_t class_init_time_ns;
|
D | elf_file.h | 70 bool GetSectionOffsetAndSize(const char* section_name, uint64_t* offset, uint64_t* size) const; 74 uint64_t FindSymbolAddress(unsigned section_type, 86 static bool Fixup(File* file, uint64_t oat_data_begin); 88 bool Fixup(uint64_t base_address);
|
/art/runtime/base/ |
D | timing_logger.h | 40 uint64_t GetTotalNs() const { in GetTotalNs() 52 bool operator()(const Histogram<uint64_t>* a, const Histogram<uint64_t>* b) const { in operator() 61 void AddPair(const std::string &label, uint64_t delta_time) 64 uint64_t GetTotalTime() const { in GetTotalTime() 67 static const uint64_t kAdjust = 1000; 68 std::set<Histogram<uint64_t>*, HistogramComparator> histograms_ GUARDED_BY(lock_); 73 uint64_t total_time_; 107 uint64_t GetTime() const { in GetTime() 115 uint64_t time_; 130 uint64_t GetTotalTime(size_t idx) { in GetTotalTime() [all …]
|
D | timing_logger.cc | 93 void CumulativeLogger::AddPair(const std::string& label, uint64_t delta_time) { in AddPair() 97 Histogram<uint64_t>* histogram; in AddPair() 98 Histogram<uint64_t> dummy(label.c_str()); in AddPair() 103 histogram = new Histogram<uint64_t>(label.c_str(), kInitialBucketSize, max_buckets); in AddPair() 113 bool operator()(const Histogram<uint64_t>* a, const Histogram<uint64_t>* b) const { in operator ()() 121 std::set<Histogram<uint64_t>*, CompareHistorgramByTimeSpentDeclining> in DumpHistogram() 123 for (Histogram<uint64_t>* histogram : sorted_histograms) { in DumpHistogram() 124 Histogram<uint64_t>::CumulativeData cumulative_data; in DumpHistogram() 154 uint64_t TimingLogger::GetTotalNs() const { in GetTotalNs() 179 uint64_t time = timings_[i].GetTime() - timings_[open_idx].GetTime(); in CalculateTimingData() [all …]
|
/art/runtime/jit/ |
D | profile_saver.h | 126 uint64_t last_time_ns_saver_woke_up_ GUARDED_BY(wait_lock_); 140 uint64_t total_bytes_written_; 141 uint64_t total_number_of_writes_; 142 uint64_t total_number_of_code_cache_queries_; 143 uint64_t total_number_of_skipped_writes_; 144 uint64_t total_number_of_failed_writes_; 145 uint64_t total_ms_of_sleep_; 146 uint64_t total_ns_of_work_; 148 uint64_t max_number_of_profile_entries_cached_; 149 uint64_t total_number_of_hot_spikes_; [all …]
|
/art/runtime/entrypoints/quick/ |
D | quick_default_externs.h | 91 extern "C" uint64_t art_quick_lshl(uint64_t, uint32_t); 92 extern "C" uint64_t art_quick_lshr(uint64_t, uint32_t); 93 extern "C" uint64_t art_quick_lushr(uint64_t, uint32_t); 95 extern "C" uint64_t art_quick_shl_long(uint64_t, uint32_t); 96 extern "C" uint64_t art_quick_shr_long(uint64_t, uint32_t); 97 extern "C" uint64_t art_quick_ushr_long(uint64_t, uint32_t);
|
/art/compiler/debug/ |
D | elf_compilation_unit.h | 31 uint64_t code_address = std::numeric_limits<uint64_t>::max(); 32 uint64_t code_end = 0;
|
D | elf_symtab_writer.h | 51 uint64_t mapping_symbol_address = std::numeric_limits<uint64_t>::max(); in WriteDebugSymbols() 62 std::unordered_set<uint64_t> deduped_addresses; in WriteDebugSymbols() 68 uint64_t address = info.code_address; in WriteDebugSymbols() 77 if (mapping_symbol_address != std::numeric_limits<uint64_t>::max()) { in WriteDebugSymbols() 97 uint64_t address = info.code_address; in WriteDebugSymbols() 107 uint64_t dex_address = dex->GetAddress() + it.first /* offset within the section */; in WriteDebugSymbols()
|
/art/compiler/jit/ |
D | jit_logger.cc | 119 uint64_t time_stamp_; // Timestamp when the header is generated 120 uint64_t flags_; // Currently the flags are only used for choosing clock for timestamp, 157 uint64_t time_stamp_; // Timestamp for the event. 167 uint64_t vma_; // Address of the code section. In ART JIT, because code_address_ 169 uint64_t code_address_; // Address where is jitted code is loaded. 170 uint64_t code_size_; // Size of the jitted code. 171 uint64_t code_id_; // Unique ID for each jitted code. 177 uint64_t address_; // Code address which maps to the line/column in source. 187 uint64_t address_; // Starting code address which the debug info describes. 188 uint64_t entry_count_; // How many instances of PerfJitDebugEntry. [all …]
|
/art/runtime/gc/ |
D | task_processor.h | 32 explicit HeapTask(uint64_t target_run_time) : target_run_time_(target_run_time) { in HeapTask() 34 uint64_t GetTargetRunTime() const { in GetTargetRunTime() 41 void SetTargetRunTime(uint64_t new_target_run_time) { in SetTargetRunTime() 46 uint64_t target_run_time_; 65 void UpdateTargetRunTime(Thread* self, HeapTask* target_time, uint64_t new_target_time)
|
D | task_processor.cc | 59 const uint64_t current_time = NanoTime(); in GetTask() 63 uint64_t target_time = task->GetTargetRunTime(); in GetTask() 70 const uint64_t delta_time = target_time - current_time; in GetTask() 71 const uint64_t ms_delta = NsToMs(delta_time); in GetTask() 72 const uint64_t ns_delta = delta_time - MsToNs(ms_delta); in GetTask() 79 void TaskProcessor::UpdateTargetRunTime(Thread* self, HeapTask* task, uint64_t new_target_time) { in UpdateTargetRunTime()
|
/art/libartbase/base/unix_file/ |
D | random_access_file_test.h | 76 … ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Write(content.data(), content.size(), 0))); in TestRead() 90 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Read(buf.get(), buf_size, 0))); in TestReadContent() 96 ASSERT_EQ(short_request, static_cast<uint64_t>(file->Read(buf.get(), short_request, 0))); in TestReadContent() 103 ASSERT_EQ(short_request, static_cast<uint64_t>(file->Read(buf.get(), short_request, in TestReadContent() 116 … ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Write(content.data(), content.size(), 0))); in TestSetLength() 117 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->GetLength())); in TestSetLength() 152 … ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Write(content.data(), content.size(), 0))); in TestWrite() 153 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->GetLength())); in TestWrite() 160 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Read(buf, sizeof(buf), 0))); in TestWrite() 164 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Write(content.data(), content.size(), in TestWrite()
|
/art/compiler/debug/dwarf/ |
D | debug_line_opcode_writer.h | 47 void AdvancePC(uint64_t absolute_address) { in AdvancePC() 51 uint64_t delta = FactorCodeOffset(absolute_address - current_address_); in AdvancePC() 123 void SetAddress(uint64_t absolute_address) { in SetAddress() 162 void AddRow(uint64_t absolute_address, int absolute_line) { in AddRow() 166 uint64_t delta_address = FactorCodeOffset(absolute_address - current_address_); in AddRow() 205 uint64_t CurrentAddress() const { in CurrentAddress() 239 uint64_t FactorCodeOffset(uint64_t offset) const { in FactorCodeOffset() 249 uint64_t current_address_;
|
/art/runtime/mirror/ |
D | class_loader.h | 54 reinterpret_cast<uint64_t>(class_table)); in SetClassTable() 64 reinterpret_cast<uint64_t>(allocator)); in SetAllocator() 84 uint64_t allocator_; 85 uint64_t class_table_;
|