From f1afae47d45b1a5720120b78a6b7f5480457ff4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 30 Sep 2024 18:03:15 +0200 Subject: [PATCH] Website: document how to run the Flamenco Manager profiler It's basic, but at least it saves me from finding the info again. --- .../content/development/profiling/_index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 web/project-website/content/development/profiling/_index.md diff --git a/web/project-website/content/development/profiling/_index.md b/web/project-website/content/development/profiling/_index.md new file mode 100644 index 00000000..d98c38c6 --- /dev/null +++ b/web/project-website/content/development/profiling/_index.md @@ -0,0 +1,11 @@ +--- +title: Profiling Flamenco Manager +weight: 50 +--- + +Flamenco Manager has built-in profiling support. To get a call graph with timing information, follow these steps: + +1. Run `flamenco-manager -pprof` to enable its profiler HTTP endpoint. +2. Run `go tool pprof -http localhost:8082 'http://localhost:8080/debug/pprof/profile?seconds=60'`. +3. Do whatever you want to profile with Flamenco. +4. The tool will open a browser to show the call graph when it's done gathering the info.