Home
last modified time | relevance | path

Searched refs:uint64_t (Results 1 – 25 of 261) sorted by relevance

1234567891011

/art/libartbase/base/
Dtime_utils.h41 std::string PrettyDuration(uint64_t nano_duration, size_t max_fraction_digits = 3);
44 std::string FormatDuration(uint64_t nano_duration, TimeUnit time_unit,
48 TimeUnit GetAppropriateTimeUnit(uint64_t nano_duration);
51 uint64_t GetNsToTimeUnitDivisor(TimeUnit time_unit);
57 uint64_t MilliTime();
60 uint64_t MicroTime();
63 uint64_t NanoTime();
66 uint64_t ThreadCpuNanoTime();
69 uint64_t ProcessCpuNanoTime();
72 static constexpr inline uint64_t NsToMs(uint64_t ns) { in NsToMs()
[all …]
Dtime_utils.cc51 std::string PrettyDuration(uint64_t nano_duration, size_t max_fraction_digits) { in PrettyDuration()
60 TimeUnit GetAppropriateTimeUnit(uint64_t nano_duration) { in GetAppropriateTimeUnit()
61 const uint64_t one_sec = 1000 * 1000 * 1000; in GetAppropriateTimeUnit()
62 const uint64_t one_ms = 1000 * 1000; in GetAppropriateTimeUnit()
63 const uint64_t one_us = 1000; in GetAppropriateTimeUnit()
75 uint64_t GetNsToTimeUnitDivisor(TimeUnit time_unit) { in GetNsToTimeUnitDivisor()
76 const uint64_t one_sec = 1000 * 1000 * 1000; in GetNsToTimeUnitDivisor()
77 const uint64_t one_ms = 1000 * 1000; in GetNsToTimeUnitDivisor()
78 const uint64_t one_us = 1000; in GetNsToTimeUnitDivisor()
93 std::string FormatDuration(uint64_t nano_duration, TimeUnit time_unit, in FormatDuration()
[all …]
Dbit_utils_test.cc35 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 …]
Dhistogram_test.cc37 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 …]
Dallocator.cc80 Atomic<uint64_t> g_total_bytes_used[kAllocatorTagCount];
86 uint64_t bytes_used = g_bytes_used[i].load(std::memory_order_relaxed); in Dump()
87 uint64_t max_bytes_used = g_max_bytes_used[i].load(std::memory_order_relaxed); in Dump()
88 uint64_t total_bytes_used = g_total_bytes_used[i].load(std::memory_order_relaxed); in Dump()
/art/tools/dexanalyze/
Ddexanalyze_experiments.h48 std::string PercentDivide(uint64_t value, uint64_t max);
52 std::string Percent(uint64_t value, uint64_t max);
60 virtual void Dump(std::ostream& os, uint64_t total_size) const = 0;
69 void Dump(std::ostream& os, uint64_t total_size) const override;
97 void Dump(std::ostream& os, uint64_t total_size) const override;
104 uint64_t total_unique_code_items_ = 0u;
108 uint64_t field_index_[kMaxFieldIndex] = {};
109 uint64_t field_index_other_ = 0u;
110 uint64_t field_index_other_class_ = 0u; // Includes superclass fields referenced with
115 uint64_t short_bytecode_ = 0u;
[all …]
Ddexanalyze_bytecode.h58 explicit NewRegisterInstructions(uint64_t experiments) in NewRegisterInstructions()
64 void Dump(std::ostream& os, uint64_t total_size) const;
75 return experiments_ & (1u << static_cast<uint64_t>(experiment)); in Enabled()
80 uint64_t output_size_ = 0u;
81 uint64_t deduped_size_ = 0u;
82 uint64_t dex_code_bytes_ = 0u;
83 uint64_t experiments_ = std::numeric_limits<uint64_t>::max();
84 uint64_t extended_field_ = 0u;
85 uint64_t extended_method_ = 0u;
Ddexanalyze_strings.h37 uint64_t time_equal_comparisons_ = 0u;
38 uint64_t time_non_equal_comparisons_ = 0u;
39 uint64_t num_comparisons_ = 0u;
46 void Dump(std::ostream& os, uint64_t total_size) const override;
/art/runtime/gc/collector/
Diteration.h38 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 …]
Dgarbage_collector.h57 const uint64_t start_time_;
74 void RegisterPause(uint64_t nano_length);
84 uint64_t GetTotalCpuTime() const { in GetTotalCpuTime()
87 uint64_t GetTotalPausedTimeNs() REQUIRES(!pause_histogram_lock_);
91 uint64_t GetTotalFreedObjects() const { in GetTotalFreedObjects()
97 uint64_t GetEstimatedMeanThroughput() const;
115 uint64_t ExtractRssFromMincore(std::list<std::pair<void*, void*>>* gc_ranges);
156 Histogram<uint64_t> pause_histogram_ GUARDED_BY(pause_histogram_lock_);
157 Histogram<uint64_t> rss_histogram_;
159 uint64_t total_thread_cpu_time_ns_;
[all …]
Dgarbage_collector.cc61 uint64_t Iteration::GetEstimatedThroughput() const { in GetEstimatedThroughput()
63 return (static_cast<uint64_t>(freed_.bytes) * 1000) / (NsToMs(GetDurationNs()) + 1); in GetEstimatedThroughput()
78 void GarbageCollector::RegisterPause(uint64_t nano_length) { in RegisterPause()
94 uint64_t GarbageCollector::ExtractRssFromMincore( in ExtractRssFromMincore()
96 uint64_t rss = 0; in ExtractRssFromMincore()
149 uint64_t start_time = NanoTime(); in Run()
150 uint64_t thread_cpu_start_time = ThreadCpuNanoTime(); in Run()
169 uint64_t end_time = NanoTime(); in Run()
170 uint64_t thread_cpu_end_time = ThreadCpuNanoTime(); in Run()
180 for (uint64_t pause_time : current_iteration->GetPauseTimes()) { in Run()
[all …]
/art/compiler/optimizing/
Dcode_generator_utils.cc55 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/
Druntime_stats.h92 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;
Delf_file.h75 bool GetSectionOffsetAndSize(const char* section_name, uint64_t* offset, uint64_t* size) const;
79 uint64_t FindSymbolAddress(unsigned section_type,
91 static bool Fixup(File* file, uint64_t oat_data_begin);
93 bool Fixup(uint64_t base_address);
/art/runtime/base/
Dtiming_logger.h41 uint64_t GetTotalNs() const { in GetTotalNs()
53 bool operator()(const Histogram<uint64_t>* a, const Histogram<uint64_t>* b) const { in operator()
62 void AddPair(const std::string &label, uint64_t delta_time) REQUIRES(GetLock());
64 uint64_t GetTotalTime() const { in GetTotalTime()
72 static const uint64_t kAdjust = 1000;
73 std::set<Histogram<uint64_t>*, HistogramComparator> histograms_ GUARDED_BY(GetLock());
78 uint64_t total_time_;
112 uint64_t GetTime() const { in GetTime()
120 uint64_t time_;
135 uint64_t GetTotalTime(size_t idx) { in GetTotalTime()
[all …]
Dtiming_logger.cc94 void CumulativeLogger::AddPair(const std::string& label, uint64_t delta_time) { in AddPair()
98 Histogram<uint64_t>* histogram; in AddPair()
99 Histogram<uint64_t> candidate(label.c_str()); in AddPair()
104 histogram = new Histogram<uint64_t>(label.c_str(), kInitialBucketSize, max_buckets); in AddPair()
114 bool operator()(const Histogram<uint64_t>* a, const Histogram<uint64_t>* b) const { in operator ()()
122 std::set<Histogram<uint64_t>*, CompareHistorgramByTimeSpentDeclining> in DumpHistogram()
124 for (Histogram<uint64_t>* histogram : sorted_histograms) { in DumpHistogram()
125 Histogram<uint64_t>::CumulativeData cumulative_data; in DumpHistogram()
155 uint64_t TimingLogger::GetTotalNs() const { in GetTotalNs()
180 uint64_t time = timings_[i].GetTime() - timings_[open_idx].GetTime(); in CalculateTimingData()
[all …]
/art/runtime/entrypoints/quick/
Dquick_default_externs.h93 extern "C" uint64_t art_quick_lshl(uint64_t, uint32_t);
94 extern "C" uint64_t art_quick_lshr(uint64_t, uint32_t);
95 extern "C" uint64_t art_quick_lushr(uint64_t, uint32_t);
97 extern "C" uint64_t art_quick_shl_long(uint64_t, uint32_t);
98 extern "C" uint64_t art_quick_shr_long(uint64_t, uint32_t);
99 extern "C" uint64_t art_quick_ushr_long(uint64_t, uint32_t);
/art/runtime/jit/
Dprofile_saver.h131 uint64_t last_time_ns_saver_woke_up_ GUARDED_BY(wait_lock_);
145 uint64_t total_bytes_written_;
146 uint64_t total_number_of_writes_;
147 uint64_t total_number_of_code_cache_queries_;
148 uint64_t total_number_of_skipped_writes_;
149 uint64_t total_number_of_failed_writes_;
150 uint64_t total_ms_of_sleep_;
151 uint64_t total_ns_of_work_;
153 uint64_t total_number_of_hot_spikes_;
154 uint64_t total_number_of_wake_ups_;
/art/compiler/debug/
Delf_compilation_unit.h31 uint64_t code_address = std::numeric_limits<uint64_t>::max();
32 uint64_t code_end = 0;
Delf_symtab_writer.h51 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/
Djit_logger.cc118 uint64_t time_stamp_; // Timestamp when the header is generated
119 uint64_t flags_; // Currently the flags are only used for choosing clock for timestamp,
156 uint64_t time_stamp_; // Timestamp for the event.
166 uint64_t vma_; // Address of the code section. In ART JIT, because code_address_
168 uint64_t code_address_; // Address where is jitted code is loaded.
169 uint64_t code_size_; // Size of the jitted code.
170 uint64_t code_id_; // Unique ID for each jitted code.
176 uint64_t address_; // Code address which maps to the line/column in source.
186 uint64_t address_; // Starting code address which the debug info describes.
187 uint64_t entry_count_; // How many instances of PerfJitDebugEntry.
[all …]
/art/runtime/gc/
Dtask_processor.h32 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)
Dtask_processor.cc59 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/
Drandom_access_file_test.h76 … 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/libelffile/dwarf/
Ddebug_line_opcode_writer.h47 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_;

1234567891011