Stream: beginners

Topic: profiling problems


view this post on Zulip Artur Swiderski (Dec 18 2023 at 14:23):

hi I have couple of problems with profiling
First of all when I compile with flag --profiling it seems to have no impact on binary size

roc  build  --profiling    eomething.roc

when I use valgring/callgrind tool there are no names included in graph so I can't figure out which function does what. When I try to use perf and I generate report it seems to not include the functions names as well. Flamegraf is crashing in that scenario.

Why vagrind is not showing function names it would be not the case with c++ application ?? Why in perf report I don't see function names either ?

view this post on Zulip Artur Swiderski (Dec 18 2023 at 14:35):

ok it works for legacy linker

roc  build   something.roc  --linker=legacy  --profiling

view this post on Zulip Anton (Dec 18 2023 at 15:08):

Brendan presented on profiling at the last meetup, the whole thing was recorded. He also showed how to make a flamegraph.


Last updated: Jul 06 2025 at 12:14 UTC