ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
ur5us has joined #crystal-lang
<FromGitter> <mattrberry> Any idea why some of the debug symbols are listed as "??" ?
<FromGitter> <domgetter> What perf command did you use to make the perf.data file?
<FromGitter> <mattrberry> I'm using the default settings in the Hotspot profiler. I'll try to figure out what that passes to perf
<FromGitter> <mattrberry> `perf record -o /home/matt/perf.data --call-graph dwarf --sample-cpu`
ur5us has quit [Ping timeout: 250 seconds]
ejjfunky has joined #crystal-lang
ur5us has joined #crystal-lang
taupiqueur has joined #crystal-lang
ur5us has quit [Quit: Leaving]
ur5us has joined #crystal-lang
[R] has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 240 seconds]
<FromGitter> <naqvis> > Any idea why some of the debug symbols are listed as "??" ? ⏎ ⏎ might be from external libraries which aren't built with debug info.
<FromGitter> <naqvis> most probably from GLibC or similar deps
<yxhuvud> I use amd uprof for profiling. simple enough even if it isn't optimal.
taupiqueur has quit [Ping timeout: 240 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Quit: taupiqueur]
renich has joined #crystal-lang
renichbon has joined #crystal-lang
renich has quit [Ping timeout: 260 seconds]
<FromGitter> <zblesk:zble.sk> I've tried to set up debugging in vscode on ubuntu (on wsl). ⏎ I've installed `lldb`. The instructions use `lldb-mi`, but it's missing. ⏎ ⏎ In the bin folder, there are symlinks to various lldb tools and there is one for `lldb-mi`, but it seems to be pointing to a missing file. ⏎ ... [https://gitter.im/crystal-lang/crystal?at=623374368db2b95f0a709f78]
ejjfunky has quit [Ping timeout: 256 seconds]
<FromGitter> <domgetter> WSL1 or WSL2?
<FromGitter> <domgetter> (to check run `wsl -l -v` in command prompt)
<FromGitter> <zblesk:zble.sk> v 2
<FromGitter> <zblesk:zble.sk> (win 10)
<FromGitter> <zblesk:zble.sk> /usr/bin looks like this
<FromGitter> <zblesk:zble.sk> fwiw, running `lldb-mi` returns: ⏎ ⏎ Command 'lldb-mi' not found, but can be installed with: ⏎ sudo apt install lldb [https://gitter.im/crystal-lang/crystal?at=6233822599d94f5f0c568f4f]
<FromGitter> <zblesk:zble.sk> but that's what I've installed it with today. Re-running it doesn't change anything.
<FromGitter> <domgetter> what happens if you try to run `lldb-mi-10` ?
<FromGitter> <domgetter> @zblesk:zble.sk looks like you will have to build it from source: https://github.com/microsoft/vscode-cpptools/issues/5415#issuecomment-662603085
<FromGitter> <domgetter> `llbd-mi` doesn't ship with `llvm-toolchain since "it doesn't seem to be an official llvm project anymore" https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-10/+bug/1872387 (comment 4)
<FromGitter> <domgetter> This is for Ubuntu platforms. I can't speak to other distros (i.e. you may have luck with other WSLs, but you also might have more trouble)
ur5us has joined #crystal-lang
<FromGitter> <jfontan_gitlab> I find the options in linux for profiling not very useful
<FromGitter> <jfontan_gitlab> nor perf or callgrind can tell me wich code uses more time
<FromGitter> <jfontan_gitlab> I can only see library calls using time
ur5us has quit [Ping timeout: 240 seconds]