Remarks: For more in profiling go programs visit the go blog.
Basic cpu and memory profiling
Using Benchmarks to Create Profile
Basic memory profiling
Set CPU/Block profile rate
Accessing Profile File