Lines Matching defs:std

36     for (std::size_t index = 1; index < maps_->size(); ++index) {
38 std::cout << "maps_ order error:\n"
48 const std::pair<std::shared_ptr<MemMaps>, uint32_t> VirtualThread::FindMemMapsByAddr(uint64_t addr) const
53 const std::shared_ptr<DfxMap> VirtualThread::FindMapByAddr(uint64_t addr) const
66 std::size_t left {0};
67 std::size_t right {maps_->size()};
68 std::size_t mid = (right - left) / two + left;
91 const std::unordered_map<std::string, std::unique_ptr<SymbolsFile>>& symbolsFiles,
107 std::string VirtualThread::ReadThreadName(pid_t tid)
109 std::string comm = ReadFileToString(StringPrintf("/proc/%d/comm", tid)).c_str();
110 comm.erase(std::remove(comm.begin(), comm.end(), '\r'), comm.end());
111 comm.erase(std::remove(comm.begin(), comm.end(), '\n'), comm.end());
115 const std::shared_ptr<DfxMap> VirtualThread::FindMapByFileInfo(const std::string name, uint64_t offset) const
133 SymbolsFile *VirtualThread::FindSymbolsFileByMap(std::shared_ptr<DfxMap> inMap) const
155 SymbolsFile *VirtualThread::FindSymbolsFileByName(const std::string &name) const
199 std::shared_ptr<DfxMap> map = (curMemMaps->GetMaps())[itemIndex];
222 bool VirtualThread::ParseMap(std::vector<std::shared_ptr<DfxMap>>& memMaps, bool update)
224 std::string mapPath = StringPrintf("/proc/%d/maps", pid_);
225 std::shared_ptr<DfxMaps> dfxMaps = OHOS::HiviewDFX::DfxMaps::Create(pid_, mapPath);
232 std::vector<std::shared_ptr<DfxMap>> tempMap;
233 std::string tempMapName;
234 std::shared_ptr<DfxMap> prevMap = nullptr;
239 if (memMapItem->name.find(".hap") != std::string::npos && (memMapItem->prots & PROT_EXEC)) {
253 if (memMapItem->name.find(".hap") != std::string::npos && (memMapItem->prots & PROT_EXEC)) {
267 auto memMapIter = std::find_if(memMaps.begin(), memMaps.end(), [&](const std::shared_ptr<DfxMap>& map) {
309 void VirtualThread::CreateMapItem(const std::string filename, uint64_t begin, uint64_t len,
317 std::shared_ptr<DfxMap> map = std::make_shared<DfxMap>(begin, begin + len, offset, prots, filename);
319 std::string tempMapName{" "};