diff options
| author | venkataram-nv <vedavamadath@nvidia.com> | 2024-08-13 11:44:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-13 11:44:19 -0700 |
| commit | f4ff4236e1eb80a8274b219d6e4c3813c15be9cd (patch) | |
| tree | 90a5f3db2e0630cda2f5e95d14c0db9cee516233 /source/slang/slang-compiler.cpp | |
| parent | ee052a9e9bd7c0d233816556ebe8f0078bd9ec4d (diff) | |
GitHub action benchmark (#4804)
Adds a new Github CI action for benchmarking the slangc compiler on the MDL shaders. For now, the results are only dumped to the output of the CI, which can be later viewed through raw logs. The next step is to use github-action-benchmark to push these results into a page which will show the benchmark results over time as commits are pushed.
Diffstat (limited to 'source/slang/slang-compiler.cpp')
| -rw-r--r-- | source/slang/slang-compiler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-compiler.cpp b/source/slang/slang-compiler.cpp index 1ef17df1d..f5b7ff428 100644 --- a/source/slang/slang-compiler.cpp +++ b/source/slang/slang-compiler.cpp @@ -3,6 +3,7 @@ #include "../core/slang-basic.h" #include "../core/slang-platform.h" #include "../core/slang-io.h" +#include "../core/slang-performance-profiler.h" #include "../core/slang-string-util.h" #include "../core/slang-hex-dump-util.h" #include "../core/slang-riff.h" @@ -2297,6 +2298,7 @@ namespace Slang void EndToEndCompileRequest::generateOutput() { + SLANG_PROFILE; generateOutput(getSpecializedGlobalAndEntryPointsComponentType()); // If we are in command-line mode, we might be expected to actually |
