Skip to content

ximus/go-mdism

 
 

Repository files navigation

go-mdism

Profiling

Profiles can be generated in the google perftools format (.pprof). Profiles are generated using the go benchmarking facility:

go test -bench cpu
go test -bench mem

See benchmark_test.go to view the different profiles. By default profile results are output to tmp.

To visualize the profiles, you will need to install perftools (brew install google-perftools on osx).

go tool pprof --pdf (which go-mdism) tmp/cpu.pprof  > test.pdf

Todo

  • Make profiling simpler. Maybe have a makefile that allows for a simple make profile-cpu that automatically generates and opens the results in your browser.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 95.1%
  • Python 4.9%