aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/extern.go
diff options
context:
space:
mode:
authorLynn Boger <laboger@linux.vnet.ibm.com>2015-01-28 12:28:59 -0600
committerIan Lance Taylor <iant@golang.org>2015-02-03 00:28:27 +0000
commit3c4be235be8dcd124fe8d536af3e422729a85785 (patch)
treecc500a79ee7662e1017265eb905c184e6b85a7f6 /src/runtime/extern.go
parent3c0fee10dbe82771dcaa956a95bdfabdced5fff7 (diff)
downloadgo-3c4be235be8dcd124fe8d536af3e422729a85785.tar.gz
go-3c4be235be8dcd124fe8d536af3e422729a85785.zip
runtime: Add memprofrate value to GODEBUG
Add memprofrate as a value recognized in GODEBUG. The value provided is used as the new setting for runtime.MemProfileRate, allowing the user to adjust memory profiling. Change-Id: If129a247683263b11e2dd42473cf9b31280543d5 Reviewed-on: https://go-review.googlesource.com/3450 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/extern.go')
-rw-r--r--src/runtime/extern.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/extern.go b/src/runtime/extern.go
index 58acbb3788..7141cd8a7a 100644
--- a/src/runtime/extern.go
+++ b/src/runtime/extern.go
@@ -45,6 +45,10 @@ a comma-separated list of name=val pairs. Supported names are:
This should only be used as a temporary workaround to diagnose buggy code.
The real fix is to not store integers in pointer-typed locations.
+ memprofrate: setting memprofrate=X will update the value of runtime.MemProfileRate.
+ When set to 0 memory profiling is disabled. Refer to the description of
+ MemProfileRate for the default value.
+
scheddetail: setting schedtrace=X and scheddetail=1 causes the scheduler to emit
detailed multiline info every X milliseconds, describing state of the scheduler,
processors, threads and goroutines.