blocking

command
v0.0.0-...-38a5715 Latest Latest
Warning

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

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

README

Blocking Profiling

Testing and Tracing allows us to see blocking profiles.

Running a Test Based Blocking Profile

We can get blocking profiles by running a test.

Generate a block profile from running the test.

$ go test -blockprofile block.out

Run the pprof tool to view the blocking profile.

$ go tool pprof block.out

Review the TestLatency function.

$ list TestLatency

Running a Trace

Once you have a test established you can use the -trace trace.out option with the go test tool.

Generate a trace from running the test.

$ go test -trace trace.out

Run the trace tool to review the trace.

$ go tool trace trace.out

No Extra links at this time.

Code Review

Blocking Trace (Go Playground)


All material is licensed under the Apache License Version 2.0, January 2004.

Documentation

Overview

Sample program to see what a trace will look like for basic channel latencies.

Jump to

Keyboard shortcuts

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