Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.23 KB

README.md

File metadata and controls

24 lines (19 loc) · 1.23 KB

Gitpod ready-to-code Coverage Status GitHub Workflow Status Quality Gate Status

blackjack

Console based blackjack game.

To run the CPU and memory profiling, run the tests with the cpuprofile and memprofile flags.

# Assuming we are already in the directory with go.mod
go test -benchmem -run=^$ blackjack -bench "^(BenchmarkStartGame)$" -benchmem -cpuprofile cpu.out -memprofile mem.out

To view the profile data in browser, run the below command.

go tool pprof -http=:8080 cpu.out
go tool pprof -http=:8080 mem.out

gitpod known issues

  • Run gp env PIP_USER=false so that pre-commit does not fail with error Can not perform a '--user' install. Related to gitpod-io/gitpod#1997