You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My project is over 1k lines of code so I'm not sure why user-defined functions aren't showing up
I also tried writing a random test file with a loop to try and see if I could get it working aside from the project. I also tried using blackbox to try and block out optimization.
use std::hint::black_box;
#[no_mangle]
pub fn sum() -> i32 {
let mut sum = 0;
for i in 0..1000 {
sum += std::hint::black_box(1);
}
return sum;
}
fn main() {
println!("Sum: {}", black_box(sum()));
}
I also checked and the file has debug info and is not stripped
$ file ./target/release/basic
./target/release/basic: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=e36e552eded3fad47af12fd3b0ab9049b0f0a524, for GNU/Linux 3.2.0, with debug_info, not stripped
I also tried running with dwarf which just produced a different flamegraph
I'm not really sure if I'm just missing a setting or something. But I can't seem to get flamegraph to display any user-defined functions. Is there something I'm not considering?
The text was updated successfully, but these errors were encountered:
I'm working on a project using flamegraph and for some reason I can't get Flamegraph to display user-defined functions. These are my configs
This is what I use to create the flamegraphs (in my base Cargo.toml, I cloned Flamegraph so I could access stackcollapse-perf.pl and flamegraph.pl)
My project is over 1k lines of code so I'm not sure why user-defined functions aren't showing up
I also tried writing a random test file with a loop to try and see if I could get it working aside from the project. I also tried using blackbox to try and block out optimization.
I also checked and the file has debug info and is not stripped
I also tried running with dwarf which just produced a different flamegraph
I'm not really sure if I'm just missing a setting or something. But I can't seem to get flamegraph to display any user-defined functions. Is there something I'm not considering?
The text was updated successfully, but these errors were encountered: