{"push_id":1230778989,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"ffe7a2fcd70cb731712a662daf2b11d3e3aae30a","before":"08b5a7908f4ab33ae3821caa7b9d010f616630da","commits":[{"sha":"ffe7a2fcd70cb731712a662daf2b11d3e3aae30a","author":{"name":"Jakob Borg","email":"17d3c251b013cdb52ecefc0d9ef1a254297af19e@nym.se"},"message":"cmd/syncthing, lib/config: Enable HTTP CPU/heap profile collection for users\n\nThis adds a config to enable debug functions on the API server, which is\nby default disabled. When enabled, the /rest/debug things become\navailable and become available without requiring a CSRF token (although\nauthentication is required if configured).\n\nWe also add a new endpoint /rest/debug/cpuprof?duration=15s (with the\nduration being configurable, defaulting to 30s). This runs a CPU profile\nfor the duration and returns it as a file. It sets headers so that a\nbrowser will save the file with an informative name.\n\nThe same is done for heap profiles, /rest/debug/heapprof, which does not\ntake any parameters.\n\nThe purpose of this is that any user can enable debugging under\nadvanced, then point their browser to the endpoint above and get a file\nthat contains a CPU or heap profile we can use, with the filename\ntelling us what version and architecture the profile is from.\n\nOn the command line, this becomes\n\n    curl -O -J http://localhost:8082/rest/debug/cpuprof?duration=5s\n    curl: Saved to filename\n    'syncthing-cpu-darwin-amd64-v0.14.3+4-g935bcc0-110307.pprof'\n\nGitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3467","distinct":true,"url":"https://api.github.com/repos/syncthing/syncthing/commits/ffe7a2fcd70cb731712a662daf2b11d3e3aae30a"}]}
{"actor":{"display_login":"st-review"}}