summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2010-01-11 17:35:06 -0800
committerRob Pike <r@golang.org>2010-01-11 17:35:06 -0800
commitb503634c7a880ff7442a3b20d6d5c9a9ed51c69c (patch)
tree4507d816eaed53d978672020e39998156c431eb6
parenta7b6f8f9722918fcfc8bc3e1b5efc898e2ebb373 (diff)
downloadgolang-b503634c7a880ff7442a3b20d6d5c9a9ed51c69c.tar.gz
delete debugging prints
R=rsc CC=golang-dev http://codereview.appspot.com/186079
-rw-r--r--src/cmd/prof/main.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/cmd/prof/main.c b/src/cmd/prof/main.c
index 9de563d90..b20dce459 100644
--- a/src/cmd/prof/main.c
+++ b/src/cmd/prof/main.c
@@ -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.