play

command module
v0.0.0-...-e24673e Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

README

Perf analysis notes

# Gather some cpu stat
go test -bench=. ./sort -benchmem -cpuprofile cpu.out
# This command creates two files:
# 1. sort.test - compilated binary
# 2. cpu.out - runtime statistics

# View function code anotated with time costs
go tool pprof -list InsertionSort sort.test cpu.out

# View assembly code of the function
go tool objdump -s sort.InsertionSort\\[go.shape.int32 -S sort.test

# Debug SSA optimisations
GOSSAFUNC=main go build && open ./ssa.html

# See what Go threads are doing
strace -o /tmp/trace -ff ./bin

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
assist
aya Module
stracy module
internal/data
Code generated; DO NOT EDIT.
Code generated; DO NOT EDIT.

Jump to

Keyboard shortcuts

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