Skip to content

Pyroscope 性能分析 #437

@twn39

Description

@twn39

本地运行 server:

docker run -d --name pyroscope-server -p 4040:4040 grafana/pyroscope:latest server

代码配置:

import pyroscope


pyroscope.configure(
    application_name="vsip.app",  # 你的应用名称
    server_address="http://localhost:4040",  # Pyroscope 服务器地址 (根据你的实际部署修改)
    # 可选:添加全局标签
    tags={
        "region": "us-west-1",
    },
    # 可选:开启 GIL 性能分析 (如果需要)
    # enable_gil_profiling=True,
)

浏览器打开:http://localhost:4040/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions