forgejo/templates
zeripath c88547ce71
Add Goroutine stack inspector to admin/monitor (#19207)
Continues on from #19202.

Following the addition of pprof labels we can now more easily understand the relationship between a goroutine and the requests that spawn them. 

This PR takes advantage of the labels and adds a few others, then provides a mechanism for the monitoring page to query the pprof goroutine profile.

The binary profile that results from this profile is immediately piped in to the google library for parsing this and then stack traces are formed for the goroutines.

If the goroutine is within a context or has been created from a goroutine within a process context it will acquire the process description labels for that process. 

The goroutines are mapped with there associate pids and any that do not have an associated pid are placed in a group at the bottom as unbound.

In this way we should be able to more easily examine goroutines that have been stuck.

A manager command `gitea manager processes` is also provided that can export the processes (with or without stacktraces) to the command line.

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-03-31 19:01:43 +02:00
..
admin Add Goroutine stack inspector to admin/monitor (#19207) 2022-03-31 19:01:43 +02:00
api/packages/pypi Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
base Show messages for users if the ROOT_URL is wrong, show JavaScript errors (#18971) 2022-03-30 13:52:24 +08:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
explore Allow to filter repositories by language in explore, user and organization repositories lists (#18430) 2022-01-28 13:29:04 +02:00
mail Try to prevent autolinking of displaynames by email readers (#19169) 2022-03-23 12:34:20 +00:00
org Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
package Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
repo Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
shared Refactor i18n, use Locale to provide i18n/translation related functions (#18648) 2022-02-08 11:02:30 +08:00
status Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
swagger Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
user Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
home.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00
install.tmpl Refactor install page (db type) (#17919) 2021-12-07 13:44:08 +08:00
post-install.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00