trace

command
v0.0.0-...-58805e3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

README

Trace Profiling

The trace profiling can help identify the health of your programs. We will use a simple program to learn how to navigate and read some of the tracing information you can find in the trace tool.

Basic Skills

Review this post to gain basic skills.

go tool trace - Will Sewell

Trace Command

// Run the website and hit the /work handler.
// The hit <control><C> to shut the service down.

// Run the trace tool with the generated profile.
go tool trace trace.out

// Generate a CPU profile.
go tool trace -pprof=[net,syscall,sync,sched] trace.out > cpu.out

// View the profile.
go tool pprof ./trace cpu.out  

Navigating the tracing tool and interpreting the data requires in class instruction.

Code Review

Profiling Test (Go Playground)


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

Documentation

Overview

Sample program that performs a series of I/O related tasks to better understand tracing in Go.

Jump to

Keyboard shortcuts

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