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;
Dutils_test.cc34 EXPECT_EQ("1024B", PrettySize(1 * KB)); in TEST_F()
35 EXPECT_EQ("10KB", PrettySize(10 * KB)); in TEST_F()
36 EXPECT_EQ("100KB", PrettySize(100 * KB)); in TEST_F()
Darena_allocator-inl.h29 : 128 * KB;
Dutils.cc217 10*KB, // KB up to... in PrettySize()
221 static const int64_t kBytesPerUnit[] = { 1, KB, MB, GB }; in PrettySize()
/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/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/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.cc141 rss_histogram_.AddValue(rss / KB); in ExtractRssFromMincore()
168 freed_bytes_histogram_.AddValue(std::max<int64_t>(freed_bytes / KB, 0)); in Run()
296 << ": Avg: " << PrettySize(rss_histogram_.Mean() * KB) in DumpPerformanceInfo()
297 << " Max: " << PrettySize(rss_histogram_.Max() * KB) in DumpPerformanceInfo()
298 << " Min: " << PrettySize(rss_histogram_.Min() * KB) << "\n"; in DumpPerformanceInfo()
306 << ": Avg: " << PrettySize(freed_bytes_histogram_.Mean() * KB) in DumpPerformanceInfo()
307 << " Max: " << PrettySize(freed_bytes_histogram_.Max() * KB) in DumpPerformanceInfo()
308 << " 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.h41 constexpr size_t kNterpMaxFrame = 3 * 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()
Delf_debug_line_writer.h263 buffer.reserve(opcodes.data()->size() + KB); in WriteCompilationUnit()
/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/libelffile/elf/
Dxz_utils.cc35 constexpr size_t kChunkSize = 16 * KB;
/art/runtime/jit/
Djit_code_cache.cc64 static constexpr size_t kCodeSizeLogThreshold = 50 * KB;
65 static constexpr size_t kStackMapSizeLogThreshold = 50 * KB;
1909 << GetCurrentRegion()->GetUsedMemoryForCode() / KB << "KB / " in Dump()
1910 << GetCurrentRegion()->GetResidentMemoryForCode() / KB << "KB\n" in Dump()
1912 << GetCurrentRegion()->GetUsedMemoryForData() / KB << "KB / " in Dump()
1913 << GetCurrentRegion()->GetResidentMemoryForData() / KB << "KB\n"; in Dump()
1916 << shared_region_.GetUsedMemoryForCode() / KB << "KB / " in Dump()
1917 << shared_region_.GetResidentMemoryForCode() / KB << "KB\n" in Dump()
1919 << shared_region_.GetUsedMemoryForData() / KB << "KB / " in Dump()
1920 << shared_region_.GetResidentMemoryForData() / KB << "KB\n"; in Dump()
Djit_code_cache.h184 static constexpr size_t kInitialCapacity = kIsDebugBuild ? 8 * KB : 64 * KB;

123