profiles

package
v0.0.0-...-60cefeb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collect

func Collect(ctx context.Context, baseURL string, profiles []string, ignoreNetworkErrors bool) (map[string][]byte, error)

Collect will collect all provided profiles.

You can add query parameters to profile like so:

Collect(ctx, "http://localhost:8080", []string{"trace?seconds=5"})

func Dump

func Dump(ctx context.Context, dir, base string, profiles map[string][]byte) error

Dump will dump every profile into given folder following this structure: - provided directory

  • host port
  • YYYY MM DD
  • HH MM SS
  • profile

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL