Lines Matching refs:std
48 static_cast<int>(std::numeric_limits<uint32_t>::digits10);
54 std::string name;
58 static const std::map<uint16_t, DexSectionInfo> kDexSectionInfoMap = {
95 std::map<uint16_t, size_t> map_;
105 std::cout << StringPrintf("%-*s %*s %*s %% of %% of", in PrintHeader()
113 << std::endl; in PrintHeader()
114 std::cout << StringPrintf("%-*s %*s %*s sect. total", in PrintHeader()
121 << std::endl; in PrintHeader()
130 std::cout << StringPrintf("%-*s %*zd %*zd %6.2f %6.2f", in PrintOne()
139 << std::endl; in PrintOne()
142 void PrintSkipLine() const { std::cout << std::endl; } in PrintSkipLine()
149 header_width = std::max(header_width, static_cast<int>(section_info.name.length())); in ComputeHeaderWidth()
159 std::cout << "L pagetype" << std::endl; in PrintLetterKey()
162 std::cout << section_info.letter << " " << section_info.name.c_str() << std::endl; in PrintLetterKey()
164 std::cout << "* (Executable page resident)" << std::endl; in PrintLetterKey()
165 std::cout << ". (Mapped page not resident)" << std::endl; in PrintLetterKey()
176 const std::vector<dex_ir::DexFileSection>& sections) { in FindSectionTypeForPage()
196 const std::vector<dex_ir::DexFileSection>& sections, in ProcessPageMap()
207 std::cout << type_char; in ProcessPageMap()
209 std::cout << std::endl; in ProcessPageMap()
215 std::cout << std::endl; in ProcessPageMap()
223 const std::vector<dex_ir::DexFileSection>& sections, in DisplayDexStatistics()
271 std::cerr << "Dex file start offset for " in ProcessOneDexMapping()
275 << std::endl; in ProcessOneDexMapping()
281 std::cout << "DEX " in ProcessOneDexMapping()
286 << std::endl; in ProcessOneDexMapping()
288 std::vector<dex_ir::DexFileSection> sections; in ProcessOneDexMapping()
290 std::unique_ptr<dex_ir::Header> header(dex_ir::DexIrBuilder(*dex_file)); in ProcessOneDexMapping()
302 std::string vdex_name; in DisplayMappingIfFromVdexFile()
315 std::string error_msg; in DisplayMappingIfFromVdexFile()
316 std::unique_ptr<VdexFile> vdex(VdexFile::Open(vdex_name, in DisplayMappingIfFromVdexFile()
322 std::cerr << "Could not open vdex file " in DisplayMappingIfFromVdexFile()
326 << std::endl; in DisplayMappingIfFromVdexFile()
330 std::vector<std::unique_ptr<const DexFile>> dex_files; in DisplayMappingIfFromVdexFile()
332 std::cerr << "Dex files could not be opened for " in DisplayMappingIfFromVdexFile()
336 << std::endl; in DisplayMappingIfFromVdexFile()
342 std::cerr << "Error creating pagemap." << std::endl; in DisplayMappingIfFromVdexFile()
346 std::cout << "MAPPING " in DisplayMappingIfFromVdexFile()
349 << std::endl; in DisplayMappingIfFromVdexFile()
370 std::cout << type_char; in ProcessOneOatMapping()
372 std::cout << std::endl; in ProcessOneOatMapping()
378 std::cout << std::endl; in ProcessOneOatMapping()
390 std::string vdex_name; in DisplayMappingIfFromOatFile()
406 std::cerr << "Error creating pagemap." << std::endl; in DisplayMappingIfFromOatFile()
410 std::cout << "MAPPING " in DisplayMappingIfFromOatFile()
413 << std::endl; in DisplayMappingIfFromOatFile()
419 static bool FilterByNameContains(const std::string& mapped_file_name, in FilterByNameContains()
420 const std::vector<std::string>& name_filters) { in FilterByNameContains()
426 if (mapped_file_name.find(name_contains) != std::string::npos) { in FilterByNameContains()
434 std::cerr << "Usage: " << cmd << " [options] pid" << std::endl in Usage()
435 << " --contains=<string>: Display sections containing string." << std::endl in Usage()
436 << " --help: Shows this message." << std::endl in Usage()
437 << " --verbose: Makes displays verbose." << std::endl; in Usage()
447 std::vector<std::string> name_filters; in DexDiagMain()
457 std::string contains(option.substr(strlen("--contains=")).data()); in DexDiagMain()
473 std::cerr << StringPrintf("Invalid PID \"%s\".\n", argv[argc - 1]) << std::endl; in DexDiagMain()
480 std::cerr << "Error creating kernel interface -- does this kernel have pagemap?" << std::endl; in DexDiagMain()
487 std::cerr << "Error creating process interface -- does process " in DexDiagMain()
490 << std::endl; in DexDiagMain()
498 std::cerr << "Error listing maps." << std::endl; in DexDiagMain()
505 std::string mapped_file_name = pm_map_name(maps[i]); in DexDiagMain()