From 94392c082192b1fc69fda2954e7b60eb0b741a72 Mon Sep 17 00:00:00 2001 From: a73x Date: Mon, 2 Sep 2024 18:32:22 +0100 Subject: feat(html): new css styling --- content/posts/001.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'content/posts/001.md') diff --git a/content/posts/001.md b/content/posts/001.md index 48ea720..fe1e680 100644 --- a/content/posts/001.md +++ b/content/posts/001.md @@ -10,15 +10,21 @@ tags: posts 6. goto 2. ## cpuprofile -`go test -test=XXX -bench -cpuprofile ` +```shell +go test -test=XXX -bench -cpuprofile +``` ## memprofile -`go test -test=XXX -bench -memprofile -benchmem` +```shell +go test -test=XXX -bench -memprofile -benchmem +``` ## pprof [pprof usage](https://github.com/google/pprof/blob/main/doc/README.md) -`go pprof -http=:8080 profile.pb.gz` +```shell +go pprof -http=:8080 profile.pb.gz +``` will show a web UI for analysing the profile. ### views: -- cgit v1.2.3