diff options
| author | a73x <[email protected]> | 2024-09-02 18:32:22 +0100 |
|---|---|---|
| committer | a73x <[email protected]> | 2024-09-02 18:32:22 +0100 |
| commit | 94392c082192b1fc69fda2954e7b60eb0b741a72 (patch) | |
| tree | fd263673d577fd093162f74b1e6e08a2770a6b15 /content/posts/001.md | |
| parent | 4303b1c281ea814ca493534d12451c485a9a763d (diff) | |
feat(html): new css styling
Diffstat (limited to 'content/posts/001.md')
| -rw-r--r-- | content/posts/001.md | 12 |
1 files changed, 9 insertions, 3 deletions
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 <regex> -cpuprofile <file>` +```shell +go test -test=XXX -bench <regex> -cpuprofile <file> +``` ## memprofile -`go test -test=XXX -bench <regex> -memprofile <file> -benchmem` +```shell +go test -test=XXX -bench <regex> -memprofile <file> -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: |
