create a runtime CPU profile but to restrict the profile to a specific part
of the program. runtime/pprof - pausing CPU profiling
To create a runtime CPU profile for a specific part of a Go program, you
can use the `runtime/pprof` package. Here's how you can do it:
1. **Import the Package**: Add
Idea 0: Can you just click on the graphviz boxes in the pprof http page
for your section and then just show the source for only those?
Might give you a quick idea of which are the hottest spots only
among those func of interest.
Idea 1: Can you write a test or benchmark that just exercises the i
Upon more investigation, the issue was already reported in
2020: https://github.com/golang/go/issues/39748 but never fixed
There is a workaround with Hugo to prevent minification from removing
quotes.
Add this to hugo conf file:
minify:
tdewolff:
html:
keepQuotes: true
Le mardi 12
Much thanks for finding the issue !
The site is generated by Hugo, I'll try to fix the template.
Le mardi 12 novembre 2024 à 17:19:14 UTC+1, Sean Liao a écrit :
> No, it;s a bug similar to https://github.com/prettier/prettier/issues/8210
>
> `go` follows the redirects, but there are several el
No, it;s a bug similar to https://github.com/prettier/prettier/issues/8210
`go` follows the redirects, but there are several elements in your
html that cause parsing issues (unquoted attribute values containing
`/`).
>
>
>
>
>
>
See https://go.dev/play/p/XOe6Z1czYWe
go parser
https://go.g
update: I think I might I found the issue, the bot doesn't seems to follow
redirections (at least 301 ones).
Thanks to the option "-x" of go get:
go get -x nspeed.app/nspeed@v0.12.0
leads to
https://nspeed.app/nspeed?go-get=1
which redirects '301) to the same url but with trailing slash:
http
Hello,
I want to create a runtime CPU profile but to restrict the profile to a
specific part of the program. I currently have a way of taking a CPU
profile for the entire program so have experience with the runtime/pprof
package but this is a new requirement for me.
The 'section' to be profile
I have a custom url package nspeed.app/nspeed which redirects to
github.com/nspeed-app/nspeed (using a meta tag go-import):
https://github.com/nspeed-app/nspeed>
It was setup a year ago or so with version v0.11.0 and was working fine.
Today I updated some code and the github repo tag to v0.12.0