Commit 2cf5bbd
authored
[onnxruntime_perf_test] Fix Mac peak working set size value (#27302)
### Description
<!-- Describe your changes. -->
On Mac, `ru_maxrss` is in bytes and on other platforms, it is in
kilobytes. This change sets a different multiplier value when
`defined(__APPLE__)`.
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
Fix peak working set size reporting on Mac.1 parent 5a9877a commit 2cf5bbd
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
| |||
0 commit comments