跳到正文
Simon Willison·· 14 天前AI 评分35

使用 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` 函数占据了 64.8% 的 CPU 堆栈,而 `SequenceMatcher.find_longest_match` 贡献了 38.3% 的叶子采样。

来源:Simon Willison · simonwillison.net