Skip to content

quick-xml demangling#424

Closed
cjgatto wants to merge 1 commit into
flamegraph-rs:mainfrom
cjgatto:fix-xctrace-demangle
Closed

quick-xml demangling#424
cjgatto wants to merge 1 commit into
flamegraph-rs:mainfrom
cjgatto:fix-xctrace-demangle

Conversation

@cjgatto
Copy link
Copy Markdown
Contributor

@cjgatto cjgatto commented Jan 3, 2026

Encountered same "invalid xml from xctrace" detailed at #421

Stole the fix f82bc92

Copy link
Copy Markdown
Contributor

@djc djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's some early feedback. I'll likely have more when this is addressed.

Comment thread src/lib.rs
}
}

fn demangle_stream<R: BufRead, W: Write>(input: &mut R, output: &mut W) -> std::io::Result<()> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should only do this on macOS when the xctrace backend is used.

Comment thread src/lib.rs
Ok(())
}

fn demangle_element(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: inline this function.

Comment thread src/lib.rs
Ok(new_element)
}

fn demangle_attribute(attribute: &mut quick_xml::events::attributes::Attribute) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: inline this function.

@paomian
Copy link
Copy Markdown
Contributor

paomian commented Jan 26, 2026

I have made the revisions cjgatto#1 according to the feedback. I hope this issue can be fixed quickly.

@paomian paomian mentioned this pull request Feb 26, 2026
@djc
Copy link
Copy Markdown
Contributor

djc commented Apr 8, 2026

Merged via

Thanks!

@djc djc closed this Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants