哈哈,跟 linux 下面的 free 的作用一样
虽然看起来很简单,但是在 macos 下还真没找着,只能自己写了一个
https://github.com/zfdang/free-for-macOS
见笑了
![]() | 1 i8k 2023-12-31 20:15:08 +08:00 我很震惊,macos 如此精简吗? |
![]() | 2 chendy 2023-12-31 20:28:13 +08:00 啊? MacOS 没有 free ? 啊,MacOS 有活动监视器有 istat 啊 |
4 oxromantic 2023-12-31 22:20:25 +08:00 值得赞赏,不过意义不大,mac 下你可以用 htop / atop / top 基本满足需求了 |
![]() | 5 IgniteWhite 2024-01-01 10:30:30 +08:00 via iPhone 比较 UNIX 的方式是写一个 vm_stat 命令的 pipeline |
6 anonydmer 2024-01-01 10:35:11 +08:00 vm_stat |
7 dantifer OP @IgniteWhite 这个工具的方法,调用的是 vm_stat 使用的系统 api, 然后对结果进行细调,pipeline 有些实现起来还不太容易 |
![]() | 8 IgniteWhite 2024-01-01 20:40:48 +08:00 @dantifer 哇,那您这个水平是高的! |
9 dantifer OP 还往大家能多给 github 点个关注,打算关注够了,就提交到 homebrew 官方的 formulae 里 |