Aggregated resource utilization for one spawned process over its window.
| 163 | |
| 164 | @dataclass |
| 165 | class ResourceProfile: |
| 166 | """Aggregated resource utilization for one spawned process over its window.""" |
| 167 | |
| 168 | wall_ms: float = 0.0 |
| 169 | peak_rss_bytes: int = 0 |
| 170 | final_rss_bytes: int = 0 |
| 171 | peak_rss_anon_bytes: int = 0 |
| 172 | peak_pss_bytes: int = 0 |
| 173 | peak_swap_bytes: int = 0 |
| 174 | peak_threads: int = 0 |
| 175 | peak_fds: int = 0 |
| 176 | cpu_user_s: float = 0.0 |
| 177 | cpu_sys_s: float = 0.0 |
| 178 | cpu_total_s: float = 0.0 |
| 179 | cpu_pct: float = 0.0 |
| 180 | minflt: int = 0 |
| 181 | majflt: int = 0 |
| 182 | vol_ctxt: int = 0 |
| 183 | nonvol_ctxt: int = 0 |
| 184 | io_read_bytes: int = 0 |
| 185 | io_write_bytes: int = 0 |
| 186 | samples: int = 0 |
| 187 | |
| 188 | |
| 189 | class ProcessMonitor: |