summaryrefslogtreecommitdiff
path: root/src/cmd/prof
AgeCommit message (Collapse)AuthorFilesLines
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý4-0/+5956
2011-09-13Imported Upstream version 60Ondřej Surý4-5956/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-3/+0
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-45/+242
2011-05-04Imported Upstream version 57upstream/57Ondřej Surý1-4/+5
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-3/+20
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý3-44/+58
2010-06-20undo changes accidentally included in 09c5add99d50Russ Cox1-2/+4
R=ken2 CC=golang-dev http://codereview.appspot.com/1736042
2010-06-20gc: better error messages for interface failures, conversionsRuss Cox1-4/+2
x.go:13: cannot use t (type T) as type Reader in assignment: T does not implement Reader (Read method requires pointer receiver) x.go:19: cannot use q (type Q) as type Reader in assignment: Q does not implement Reader (missing Read method) have read() want Read() x.go:22: cannot use z (type int) as type Reader in assignment: int does not implement Reader (missing Read method) x.go:24: too many arguments to conversion to complex: complex(1, 3) R=ken2 CC=golang-dev http://codereview.appspot.com/1736041
2010-04-09runtime: delete malx, skip_depth argument to mallocRuss Cox1-0/+28
remove internal functions from traces in gopprof instead. R=r CC=golang-dev http://codereview.appspot.com/855046
2010-03-26fix buildRuss Cox1-1/+1
TBR=r CC=golang-dev http://codereview.appspot.com/785041
2010-03-26prof: install gopprof tooRuss Cox2-1/+4725
This is a modified version of the open source pprof from code.google.com/p/google-perftools. That version is likely to catch up to this one, but it's still useful to ship our own copy since we only need the one script from that project, not all the C++ libraries. R=r CC=golang-dev http://codereview.appspot.com/783041
2010-01-11delete debugging printsRob Pike1-1/+0
R=rsc CC=golang-dev http://codereview.appspot.com/186079
2010-01-11delete debugging printsRob Pike1-16/+0
R=rsc CC=golang-dev http://codereview.appspot.com/186079
2010-01-11add pprof output format to prof.Rob Pike2-19/+280
amd64 linux only. R=rsc CC=golang-dev http://codereview.appspot.com/186077
2009-12-24make 6prof (sic) architecture-independent.Rob Pike1-38/+192
for now, it's amd64 and 386 only but it's trivial to add more. Fixes issue 385. (why couldn't it have been issue 386?) tested for amd64 and 386 on darwin. R=rsc CC=golang-dev http://codereview.appspot.com/182043
2009-12-01a couple of usage fixups in profRob Pike1-1/+7
R=rsc http://codereview.appspot.com/161050
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia1-2/+2
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox <rsc@golang.org>
2009-11-17FreeBSD-specific porting work.Devon H. O'Dell1-0/+1
cgo/libmach remain unimplemented. However, compilers, runtime, and packages are 100%. I still need to go through and implement missing syscalls (at least make sure they're all listed), but for all shipped functionality, this is done. Ship! ;) R=rsc, VenkateshSrinivas http://codereview.appspot.com/152142 Committer: Russ Cox <rsc@golang.org>
2009-11-04stylistic issues in a couple of cmd docsRob Pike1-1/+1
R=rsc http://go/go-review/1017028
2009-11-03more command documentation, including nm and profRob Pike1-0/+43
R=rsc http://go/go-review/1017022
2009-10-03clean moreRuss Cox1-1/+1
R=r DELTA=40 (9 added, 3 deleted, 28 changed) OCL=35277 CL=35305
2009-09-22use $(shell uname) instead of $GOOS whenRuss Cox1-1/+1
deciding what the host process support is. this makes a cross-compiling (e.g., GOOS=nacl) build still generate valid host debugger binaries. R=r DELTA=5 (0 added, 0 deleted, 5 changed) OCL=34878 CL=34889
2009-08-14rename libmach_amd64 libmachRob Pike2-2/+2
R=rsc OCL=33273 CL=33276
2009-08-03print profile to stderr. sheesh.Rob Pike1-40/+41
R=rsc DELTA=40 (0 added, 0 deleted, 40 changed) OCL=32694 CL=32698
2009-07-28Support use of $GOBINDIR to override $HOME/binPhil Pennock1-1/+1
R=r,gri,rsc APPROVED=rsc DELTA=53 (12 added, 6 deleted, 35 changed) OCL=31822 CL=32282
2009-02-03libmach:Russ Cox1-127/+237
* heuristic to go farther during stack traces. * significantly improved Linux thread handing. acid: * update to new libmach interface. prof: * use new libmach interface. * multiple thread support (derived from Rob's copy). * first steps toward pprof-like graphs: keep counters indexed by pc,callerpc pairs. R=r DELTA=909 (576 added, 123 deleted, 210 changed) OCL=24240 CL=24259
2008-11-18add build step to install debuggers setgid procmod.Russ Cox1-1/+8
they have to go in /usr/local/bin because the setgid bit is ignored in /Users. R=r DELTA=54 (49 added, 0 deleted, 5 changed) OCL=19424 CL=19463
2008-11-14add cov, prof to default build; clean up compiler warningsRuss Cox1-3/+3
R=r DELTA=8 (1 added, 0 deleted, 7 changed) OCL=19245 CL=19245
2008-11-14code coverage toolRuss Cox1-1/+1
$ 6cov -g 235.go 6.out 235.go:62,62 main·main 0x27c9-0x2829 MOVL $main·.stringo(SB),AX 235.go:30,30 main·main 0x2856-0x285e ADDQ $6c0,SP $ and assorted fixes. R=r DELTA=743 (732 added, 8 deleted, 3 changed) OCL=19226 CL=19243
2008-11-10fix error-handling bug.Rob Pike1-1/+2
add newline after stack traces. R=rsc DELTA=3 (2 added, 1 deleted, 0 changed) OCL=18945 CL=18953
2008-11-10fix start/stop bug in prof.Rob Pike1-6/+8
also only time-limit if a value is provided. R=rsc DELTA=9 (4 added, 2 deleted, 3 changed) OCL=18917 CL=18920
2008-10-03allow prof to launch the processRob Pike1-2/+32
R=rsc DELTA=32 (30 added, 0 deleted, 2 changed) OCL=16440 CL=16445
2008-09-25prototype nitRuss Cox1-1/+1
R=r DELTA=1 (0 added, 0 deleted, 1 changed) OCL=15906 CL=15909
2008-09-24make prof work on linuxRuss Cox1-6/+16
R=r DELTA=18 (11 added, 1 deleted, 6 changed) OCL=15752 CL=15755
2008-09-24bug: updated wrong counter when combining valuesRob Pike1-1/+1
R=rsc OCL=15751 CL=15751
2008-09-23rudimentary real-time profiler.Rob Pike2-0/+369
tested on mac only. output like this: tubenose=% sudo go/src/cmd/prof/6prof -p 71839 -c -d 10 63.93% mach_semaphore_signal 4.64% sys·chansend1 3.93% chanrecv 2.86% semrelease 1.43% cas 1.43% sendchan 1.07% xadd 0.71% main·f 0.71% scheduler 0.71% sys·gosched 0.71% dequeue ... R=rsc DELTA=361 (361 added, 0 deleted, 0 changed) OCL=15731 CL=15736