Skip to content

Update Trace Event reader to handle stable diffusion traces#133

Open
MatthewKhouzam wants to merge 3 commits intoeclipse-tracecompass-incubator:masterfrom
MatthewKhouzam:trace-event-stable-diffusion
Open

Update Trace Event reader to handle stable diffusion traces#133
MatthewKhouzam wants to merge 3 commits intoeclipse-tracecompass-incubator:masterfrom
MatthewKhouzam:trace-event-stable-diffusion

Conversation

@MatthewKhouzam
Copy link
Copy Markdown
Contributor

@MatthewKhouzam MatthewKhouzam commented Dec 4, 2024

  • Handle if the "traceEvents" tag is lower in the file.
  • Handle if the TID is not an integer. It appears to be out of spec, but stable diffusion does it that way.

Pertains to lllyasviel/stable-diffusion-webui-forge#716

Depends on eclipse-tracecompass/org.eclipse.tracecompass#196

@MatthewKhouzam MatthewKhouzam self-assigned this Dec 4, 2024
@MatthewKhouzam MatthewKhouzam requested a review from arfio December 4, 2024 03:34
@MatthewKhouzam MatthewKhouzam changed the title Trace event stable diffusion Update Trace Event reader to handle stable diffusion traces Dec 4, 2024
if (tid instanceof Integer) {
return (Integer) tid;
}
if (tid != null) {
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.

Not knowing the traces, in this case is tid a name or a number string? if it is a number string you could do parseInt() or something like that.

Add a comment why it's done like that.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think the new way is better.

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Store initial entries as properties.

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Fix test, it was reading the wrong value before.

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
@MatthewKhouzam MatthewKhouzam force-pushed the trace-event-stable-diffusion branch from d389ef2 to 99d42a2 Compare December 9, 2024 15:45
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.

2 participants