Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
ba5d0f20
Commit
ba5d0f20
authored
Jan 12, 2010
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete debugging prints
R=rsc CC=golang-dev
https://golang.org/cl/186079
parent
937caef8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
main.c
src/cmd/prof/main.c
+0
-16
No files found.
src/cmd/prof/main.c
View file @
ba5d0f20
...
...
@@ -704,7 +704,6 @@ dumppprof()
continue
;
ntrace
++
;
}
print
(
"%d traces
\n
"
,
ntrace
);
if
(
ntrace
<=
0
)
return
;
// Allocate and link the traces together.
...
...
@@ -722,14 +721,6 @@ dumppprof()
p
+=
n
;
}
trace
[
ntrace
-
1
].
next
=
nil
;
if
(
0
)
for
(
tp
=
trace
;
tp
!=
nil
;
tp
=
tp
->
next
)
{
print
(
"%d: "
,
tp
->
npc
);
for
(
i
=
0
;
i
<
tp
->
npc
;
i
++
)
{
print
(
"%llx "
,
tp
->
pc
[
i
]);
}
print
(
"
\n
"
);
}
// Eliminate duplicates. Lousy algorithm, although not as bad as it looks because
// the list collapses fast.
for
(
tp
=
trace
;
tp
!=
nil
;
tp
=
tp
->
next
)
{
...
...
@@ -743,13 +734,6 @@ if(0)
}
}
}
for
(
tp
=
trace
;
tp
!=
nil
;
tp
=
tp
->
next
)
{
print
(
"[%d] %d: "
,
tp
->
count
,
tp
->
npc
);
for
(
i
=
0
;
i
<
tp
->
npc
;
i
++
)
{
print
(
"%llx "
,
tp
->
pc
[
i
]);
}
print
(
"
\n
"
);
}
// Write file.
// See http://code.google.com/p/google-perftools/source/browse/trunk/doc/cpuprofile-fileformat.html
// BUG: assumes little endian.
...
...
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