diff options
| author | Yong He <yonghe@outlook.com> | 2023-05-23 15:19:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-23 15:19:27 -0700 |
| commit | f88e1299b7715190ce82f3f4473f0d0eeaa2000e (patch) | |
| tree | 7aba3971505ab50b8ee2d387695cef4da81344de /source/slang/slang-compiler.cpp | |
| parent | a291dbf0ce774fdc11c820471e26bda656bf1666 (diff) | |
Add API for querying total compile time. (#2898)
* Add API for querying total compile time.
* Optimize.
* Remove redundant simplifyIR calls.
* Fix.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
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 8426b7eec..a5f46da3e 100644 --- a/source/slang/slang-compiler.cpp +++ b/source/slang/slang-compiler.cpp @@ -1548,6 +1548,8 @@ namespace Slang // Do emit logic for a zero or more entry points SlangResult CodeGenContext::emitEntryPoints(ComPtr<IArtifact>& outArtifact) { + CompileTimerRAII recordCompileTime(getSession()); + auto target = getTargetFormat(); switch (target) |
