benchmark

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectProfileFunctions

func CollectProfileFunctions(args *args.CollectionArgs) error

CollectProfileFunctions collects all pprof information for each function, according to configurations.

func ProcessProfiles

func ProcessProfiles(benchmarkName string, profiles []string, tag string) error

ProcessProfiles collects all pprof info for a specific benchmark and its specified profiles.

func RunBenchmark

func RunBenchmark(benchmarkName string, profiles []string, count int, tag string) error

RunBenchmark runs a specific benchmark and collects all of its information.

func SetupDirectories

func SetupDirectories(tag string, benchmarks, profiles []string) error

SetupDirectories creates the structure of the library's output.

Types

type ProfilePaths

type ProfilePaths struct {
	// Desired file path for specified profile
	ProfileTextFile string

	// Desired bin path for specified profile
	ProfileBinaryFile string

	// Desired benchmark directory for function data collection
	FunctionDirectory string
}

ProfilePaths holds paths for profile text, binary, and output directories.

Jump to

Keyboard shortcuts

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