Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go,cmd/trace: document the trace command #11605

Closed
robpike opened this issue Jul 6, 2015 · 5 comments
Closed

cmd/go,cmd/trace: document the trace command #11605

robpike opened this issue Jul 6, 2015 · 5 comments

Comments

@robpike
Copy link
Contributor

robpike commented Jul 6, 2015

go help testflag does not mention the -trace flag

The output of go tool trace -help is unhelpful:

Usage of 'go tool trace':
Given a trace file produced by 'go test':
go test -trace=trace.out pkg

Open a web browser displaying trace:
go tool trace [flags] pkg.test trace.out

Flags:
-http=addr: HTTP service address (e.g., ':6060')

Also, shortly after the 1.5 release, there should be a blog post about the feature.

@robpike robpike added this to the Go1.5 milestone Jul 6, 2015
@dvyukov
Copy link
Member

dvyukov commented Jul 16, 2015

go help testflag does mention the -trace flag
I've tried to describe -trace everywhere where cpu and memory profiles are described.

go tool trace -help is roughly the same as to tool cover -help, except that trace has fewer flags than cover.

Is there anything else to fix?

@robpike
Copy link
Contributor Author

robpike commented Jul 17, 2015

I think it's all good now.

@robpike robpike closed this as completed Jul 17, 2015
@prashantv
Copy link
Contributor

Is there still plans to do a blog post on the trace tool? There's not much documentation on how to read the output from go tool trace.

@dvyukov
Copy link
Member

dvyukov commented Nov 20, 2015

@prashantv Do you mean the generated HTMLs?
There are still plans to write the blog, not nobody is actively working on this ATM.

@prashantv
Copy link
Contributor

Yes, the generated HTML / SVGs. Hope to see the blog post soon!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants