Created attachment 115360 [details] Use inlined frames in Massif XTree output DHAT can show inlined frames, but Massif currently can't. The attached patch fixes this. I have tested that it works on the Rust compiler, which was my motivating example: see https://github.com/rust-lang/rust/issues/52028#issuecomment-402409368, especially the part "Massif doesn't get great stack traces due to inlining, but DHAT does a better job by using debuginfo."
Thanks for the patch, which after a quick reading looks ok to me. I will take a more in depth look at it. (wondering if it would not be interesting to also do that for the xtree kcachegrind output format, and also the output as produced by callgrind). Philippe
Any reason not to land this? I think it's ready. It's a simple change and a clear improvement.
(In reply to Nick Nethercote from comment #2) > Any reason not to land this? I think it's ready. It's a simple change and a > clear improvement. Sorry, I intended to take a look at it, but had no time. I will take a look this week-end, and so patch should be pushed very soon now.
Patch (with some little modifications) pushed as 66b5a4e9c Thanks for the patch Philippe