MCPcopy Create free account
hub / github.com/1jehuang/jcode / collect_process_group_pids

Function collect_process_group_pids

scripts/bench_memory_cli.py:303–306  ·  view source on GitHub ↗
(pgids: list[int])

Source from the content-addressed store, hash-verified

301
302
303def collect_process_group_pids(pgids: list[int]) -> set[int]:
304 proc_map = iter_proc_stat()
305 wanted = set(pgids)
306 return {pid for pid, (_ppid, pgid) in proc_map.items() if pgid in wanted}
307
308
309def read_pss_mb(pid: int) -> float | None:

Callers 1

sum_tree_pssFunction · 0.85

Calls 3

iter_proc_statFunction · 0.85
itemsMethod · 0.80
setFunction · 0.50

Tested by

no test coverage detected