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

Multiple profiler modes #3

Open
cristaloleg opened this issue Feb 9, 2022 · 0 comments
Open

Multiple profiler modes #3

cristaloleg opened this issue Feb 9, 2022 · 0 comments
Labels
feature New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@cristaloleg
Copy link
Member

This should work as expected: enable 2 profilers at once

func ExampleMultipleModes() {
	modes := []string{easypprof.HeapMode, easypprof.MutexMode}

	cfg := easypprof.Config{
		Mode: strings.Join(modes, ","),
	}
	defer easypprof.Start(cfg).Stop()

	// Output:
}
@cristaloleg cristaloleg added feature New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant