benfred / py-spy

Sampling profiler for Python programs
MIT License
12.13k stars 401 forks source link

Add chrome trace format for recording samples #627

Closed andrewjcg closed 7 months ago

andrewjcg commented 8 months ago

This adds "chrometrace" as a new format for the "record" command, which serializes samples using chrome trace events: https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU