Lines Matching refs:pid
41 void AddFdRef(pid_t pid) { in AddFdRef()
42 AddRefToPidMap(pid, &fdrefs_); in AddFdRef()
47 void AddMapRef(pid_t pid) { in AddMapRef()
48 AddRefToPidMap(pid, &maprefs_); in AddMapRef()
65 uint64_t Pss(pid_t pid) const { return maprefs_.count(pid) > 0 ? size_ / maprefs_.size() : 0; } in Pss()
82 void AddRefToPidMap(pid_t pid, std::unordered_map<pid_t, int>* map) { in AddRefToPidMap()
85 auto [it, inserted] = map->insert(std::make_pair(pid, 1)); in AddRefToPidMap()
87 pids_.insert(pid); in AddRefToPidMap()
101 bool ReadDmaBufInfo(pid_t pid, std::vector<DmaBuffer>* dmabufs, bool read_fdrefs = true,
112 bool ReadDmaBufFdRefs(int pid, std::vector<DmaBuffer>* dmabufs,
119 bool ReadDmaBufMapRefs(pid_t pid, std::vector<DmaBuffer>* dmabufs,
127 bool ReadDmaBufPss(int pid, uint64_t* pss, const std::string& procfs_path = "/proc",