A tool for profiling the performance of Golang services.
Nowadays, in the microservices ecosystem, there are too many services run scattered on the server/cloud. Developers/Administrators will hardly to find out where is the bottleneck come from. Golang-Profiler is a solution for your business to easier to manage large amount of golang microservices.
$ go get -u github.com/ducbm95/goprofiler
- GetRealtimeStats
- GetHistorySecondStats
- GetHistoryMinuteStats
- GetHistoryHourStats
- GetAllApis
GET /api/realtime
GET /api/history/second
GET /api/history/minute
GET /api/history/hour
package main
import (
"github.com/ducbm95/golang-profiler/profiler/profiler"
)
func main() {
prof := profiler.GetProfilerImpl()
state, _ := prof.StartRecord("getFromDB")
// the business logic for `getFromDB`
prof.EndRecord("getFromDB", state)
}
- Implement a client that aggregate profiling data from multiple services to a single webpage.