(cwd: string)
| 231 | } |
| 232 | |
| 233 | export function dockerStats(cwd: string): string { |
| 234 | return execSync( |
| 235 | 'docker compose stats --no-stream --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.MemPerc}}\t{{.NetIO}}"', |
| 236 | { cwd, stdio: 'pipe' }, |
| 237 | ).toString() |
| 238 | } |
| 239 | |
| 240 | export function dockerStatsForContainers(containerNames: string[]): string { |
| 241 | if (containerNames.length === 0) return '' |
no outgoing calls
no test coverage detected