Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Trace Event reader to handle stable diffusion traces #133

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

MatthewKhouzam
Copy link
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
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
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.

Store initial entries as properties.

Signed-off-by: Matthew Khouzam <[email protected]>
Fix test, it was reading the wrong value before.

Signed-off-by: Matthew Khouzam <[email protected]>
@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