| 171 | } |
| 172 | |
| 173 | void dump(const env::Process& p, int indent) |
| 174 | { |
| 175 | log::debug("{}{}, pid={}, ppid={}", std::string(indent * 4, ' '), p.name(), p.pid(), |
| 176 | p.ppid()); |
| 177 | |
| 178 | for (auto&& c : p.children()) { |
| 179 | dump(c, indent + 1); |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | void dump(const env::Process& root) |
| 184 | { |