MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / sample

Method sample

tools/audiocpp_cli/run_audiocpp_cli_path_tests.py:83–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 self.pynvml.nvmlShutdown()
82
83 def sample(self) -> None:
84 pids = self.process_tree_pids()
85 rss = self.process_tree_rss(pids)
86 vram = self.process_tree_vram(pids)
87 self.metrics.samples += 1
88 self.metrics.observed_peak_rss_bytes = max(self.metrics.observed_peak_rss_bytes, rss)
89 self.metrics.observed_peak_vram_bytes = max(self.metrics.observed_peak_vram_bytes, vram)
90
91 def process_tree_pids(self) -> set[int]:
92 try:

Callers 1

run_caseFunction · 0.95

Calls 4

process_tree_pidsMethod · 0.95
process_tree_rssMethod · 0.95
process_tree_vramMethod · 0.95
maxFunction · 0.85

Tested by

no test coverage detected