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

Make source file optional in Statistics class #731

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

Conversation

phate
Copy link
Owner

@phate phate commented Jan 9, 2025

It could be that we want to gather statistics about the modules that were not created from a file. Support this in the statistics class. This in turn will allow to push the optional source file to the rvsdg::RvsdgModule.

@phate phate requested a review from haved January 9, 2025 05:43
@phate phate enabled auto-merge (squash) January 9, 2025 05:43
@@ -71,7 +71,7 @@ Statistics::Serialize(char fieldSeparator, char nameValueSeparator) const
std::ostringstream ss;

ss << GetName() << fieldSeparator;
ss << GetSourceFile().to_str();
ss << (GetSourceFile().has_value() ? GetSourceFile().value().to_str() : "None");
Copy link
Owner Author

Choose a reason for hiding this comment

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

Commenting myself to block PR. I am not fully convinced that this is a great idea any longer as the filepath itself can be "optional", i.e., just empty.

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