windirt
V2EX  ›  macOS

请问目前什么软件可以查看当前应用从启动开始读取了哪些文件

  •  
  •   windirt · Jul 28, 2016 · 3499 views
    This topic created in 3611 days ago, the information mentioned may be changed or developed.
    活动监视器取样里面的 打开的文件 并不是我需要的

    我想看的是监控一个 app 从启动到启动完成,依次读取了磁盘上的哪些文件
    Supplement 1  ·  Jul 29, 2016
    我后来又换了关键词搜索了一下,有如下几个方法

    一个是 sudo opensnoop -name APPNAME

    一个是 Instrument ,选择 File Activity

    两个方法都还行
    6 replies    2017-04-14 16:30:48 +08:00
    htfy96
        1
    htfy96  
       Jul 29, 2016 via Android
    linux 也许可以用 strace 或者 auditctl 实现 不知道 mac 下行不行
    chzyer
        2
    chzyer  
       Jul 29, 2016 via iPhone
    dtruss
    wzqcongcong
        3
    wzqcongcong  
       Jul 29, 2016
    fseventer, filemon
    wwthappy
        4
    wwthappy  
       Jul 31, 2016   ❤️ 1
    dtrace
    luojiyin87
        5
    luojiyin87  
       Apr 14, 2017
    OpenResty + Lua 不不是更方便。
    luojiyin87
        6
    luojiyin87  
       Apr 14, 2017
    不好意思 发错了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1259 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 23:44 · PVG 07:44 · LAX 16:44 · JFK 19:44
    ♥ Do have faith in what you're doing.