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

feat(cmd/ndt7-client): support gathering profile info #60

Merged
merged 3 commits into from
Jun 7, 2021

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented May 22, 2021

Useful to investigate #59.


This change is Reviewable

Copy link
Contributor

@robertodauria robertodauria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few little things, then :lgtm: - thanks!

Reviewed 4 of 4 files at r1.
Reviewable status: 1 change requests, 0 of 1 approvals obtained (waiting on @bassosimone)


cmd/ndt7-client/main.go, line 41 at r1 (raw file):

// download.
//
// The `-cpuprofile` flag defines the file where to write a CPU profile

s/cpuprofile/profile/


cmd/ndt7-client/main.go, line 120 at r1 (raw file):

var (
	flagProfile = flag.String("profile", "",
		"file where to store cpuprofile (see https://blog.golang.org/pprof)")

s/cpuprofile/pprof profile/


cmd/ndt7-client/main.go, line 284 at r1 (raw file):

	flag.Parse()

	if *flagProfile != "" {

Could we add a warning that enabling the profiler may impact performance?

Copy link
Contributor Author

@bassosimone bassosimone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

applied the required changes

cmd/ndt7-client/main.go Outdated Show resolved Hide resolved
cmd/ndt7-client/main.go Outdated Show resolved Hide resolved
cmd/ndt7-client/main.go Show resolved Hide resolved
cmd/ndt7-client/main.go Outdated Show resolved Hide resolved
@robertodauria robertodauria self-requested a review June 7, 2021 11:51
Copy link
Contributor

@robertodauria robertodauria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! 1 of 1 approvals obtained (waiting on @bassosimone)

@robertodauria robertodauria merged commit cb3d167 into m-lab:master Jun 7, 2021
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.

2 participants