Skip to content

Small instrumental tool collecting info on heap, stack and open sockets from a golang program

Notifications You must be signed in to change notification settings

localmeasure/proc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

proc

Zero-overhead instrumental tool collecting info on heap, stack and open sockets of a golang program.

Usage

Build and run this along with main go program, only support linux for now, example (datadog):

GOOS=linux go build -o datadog .

# serve is main program name
datadog --exec serve --name service-xyz 

This collector is small (3MB) and won't interfere with main runtime, it sits isolatedly to collect main program stats.

vs runtime.ReadMemStats: great detail but it stopTheWorld in main runtime to collect allocator stats

vs pprof.WriteHeapProfile: great tool but purely for profiling

About

Small instrumental tool collecting info on heap, stack and open sockets from a golang program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages