1
0
mirror of https://github.com/google/gops.git synced 2024-11-27 08:31:17 +02:00
Commit Graph

26 Commits

Author SHA1 Message Date
Glib Smaga
024cce5849 internal/cmd: Move code here from the main package 2022-08-30 14:31:29 +02:00
Tobias Klauser
f1b8f2b15c
Add prefix to profile dump file names (#101)
When getting profile dumps for further processing, it's hard to distinguish
CPU and heap profiles from the file names alone. Make this easier by
adding a prefix (cpu or heap) to the file name depending on the type of
profile.
2020-04-29 10:44:32 -07:00
Tobias Klauser
9025be33d5
Don't log path to profile dump twice (#98)
The path to the profile dump is already logged after writing the file
(cmd.go line 121). Remove the duplicate log line.

Co-authored-by: Emmanuel T Odeke <odeke@ualberta.ca>
2020-02-29 14:27:25 -08:00
JBD
89672dbe3c fix out of bounds panic 2018-07-11 12:15:44 -07:00
Michal Rostecki
60aa68d3cc cmd: Check error returned by GetPort (#83)
Before this change, error returned by internal.GetPort was
assigned to err variable, but this assignment was ineffectual
and error was ignored.
2018-07-11 10:12:00 -07:00
ferhat elmas
f4d96179f3 cmd: Use strings.Contains (#65)
- instead strings.Index check
2017-12-02 20:39:23 -07:00
Daniel Fireman
ed4f1f24a6 Introducing support to debug.SetGCPercent. (#56)
* Introducing support to debug.SetGCPercent.

 Fixes #8

On my I needed to augment a little bit the communication
protocol to add support to optional parameters.
2017-10-06 17:50:40 -06:00
JBD
25312cafb9 add missing license headers (#54) 2017-09-21 00:33:28 -06:00
Rene Zbinden
6865b1eab5 keep trace and profile files when go tool chain is not available (#52) 2017-09-15 15:03:29 -07:00
Cezar Sá Espinola
51dfb48038 Print filenames on client for pprof and trace dumps (#38) 2017-07-27 00:54:08 -07:00
Jaana Burcu Dogan
62f833fc9f remove dependencies to github.com/pkg/errors 2017-03-18 17:29:43 -07:00
Nick K
288e543fee add remote mode support (#30) 2017-03-02 11:51:14 -08:00
Jaana Burcu Dogan
671bd43984 gops: add Go execution trace support 2017-01-20 13:10:54 -08:00
Jaana Burcu Dogan
0e47ba961c rename vitals to stats 2017-01-03 01:15:13 -08:00
Jaana Burcu Dogan
3f697a7e37 avoid unnecessary cast to string 2017-01-03 00:56:20 -08:00
ferhat elmas
6302d55aaa Some drying in cmd calls (#20) 2016-11-28 10:45:02 -08:00
Jaana Burcu Dogan
3fdcb5ef7d add context to the error 2016-11-26 18:43:04 -08:00
Jaana Burcu Dogan
c0c78ac94f move config to internal 2016-11-14 23:07:31 -08:00
Alejandro Ramon Lopez del Huerto
982467e9e3 replace unix socket by tcp
Fixes #10.
2016-11-14 22:59:09 -08:00
Garrett Squire
4f88388a37 add runtime vitals (#9)
Fixes #5.
2016-11-14 11:07:06 -08:00
Jaana Burcu Dogan
9423f02414 introduce pprof-* subcommands 2016-11-13 21:50:30 -08:00
Jaana Burcu Dogan
564bb670d9 pass binary path to go tool pprof 2016-11-13 21:46:10 -08:00
Jaana Burcu Dogan
2a4aa38330 add TODO to symbolize profiles 2016-11-13 21:02:29 -08:00
Jaana Burcu Dogan
a0334e989c support cpu profile 2016-11-13 20:38:17 -08:00
Jaana Burcu Dogan
c3bb8a5007 add experimental pprof support 2016-11-13 20:04:40 -08:00
Jaana Burcu Dogan
0f5d168dd7 rename files 2016-11-11 19:57:09 -08:00