mirror of
https://github.com/golang/go
synced 2024-11-24 22:47:58 -07:00
delete debugging prints
R=rsc CC=golang-dev https://golang.org/cl/186079
This commit is contained in:
parent
937caef8fa
commit
ba5d0f2098
@ -704,7 +704,6 @@ dumppprof()
|
|||||||
continue;
|
continue;
|
||||||
ntrace++;
|
ntrace++;
|
||||||
}
|
}
|
||||||
print("%d traces\n", ntrace);
|
|
||||||
if(ntrace <= 0)
|
if(ntrace <= 0)
|
||||||
return;
|
return;
|
||||||
// Allocate and link the traces together.
|
// Allocate and link the traces together.
|
||||||
@ -722,14 +721,6 @@ dumppprof()
|
|||||||
p += n;
|
p += n;
|
||||||
}
|
}
|
||||||
trace[ntrace-1].next = nil;
|
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
|
// Eliminate duplicates. Lousy algorithm, although not as bad as it looks because
|
||||||
// the list collapses fast.
|
// the list collapses fast.
|
||||||
for(tp = trace; tp != nil; tp = tp->next) {
|
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.
|
// Write file.
|
||||||
// See http://code.google.com/p/google-perftools/source/browse/trunk/doc/cpuprofile-fileformat.html
|
// See http://code.google.com/p/google-perftools/source/browse/trunk/doc/cpuprofile-fileformat.html
|
||||||
// BUG: assumes little endian.
|
// BUG: assumes little endian.
|
||||||
|
Loading…
Reference in New Issue
Block a user