plasma-umass / coz

Coz: Causal Profiling
Other
4.03k stars 160 forks source link

Can't locate generic/monomorphized lines of code #198

Open LoganDark opened 2 years ago

LoganDark commented 2 years ago

Hey, I'm trying to use coz to optimize an algorithm written in Rust, but I keep having issues.

There are a couple layers of indirection so coz keeps saying that the program would be faster if the function call to my algorithm was faster. Which is true but useless information. I tried including only the source file where the algorithm is defined, but apparently that causes coz to never find any lines to run experiments on.

This is confusing.

This could be an issue with rustc generating incorrect debug information but I don't know if it is, so I'm opening the issue here first.