Simon Willison·· 1 天前AI 评分27
使用 Python 3.15 对 web-edit 进行性能剖析:火焰图与源码热力图
Profiling web-edit with Python 3.15: flame graphs and source heatmaps
AI 导读
使用 Python 3.15 内置的 `profiling.sampling` 对未修改的 web-edit 应用进行性能剖析发现,`preserve_endings` 占记录 CPU 栈的 64.8%,而 `SequenceMatcher.find_longest_match` 贡献了 38.3% 的叶子样本。
来源:Simon Willison · simonwillison.net