]> Cypherpunks repositories - gostls13.git/commitdiff
delete debugging prints
authorRob Pike <r@golang.org>
Tue, 12 Jan 2010 01:35:06 +0000 (17:35 -0800)
committerRob Pike <r@golang.org>
Tue, 12 Jan 2010 01:35:06 +0000 (17:35 -0800)
R=rsc
CC=golang-dev
https://golang.org/cl/186079

src/cmd/prof/main.c

index 9de563d905f8269cbf7cea263e9e4a3b8d180d24..b20dce45925c7df293f77dc4cef80a26deac7c65 100644 (file)
@@ -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.