Skip to content

Fastapi 性能分析 #431

@twn39

Description

@twn39

主要是两个工具:

  1. https://github.com/benfred/py-spy
  2. https://github.com/gaogaotiantian/viztracer

优先考虑 viztracer, 图形和数据比较全面

使用:

viztracer --log_async uvicorn app.main:app

图形预览:

vizviewer /Users/xxx/program/result.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions