Commit 78615844 authored by Reilly Watson's avatar Reilly Watson Committed by Brad Fitzpatrick

doc: fix some typos in diagnostics.html

The section about custom pprof paths referenced the wrong path.

This also fixes a couple minor grammatical issues elsewhere in the doc.

Fixes #22832

Change-Id: I890cceb53a13c1958d9cf958c658ccfcbb6863d5
Reviewed-on: https://go-review.googlesource.com/79035Reviewed-by: default avatarAlberto Donizetti <alb.donizetti@gmail.com>
parent 40d8b4b2
...@@ -178,7 +178,7 @@ exported from the package. ...@@ -178,7 +178,7 @@ exported from the package.
<p> <p>
For example, the following example will serve the pprof.Profile For example, the following example will serve the pprof.Profile
handler on :7777 at /pprof/profile: handler on :7777 at /custom_debug_path/profile:
</p> </p>
<p> <p>
...@@ -389,7 +389,7 @@ allocated objects as well as goroutines, finalizers, and more.</li> ...@@ -389,7 +389,7 @@ allocated objects as well as goroutines, finalizers, and more.</li>
<li><code><a href="/pkg/runtime#NumGoroutine">runtime.NumGoroutine</a></code> <li><code><a href="/pkg/runtime#NumGoroutine">runtime.NumGoroutine</a></code>
returns the number of current goroutines. returns the number of current goroutines.
The value can be monitored to see whether enough goroutines are The value can be monitored to see whether enough goroutines are
utilized or to detect the goroutine leaks.</li> utilized, or to detect goroutine leaks.</li>
</ul> </ul>
<h3 id="execution-tracer">Execution tracer</h3> <h3 id="execution-tracer">Execution tracer</h3>
...@@ -433,7 +433,7 @@ environmental variable is set accordingly.</p> ...@@ -433,7 +433,7 @@ environmental variable is set accordingly.</p>
<ul> <ul>
<li>GODEBUG=gctrace=1 prints garbage collector events at <li>GODEBUG=gctrace=1 prints garbage collector events at
the event of collection, summarizing the amount of memory collected each collection, summarizing the amount of memory collected
and the length of the pause.</li> and the length of the pause.</li>
<li>GODEBUG=schedtrace=X prints scheduling events at every X milliseconds.</li> <li>GODEBUG=schedtrace=X prints scheduling events every X milliseconds.</li>
</ul> </ul>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment