Skip to content

About

A really simple library to find out the performance of a Go application.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

Go Metrics Simple

This is a really simple project build to track the performance of your go program. No InfluxDB BS which I am sick of configuring. The objective is to run your program and the go metrics gets saved to the JSON file and after the run the simple program generates a static HTML.

based on the repo: github.com/tevjef/go-runtime-metrics

How to use it

  1. It's as easy as
import (
	metrics "github.com/Akilan1999/Go-Metrics-Simple"
)

func main() {
   // Add this to the starting point of your go program
   err := metrics.RunCollector(metrics.DefaultConfig)
   // <Your Go program here> 
   // Add this to the end point of your go program
	 metrics.ComputeDefaultFile()
}
  1. After your program is complete just open metrics.html file (The image below is just sample metrics of the /examplecode. :

Screenshot 2022-09-02 at 22 37 27

About

A really simple library to find out the performance of a Go application.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

⌂ 换网址