V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
dantifer
V2EX  ›  macOS

推荐一个 macos 下的小工具 free

  •  
  •   dantifer · 117 天前 · 2177 次点击
    这是一个创建于 117 天前的主题,其中的信息可能已经有所发展或是发生改变。

    哈哈,跟 linux 下面的 free 的作用一样

    虽然看起来很简单,但是在 macos 下还真没找着,只能自己写了一个

    https://github.com/zfdang/free-for-macOS

    见笑了

    9 条回复    2024-01-07 11:59:45 +08:00
    i8k
        1
    i8k  
       117 天前
    我很震惊,macos 如此精简吗?
    chendy
        2
    chendy  
       117 天前
    啊? MacOS 没有 free ?
    啊,MacOS 有活动监视器有 istat 啊
    dantifer
        3
    dantifer  
    OP
       117 天前
    @chendy 图形的 activity monitor 也可以啊,但是命令行貌似还真的没有...
    oxromantic
        4
    oxromantic  
       117 天前
    值得赞赏,不过意义不大,mac 下你可以用 htop / atop / top 基本满足需求了
    IgniteWhite
        5
    IgniteWhite  
       117 天前 via iPhone
    比较 UNIX 的方式是写一个 vm_stat 命令的 pipeline
    anonydmer
        6
    anonydmer  
       117 天前
    vm_stat
    dantifer
        7
    dantifer  
    OP
       117 天前
    @IgniteWhite 这个工具的方法,调用的是 vm_stat 使用的系统 api, 然后对结果进行细调,pipeline 有些实现起来还不太容易
    IgniteWhite
        8
    IgniteWhite  
       116 天前
    @dantifer 哇,那您这个水平是高的!
    dantifer
        9
    dantifer  
    OP
       111 天前
    还往大家能多给 github 点个关注,打算关注够了,就提交到 homebrew 官方的 formulae 里
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2981 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 08:26 · PVG 16:26 · LAX 01:26 · JFK 04:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.