Lines Matching refs:ProcessRecord
91 struct ProcessRecord { struct
93 ProcessRecord(pid_t pid) : pid_(-1), cmdline_("") { in ProcessRecord() function
110 ~ProcessRecord() = default;
135 const std::map<pid_t, ProcessRecord>& processes() const { return procs_; } in processes() argument
137 void AddUsage(const ProcessRecord& proc, const MemUsage& mem_usage) { in AddUsage()
138 auto [it, inserted] = procs_.insert(std::pair<pid_t, ProcessRecord>(proc.pid(), proc)); in AddUsage()
146 std::map<pid_t, ProcessRecord> procs_;
186 ProcessRecord proc(pid); in scan_libs_per_process()
257 std::string to_csv(LibRecord& l, ProcessRecord& p) { in to_csv()
306 std::string to_json(LibRecord& l, ProcessRecord& p) { in to_json()
337 auto pss_sort = [](const ProcessRecord& a, const ProcessRecord& b) { in main()
341 auto uss_sort = [](const ProcessRecord& a, const ProcessRecord& b) { in main()
345 auto vss_sort = [](const ProcessRecord& a, const ProcessRecord& b) { in main()
349 auto rss_sort = [](const ProcessRecord& a, const ProcessRecord& b) { in main()
353 auto swap_sort = [](const ProcessRecord& a, const ProcessRecord& b) { in main()
357 std::function<bool(const ProcessRecord&, const ProcessRecord&)> sort_func = pss_sort; in main()
452 std::vector<ProcessRecord> procs; in main()
455 [] (std::pair<pid_t, ProcessRecord> const& pair) { return pair.second; }); in main()