[go: nahoru, domu]

Skip to content

dbudworth/greak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Goroutine Leak Detector

Simple library used to track before / after snapshots of running go routines, basically, a diff tool for running goroutines.

use:

package main

import (
	"fmt"
	"github.com/dbudworth/greak"
	"time"
)

func main() {
	base := greak.New()
	go time.Sleep(time.Second)
	after := base.Check()
	fmt.Println("Sleeping goroutine should show here\n", after)
}

This library parses the text output from runtime.Stack, if there is a better way, let me know.

About

Simplistic goroutine leak detector

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages