-
Notifications
You must be signed in to change notification settings - Fork 419
Extended tracing instrumentation for shader codegen and rendering #2820
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
Merged
jstone-lucasfilm
merged 24 commits into
AcademySoftwareFoundation:main
from
autodesk-forks:ppenenko/cpp_instrumentation
Apr 2, 2026
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
2bebc60
Instrument `GlslProgram::build`
ppenenko 6952584
Instrument `DumpGeneratedCode`
ppenenko 246891c
Expose envSampleCount option in MaterialXTest for IBL sampling control
ppenenko 8db8118
Add diff_test_runs package for comparing MaterialX test outputs
ppenenko d90ca04
Add framesPerMaterial and envSampleCount to _options.mtlx
ppenenko f50206f
Additional tracing markers in shader codegen
ppenenko 07778a5
Add trace markers for emit and graph traversal functions
ppenenko a835eb6
Add GPU timing infrastructure and fix trace aliases in RenderGlsl.cpp
ppenenko fda5a18
Link MaterialXTrace to MaterialXGenShader when tracing is enabled
ppenenko 0d253c2
Use MATERIALX_BUILD_PERFETTO_TRACING in RenderGlsl.cpp
ppenenko 9e30232
Fix `MATERIALX_BUILD_PERFETTO_TRACING` in an XML comment
ppenenko 611abfb
Add async event support for GPU timing in MaterialXTrace
ppenenko 80209aa
Fix enableTracing default to true for CI trace generation
ppenenko 99cbead
Make matplotlib a hard requirement for diff_test_runs reports
ppenenko 846cdbd
Use directory names instead of Baseline/Optimized in diff_images.py
ppenenko 6bcd9f6
Auto-open HTML report in diff_images.py
ppenenko c097db3
Fix _report import in diff_images.py to use try/except pattern
ppenenko b2456c4
Revert Python comparison scripts
ppenenko c66aaf9
Revert test suite options and reset unrelated UiNode changes
ppenenko 72cb1af
Merge remote-tracking branch 'origin/main' into ppenenko/cpp_instrume…
ppenenko 8d36921
Extract GPU/async instrumentation to a separate PR
ppenenko f7aab05
Merge branch 'main' into ppenenko/cpp_instrumentation
jstone-lucasfilm 776ebba
Merge branch 'main' into ppenenko/cpp_instrumentation
jstone-lucasfilm e98bd58
Add newline for consistency
jstone-lucasfilm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,18 @@ | ||
| file(GLOB_RECURSE materialx_source "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp") | ||
| file(GLOB_RECURSE materialx_headers "${CMAKE_CURRENT_SOURCE_DIR}/*.h*") | ||
|
|
||
| set(GENSHADER_MTLX_MODULES MaterialXFormat MaterialXCore) | ||
| if(MATERIALX_BUILD_PERFETTO_TRACING) | ||
| list(APPEND GENSHADER_MTLX_MODULES MaterialXTrace) | ||
| endif() | ||
|
Comment on lines
+4
to
+7
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The optional dependency on tracing - zero overhead if disabled. If enabled, this wouldn't create any additional linking dependencies for MaterialX's consumers because Perfetto is compiled into |
||
|
|
||
| mx_add_library(MaterialXGenShader | ||
| SOURCE_FILES | ||
| ${materialx_source} | ||
| HEADER_FILES | ||
| ${materialx_headers} | ||
| MTLX_MODULES | ||
| MaterialXFormat | ||
| MaterialXCore | ||
| ${GENSHADER_MTLX_MODULES} | ||
| EXPORT_DEFINE | ||
| MATERIALX_GENSHADER_EXPORTS) | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just fixing an oversight from #2774: we renamed this setting as part of the code review.