跳到正文
Simon Willison·· 1 天前AI 评分34

用 Python 3.15 分析 web-edit:flame graph 与源码 heatmap

Profiling web-edit with Python 3.15: flame graphs and source heatmaps

AI 导读

Python 3.15 内置的 `profiling.sampling` 模块对 web-edit 应用进行采样分析,发现 `preserve_endings` 占 15,296 个 CPU stack 中的 64.8%,`SequenceMatcher.find_longest_match` 占 leaf sample 的 38.3%。

来源:Simon Willison · simonwillison.net