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

TraceParserGen: Fix task guids and RegisterTemplate. #1414

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dorian-apanel-intel
Copy link
Contributor

Add Task class and keep instances in m_tasks dictionary
instead of m_taskNames, m_taskValues and potential m_taskGuids.

Generate guids variables or pass Guid.Empty

Add basic RegisterTemplate implementation.

fix #1351

Add Task class and keep instances in m_tasks dictionary
instead of m_taskNames, m_taskValues and potential m_taskGuids.

Generate guids variables or pass Guid.Empty

Add basic RegisterTemplate implementation.

fix microsoft#1351
@dorian-apanel-intel
Copy link
Contributor Author

Pull #1406 from oatkins targets similar issues.

@inthemedium
Copy link
Member

inthemedium commented May 16, 2023

LGTM :-)

@@ -314,6 +328,12 @@ private void GenerateTemplateDefs(TextWriter output)
output.WriteLine(" callback(template);");
output.WriteLine(" }");
output.WriteLine();

output.WriteLine(" private void RegisterTemplate(TraceEvent template)");
Copy link
Member

Choose a reason for hiding this comment

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

I guess this is a compromise between the previous style and the current style. Personally, I like the current style, which omits this private method call but it isn't any different in practice

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.

TraceParserGen: xxxTaskGuid not defined
2 participants