Rewind 新增 rewind time 命令,用关键路径分析构建耗时
📊 核心数据与事实(2026-11-24):
Rewind 作者发布新命令 rewind time,可分析一次录制的关键路径,指出时间花在哪里以及什么能让运行更早结束。以 libuv 构建测试为例,单 CPU 耗时 78 秒,关键路径 47.4 秒,其中 67% 处于睡眠状态(epoll_pwait 23.1 秒、clock_nanosleep 8.53 秒)。
• 原文实测切片:💤💤💤 § Where the time goes Every rewind time starts with two numbers: $ rewind time 7a29e716 libuv-1.51.0 78.0 s elapsed on the VM's one CPU 47.4 s critical path: the least it can take on any number of CPUs 67% asleep (epoll_pwait 23.1 s, clock_…
• 原文实测切片:🤤 Here is the whole output for libuv: $ rewind time 7a29e716 libuv-1.51.0 78.0 s elapsed on the VM's one CPU 47.4 s critical path: the least it can take on any number of CPUs 67% asleep (epoll_pwait 23.1 s, clock_nanosleep 8.53 s, futex 100 ms)…
• 原文实测切片:so let’s dive into the hrtime test that spent 3.38 seconds asleep in clock_nanosleep : $ rewind time 7a29e716 --in hrtime lt-run-tests hrtime hrtime (pid 5412) 3.38 s on the critical path with what it started, 7% of the 47.4 s path 100% asleep…
💡 对独立开发者的启发:
1/ 一人公司最大的单点故障就是创始人自己的身体与精力——长期复利既靠财务系统,也靠生理资产。
2/ 看健康研究先核对样本量与研究设计(RCT 还是观察性相关),只把零成本、高确定性的睡眠与运动习惯纳入日常节奏。
3/ 用系统化节律代替透支熬夜,保证每天高质量决策窗口。(注:仅作循证文献整理,不替代临床医疗建议。)
📅 日期:2026-11-24(北京时间)
📰 信息源出处:Lobsters · fzakaria.com via kqr(fzakaria.com)
🔗 原文:https://fzakaria.com/2026/11/12/worshipping-at-the-altar-of-brendan-gregg
📡 归档:https://billionare.me/items/gv8hfdcx4ccfvf99q8rbjm5et
社媒成稿工作台 · 一键复制
飞书同步推送 · 含数据/日期/出处/启发