Closed davidkna closed 2 years ago
So would you accept a PR with initial swap support for Linux, macOS and Windows? I think putting it into a separate function best and maybe implementing TryFrom
between memory and swap types.
Yes, sure, let's see how that looks
In addition to
memory()
-usage also report swap usage. I would be willing to implement this myself.Would you prefer this as a separate
swap()
function or as a part ofmemory()
? Some platform-APIs will return memory and swap information together.