Skip to content

Commit 4519b25

Browse files
author
William Kennedy
committed
Fixing documentation
1 parent a659630 commit 4519b25

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

topics/memory_trace/readme.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ There is no way to identify specifically in the code where a leak is occuring. W
88

99
To validate if a memory leak is truly occuring use the GODEBUG environmental variable. Setting gctrace=1 causes the garbage collector to emit a single line to standard error at each collection, summarizing the amount of memory collected and the length of the pause. Setting gctrace=2 emits the same summary but also repeats each collection. The format of this line is subject to change:
1010

11-
go build
12-
GODEBUG=gctrace=1 ./memory_trace
11+
export GODEBUG=gctrace=1
1312

1413
gc # @#s #%: #+...+# ms clock, #+...+# ms cpu, #->#-># MB, # MB goal, # P
1514

0 commit comments

Comments
 (0)