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

Keep trace and profile files when go tool chain is not available #52

Merged
merged 1 commit into from
Sep 15, 2017

Conversation

zbindenren
Copy link
Contributor

@zbindenren zbindenren commented Sep 15, 2017

On our servers we have the go tool chain not installed and the servers are behind a firewall (no tunnels possible).

With this pull request it would be possible to perform a trace or pprof and copy the trace file to a system where I have the go tool chain installed. There I could run go tool trace <tracefile> and analyze the trace file with the browser.

This could maybe also solve #44.

If the go tool chain is not available you get the following output:

$ gops pprof-heap localhost:41081            
Profile dump saved to: /tmp/profile936731714     
                                    
$ gops pprof-cpu localhost:41081                                                                                                   
Profiling CPU now, will take 30 secs...   
Profile dump saved to: /tmp/profile262095472    
                                     
$ gops trace localhost:41081                                                                                                       
Tracing now, will take 5 secs...          
Trace dump saved to: /tmp/trace774199372  

@rakyll rakyll merged commit 6865b1e into google:master Sep 15, 2017
@rakyll
Copy link
Collaborator

rakyll commented Sep 15, 2017

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants