aboutsummaryrefslogtreecommitdiffstats
path: root/custom
diff options
context:
space:
mode:
authorJerry Jacobs <xor-gate@users.noreply.github.com>2018-08-07 20:49:18 +0200
committertechknowlogick <techknowlogick@users.noreply.github.com>2018-08-07 14:49:18 -0400
commitb1bc08e2686e2aa73aaf2108fdc50d9e700def38 (patch)
tree5f3f155e6290176c4e0b0aaa1cc557d87df56210 /custom
parented3589f4296a17ee201f44dcf6e87f8bd5741d09 (diff)
downloadgitea-b1bc08e2686e2aa73aaf2108fdc50d9e700def38.tar.gz
gitea-b1bc08e2686e2aa73aaf2108fdc50d9e700def38.zip
cmd/serve: pprof cpu and memory profile dumps to disk (#4560)
Diffstat (limited to 'custom')
-rw-r--r--custom/conf/app.ini.sample8
1 files changed, 7 insertions, 1 deletions
diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample
index a705981be0..682a03b8bf 100644
--- a/custom/conf/app.ini.sample
+++ b/custom/conf/app.ini.sample
@@ -187,6 +187,12 @@ STATIC_ROOT_PATH =
APP_DATA_PATH = data
; Application level GZIP support
ENABLE_GZIP = false
+; Application profiling (memory and cpu)
+; For "web" command it listens on localhost:6060
+; For "serve" command it dumps to disk at PPROF_DATA_PATH as (cpuprofile|memprofile)_<username>_<temporary id>
+ENABLE_PPROF = false
+; PPROF_DATA_PATH, use an absolute path when you start gitea as service
+PPROF_DATA_PATH = data/tmp/pprof
; Landing page, can be "home", "explore", or "organizations"
LANDING_PAGE = home
; Enables git-lfs support. true or false, default is false.
@@ -215,7 +221,7 @@ USER = root
PASSWD =
; For "postgres" only, either "disable", "require" or "verify-full"
SSL_MODE = disable
-; For "sqlite3" and "tidb", use absolute path when you start gitea as service
+; For "sqlite3" and "tidb", use an absolute path when you start gitea as service
PATH = data/gitea.db
; For "sqlite3" only. Query timeout
SQLITE_TIMEOUT = 500