summaryrefslogtreecommitdiff
path: root/slang.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-05-23 15:19:27 -0700
committerGitHub <noreply@github.com>2023-05-23 15:19:27 -0700
commitf88e1299b7715190ce82f3f4473f0d0eeaa2000e (patch)
tree7aba3971505ab50b8ee2d387695cef4da81344de /slang.h
parenta291dbf0ce774fdc11c820471e26bda656bf1666 (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 'slang.h')
-rw-r--r--slang.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/slang.h b/slang.h
index 1de04203c..44c025e7b 100644
--- a/slang.h
+++ b/slang.h
@@ -3515,10 +3515,9 @@ namespace slang
*/
virtual SLANG_NO_THROW SlangPassThrough SLANG_MCALL getDownstreamCompilerForTransition(SlangCompileTarget source, SlangCompileTarget target) = 0;
- /** Get the time in seconds spent in the downstream compiler.
- @return The time spent in the downstream compiler in the current global session.
+ /** Get the time in seconds spent in the slang and downstream compiler.
*/
- virtual SLANG_NO_THROW double SLANG_MCALL getDownstreamCompilerElapsedTime() = 0;
+ virtual SLANG_NO_THROW void SLANG_MCALL getCompilerElapsedTime(double* outTotalTime, double* outDownstreamTime) = 0;
};
#define SLANG_UUID_IGlobalSession IGlobalSession::getTypeGuid()