Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
058149f1
Commit
058149f1
authored
Aug 14, 2012
by
Dmitriy Vyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime/pprof: fix comments
R=golang-dev, iant CC=golang-dev
https://golang.org/cl/6460082
parent
aa9a81b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/pkg/runtime/pprof/pprof.go
src/pkg/runtime/pprof/pprof.go
+3
-3
No files found.
src/pkg/runtime/pprof/pprof.go
View file @
058149f1
...
...
@@ -23,7 +23,7 @@ import (
// BUG(rsc): A bug in the OS X Snow Leopard 64-bit kernel prevents
// CPU profiling from giving accurate results on that system.
//
A
Profile is a collection of stack traces showing the call sequences
// Profile is a collection of stack traces showing the call sequences
// that led to instances of a particular event, such as allocation.
// Packages can create and maintain their own profiles; the most common
// use is for tracking resources that must be explicitly closed, such as files
...
...
@@ -250,7 +250,7 @@ func (x stackProfile) Less(i, j int) bool {
return
len
(
t
)
<
len
(
u
)
}
//
A
countProfile is a set of stack traces to be printed as counts
// countProfile is a set of stack traces to be printed as counts
// grouped by stack trace. There are multiple implementations:
// all that matters is that we can find out how many traces there are
// and obtain each trace in turn.
...
...
@@ -356,7 +356,7 @@ func countHeap() int {
return
n
}
// writeHeap
Profile
writes the current runtime heap profile to w.
// writeHeap writes the current runtime heap profile to w.
func
writeHeap
(
w
io
.
Writer
,
debug
int
)
error
{
// Find out how many records there are (MemProfile(nil, true)),
// allocate that many records, and get the data.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment