diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-02-06 05:03:22 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-02-06 05:03:22 +0000 |
commit | 8c5c44aa7ebe78bf12dc7b9a2f5e71f94feacc30 (patch) | |
tree | fb946aefe6bb8d802e6fb91e82ee3439ce470d9f /libgo/go | |
parent | c4feb478a6c0063b1f4b86d2a5d47b1a6a7f09f4 (diff) | |
download | gcc-8c5c44aa7ebe78bf12dc7b9a2f5e71f94feacc30.tar.gz |
runtime: Add memprofilerate to GODEBUG
Add memprofilerate as a value recognized
in the GODEBUG env var. The value provided
is used as the new setting for
runtime.MemProfileRate, allowing the user
to adjust memory profiling.
From-SVN: r220470
Diffstat (limited to 'libgo/go')
-rw-r--r-- | libgo/go/runtime/extern.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libgo/go/runtime/extern.go b/libgo/go/runtime/extern.go index 393984c7d57..3c3e427a05a 100644 --- a/libgo/go/runtime/extern.go +++ b/libgo/go/runtime/extern.go @@ -39,6 +39,10 @@ a comma-separated list of name=val pairs. Supported names are: gcdead: setting gcdead=1 causes the garbage collector to clobber all stack slots that it thinks are dead. + memprofilerate: setting memprofilerate=X changes the setting for + runtime.MemProfileRate. Refer to the description of this variable for how + it is used and its 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. |