Returns a mapping from pid->pidCount for pids
| 573 | |
| 574 | // Returns a mapping from pid->pidCount for pids |
| 575 | std::map<Optional<Standalone<StringRef>>, int> getColocCounts( |
| 576 | const std::vector<Optional<Standalone<StringRef>>>& pids) { |
| 577 | std::map<Optional<Standalone<StringRef>>, int> counts; |
| 578 | for (const auto& pid : pids) { |
| 579 | if (pid.present()) { |
| 580 | ++counts[pid]; |
| 581 | } |
| 582 | } |
| 583 | return counts; |
| 584 | } |
| 585 | |
| 586 | // Checks if there exists a better process for each singleton (e.g. DD) compared |
| 587 | // to the process it is currently on. |
no test coverage detected