| ... | ... | @@ -122,7 +122,7 @@ pub const ResourceUsageStatistics = struct { |
| 122 | 122 | /// if available. |
| 123 | 123 | pub inline fn getMaxRss(rus: ResourceUsageStatistics) ?usize { |
| 124 | 124 | switch (native_os) { |
| 125 | | .freebsd, .illumos, .linux, .serenity => { |
| 125 | .dragonfly, .freebsd, .netbsd, .openbsd, .illumos, .linux, .serenity => { |
| 126 | 126 | if (rus.rusage) |ru| { |
| 127 | 127 | return @as(usize, @intCast(ru.maxrss)) * 1024; |
| 128 | 128 | } else { |
| ... | ... | @@ -149,7 +149,10 @@ pub const ResourceUsageStatistics = struct { |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | const rusage_init = switch (native_os) { |
| 152 | .dragonfly, |
| 152 | 153 | .freebsd, |
| 154 | .netbsd, |
| 155 | .openbsd, |
| 153 | 156 | .illumos, |
| 154 | 157 | .linux, |
| 155 | 158 | .serenity, |
| ... | ... | @@ -497,7 +500,10 @@ fn waitUnwrappedPosix(self: *ChildProcess) void { |
| 497 | 500 | const res: posix.WaitPidResult = res: { |
| 498 | 501 | if (self.request_resource_usage_statistics) { |
| 499 | 502 | switch (native_os) { |
| 503 | .dragonfly, |
| 500 | 504 | .freebsd, |
| 505 | .netbsd, |
| 506 | .openbsd, |
| 501 | 507 | .illumos, |
| 502 | 508 | .linux, |
| 503 | 509 | .serenity, |