-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
本地运行 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/