Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.
/ swat Public archive

Tool for debugging and analyzing programs, in development and production.

License

Notifications You must be signed in to change notification settings

mixer/swat

Repository files navigation

swat GoDoc Build Status

A general-purpose tool for debugging and analyzing programs, in development and production. Example:

package main

import (
    "os/syscall"
    "os"
    "time"
    "github.com/WatchBeam/swat"
)

func main() {
    s := swat.Start(
        swat.DumpGoroutine().
            OnSignal(syscall.SIGUSR1).
            ToWriter(os.Stdout),
        swat.DumpHeap().
            After(5*time.Minute).
            Every(time.Second).
            For(60*time.Second).
            ToFile("record.csv"),
    )
    defer s.End()

    // do the necessary!
}

About

Tool for debugging and analyzing programs, in development and production.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages