weblist in go tool pprof does not work for me

249 views
Skip to first unread message

Jochen Voss

unread,
Jun 24, 2022, 8:27:11 AM6/24/22
to golang-nuts
Hello,

For a while, the "weblist" command in go tool pprof has been broken for me ("list" still works).  Is this a known issue?  What can I do to fix this?

What I am doing:

- I am using "go version go1.18.3 darwin/arm64" on a MacBook Pro (M1 Pro processor).
- I am profiling one of my unit tests using the following command:
    go test -run '^TestAll$' -cpuprofile cpu.out -memprofile mem.out
- I am calling pprof using the command
    go tool pprof sfnt.test cpu.out
- most commands seem to work, for example:
(pprof) top10
Showing nodes accounting for 20130ms, 86.54% of 23260ms total
Dropped 162 nodes (cum <= 116.30ms)
Showing top 10 nodes out of 124
      flat  flat%   sum%        cum   cum%
    6790ms 29.19% 29.19%     6790ms 29.19%  runtime.madvise
    4840ms 20.81% 50.00%     4840ms 20.81%  syscall.syscall6
    1910ms  8.21% 58.21%     1910ms  8.21%  runtime.usleep
    1740ms  7.48% 65.69%     1740ms  7.48%  runtime.pthread_kill
    1710ms  7.35% 73.04%     1710ms  7.35%  runtime.pthread_cond_wait
     990ms  4.26% 77.30%      990ms  4.26%  runtime.kevent
     770ms  3.31% 80.61%     2020ms  8.68%  seehuhn.de/go/pdf/font/cff.decodeCharString
     540ms  2.32% 82.93%     1440ms  6.19%  runtime.scanobject
     530ms  2.28% 85.21%      530ms  2.28%  runtime.pthread_cond_signal
     310ms  1.33% 86.54%     1040ms  4.47%  runtime.mallocgc
- "list" works, for example I get the expected output for list cff.decodeCharString
- "weblist" does not work.  If I call weblist cff.decodeCharString the web browser opens but shows a page containing only the following five lines of text, and no listing:

     File: sfnt.test
     Type: cpu
     Time: Jun 24, 2022 at 1:09pm (BST)
     Duration: 19.03s, Total samples = 23.26s (122.20%)
     Total: 23.26s

Am I doing anything wrong?  I didn't find any reports of similar problems on Google, so maybe this is just some oddity of my setup or me doing something silly?

All the best,
Jochen

Sergey Gorlov

unread,
Sep 26, 2023, 10:22:33 AM9/26/23
to golang-nuts
Hello,

Did you find a solution to this problem? I have the same problem with weblist.

All the best,
Sergey

пятница, 24 июня 2022 г. в 15:27:11 UTC+3, Jochen Voss:

Jochen Voss

unread,
Sep 27, 2023, 5:15:03 PM9/27/23
to Sergey Gorlov, golang-nuts
On 26 Sep 2023, at 6:20, Sergey Gorlov wrote:
> Did you find a solution to this problem? I have the same problem with
> weblist.

No, I didn't. I think it's just broken. If I find time, I'll submit a bug report (unless somebody beats me to it).

All the best,
Jochen
--
http://seehuhn.de/
Reply all
Reply to author
Forward
0 new messages