Skip to content

burntcarrot/roboprof

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

roboprof

Profile collection tool for Go programs. (WIP)

Usage

Initialize and start the collector with a FS storage:

c, err := collector.Start(
    collector.LogMode(collector.StdoutLog),
    collector.CollectionMode(collector.CollectionSerial),
    collector.WithCPUProfile(10*time.Second),
    collector.WithMemProfile(),
    collector.WithBlockProfile(10*time.Second),
    collector.WithGoroutineProfile(),
    collector.WithStorageConf(collector.StorageConfig{
        FSStorageConfig: collector.FSStorageConfig{
            Dir: "./profiles",
        },
    }),
    collector.WithTickInterval(time.Second*30),
)
if err != nil {
    panic(err)
}
defer c.Stop()

The collector will write these profiles to the ./profiles directory.

Status

In development.

License

Apache 2.0

About

Profile collection tool for Go programs. (WIP)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages