Raise awareness of slow functions
Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.markdown
yellow.go
yellow_test.go

README.markdown

Yellow helps raise awareness of functions that are taking longer than expected.

In the most simple cases, you can log slow tasks (with whatever context you want to supply), but you can also react to slowness by having code perform some task on timeout. See the documentation for details and examples.

Example

Basic usage (send slow invocations to the standard logger):

func ExampleDeadlineLog() {
	defer DeadlineLog(time.Second, "Doing thing %d", 1).Done()
	// do something that should take less than a second, log
	// otherwise
}

Coverage Status