Home
last modified time | relevance | path

Searched refs:KB (Results 1 – 25 of 56) sorted by relevance

123

/art/libartbase/base/
Dglobals.h25 static constexpr size_t KB = 1024; variable
26 static constexpr size_t MB = KB * KB;
27 static constexpr size_t GB = KB * KB * KB;
Darena_allocator-inl.h29 : 128 * KB;
Dutils_test.cc36 EXPECT_EQ("1024B", PrettySize(1 * KB)); in TEST_F()
37 EXPECT_EQ("10KB", PrettySize(10 * KB)); in TEST_F()
38 EXPECT_EQ("100KB", PrettySize(100 * KB)); in TEST_F()
Dutils.cc219 10*KB, // KB up to... in PrettySize()
223 static const uint64_t kBytesPerUnit[] = { 1, KB, MB, GB }; in PrettySize()
/art/dex2oat/linker/
Dimage_test.cc68 uint32_t image_size_ = 16 * KB; in TEST_F()
69 uint32_t image_roots = ART_BASE_ADDRESS + (1 * KB); in TEST_F()
71 uint32_t oat_file_begin = ART_BASE_ADDRESS + (4 * KB); // page aligned in TEST_F()
72 uint32_t oat_data_begin = ART_BASE_ADDRESS + (8 * KB); // page aligned in TEST_F()
73 uint32_t oat_data_end = ART_BASE_ADDRESS + (9 * KB); in TEST_F()
74 uint32_t oat_file_end = ART_BASE_ADDRESS + (10 * KB); in TEST_F()
Dimage_write_read_test.cc105 } else if (image_file_size > 16 * KB) { in TestWriteRead()
156 TestWriteRead(ImageHeader::kStorageModeLZ4HC, /*max_image_block_size=*/KB); in TEST_F()
/art/compiler/utils/
Dstack_checks.h26 static constexpr size_t kLargeFrameSize = 2 * KB;
31 static constexpr size_t kSmallFrameSize = 1 * KB;
Dassembler.cc30 static const size_t kInitialBufferCapacity = 4 * KB; in AssemblerBuffer()
/art/runtime/
Dthread_linux.cc37 32 * KB < MINSIGSTKSZ ? MINSIGSTKSZ : 32 * KB;
Dparsed_options_test.cc92 EXPECT_PARSED_EQ(4 * KB, Opt::MemoryMaximumSize); in TEST_F()
/art/runtime/gc/collector/
Dgarbage_collector.cc150 rss_histogram_.AddValue(rss / KB); in ExtractRssFromMincore()
179 freed_bytes_histogram_.AddValue(std::max<int64_t>(freed_bytes / KB, 0)); in Run()
334 << ": Avg: " << PrettySize(rss_histogram_.Mean() * KB) in DumpPerformanceInfo()
335 << " Max: " << PrettySize(rss_histogram_.Max() * KB) in DumpPerformanceInfo()
336 << " Min: " << PrettySize(rss_histogram_.Min() * KB) << "\n"; in DumpPerformanceInfo()
344 << ": Avg: " << PrettySize(freed_bytes_histogram_.Mean() * KB) in DumpPerformanceInfo()
345 << " Max: " << PrettySize(freed_bytes_histogram_.Max() * KB) in DumpPerformanceInfo()
346 << " Min: " << PrettySize(freed_bytes_histogram_.Min() * KB) << "\n"; in DumpPerformanceInfo()
Dimmune_spaces_test.cc174 FakeSpace a(base, base + 45 * KB); in TEST_F()
175 FakeSpace b(a.Limit(), a.Limit() + 813 * KB); in TEST_F()
/art/runtime/gc/allocator/
Drosalloc.h521 size == 1 * KB || size == 2 * KB)); in BracketSizeToIndex()
523 if (UNLIKELY(size == 1 * KB)) { in BracketSizeToIndex()
525 } else if (UNLIKELY(size == 2 * KB)) { in BracketSizeToIndex()
553 } else if (UNLIKELY(size <= 1 * KB)) { in RoundToBracketSize()
554 return 1 * KB; in RoundToBracketSize()
556 DCHECK_LE(size, 2 * KB); in RoundToBracketSize()
557 return 2 * KB; in RoundToBracketSize()
568 } else if (size <= 1 * KB) { in SizeToIndex()
571 DCHECK_LE(size, 2 * KB); in SizeToIndex()
587 } else if (size <= 1 * KB) { in SizeToIndexAndBracketSize()
[all …]
/art/runtime/gc/space/
Dspace_test.h368 TEST_SizeFootPrintGrowthLimitAndTrimStatic(1KB, spaceName, spaceFn, 1 * KB) \
369 TEST_SizeFootPrintGrowthLimitAndTrimStatic(4KB, spaceName, spaceFn, 4 * KB) \
383 TEST_SizeFootPrintGrowthLimitAndTrimRandom(1KB, spaceName, spaceFn, 1 * KB) \
384 TEST_SizeFootPrintGrowthLimitAndTrimRandom(4KB, spaceName, spaceFn, 4 * KB) \
Dlarge_object_space_test.cc166 thread_pool.AddTask(self, new AllocRaceTask(i, kNumIterations, 16 * KB, los)); in RaceTest()
/art/runtime/interpreter/mterp/
Dnterp.h44 constexpr size_t kNterpMaxFrame = 3 * KB;
/art/libelffile/elf/
Dxz_utils.h27 constexpr size_t kXzDefaultBlockSize = 16 * KB;
/art/libelffile/stream/
Dbuffered_output_stream.h41 static const size_t kBufferSize = 8 * KB;
/art/compiler/debug/
Delf_debug_writer.cc123 buffer.reserve(KB); in MakeMiniDebugInfoInternal()
186 buffer.reserve(KB); in MakeElfFileForJIT()
255 inner_elf_file.reserve(1 * KB); // Approximate size of ELF file with a single symbol. in PackElfFileForJIT()
332 outer_elf_file.reserve(KB + gnu_debugdata.size()); in PackElfFileForJIT()
356 buffer.reserve(KB); in WriteDebugElfFileForClasses()
/art/runtime/gc/accounting/
Dspace_bitmap_test.cc106 {0, 10 * KB + kObjectAlignment}, in TEST_F()
110 {1 * KB + kObjectAlignment, 2 * KB + 5 * kObjectAlignment}, in TEST_F()
Dread_barrier_table.h87 static constexpr size_t kRegionSize = 256 * KB;
/art/runtime/gc/
Dheap_test.cc39 16 * KB, in SetUp()
/art/runtime/jit/
Djit_code_cache.cc65 static constexpr size_t kCodeSizeLogThreshold = 50 * KB;
66 static constexpr size_t kStackMapSizeLogThreshold = 50 * KB;
1765 << GetCurrentRegion()->GetUsedMemoryForCode() / KB << "KB / " in Dump()
1766 << GetCurrentRegion()->GetResidentMemoryForCode() / KB << "KB\n" in Dump()
1768 << GetCurrentRegion()->GetUsedMemoryForData() / KB << "KB / " in Dump()
1769 << GetCurrentRegion()->GetResidentMemoryForData() / KB << "KB\n"; in Dump()
1772 << shared_region_.GetUsedMemoryForCode() / KB << "KB / " in Dump()
1773 << shared_region_.GetResidentMemoryForCode() / KB << "KB\n" in Dump()
1775 << shared_region_.GetUsedMemoryForData() / KB << "KB / " in Dump()
1776 << shared_region_.GetResidentMemoryForData() / KB << "KB\n"; in Dump()
Djit_code_cache.h185 static constexpr size_t kInitialCapacity = kIsDebugBuild ? 8 * KB : 64 * KB;
/art/tools/create_minidebuginfo/
Dcreate_minidebuginfo.cc37 static constexpr size_t kBlockSize = 32 * KB;

123