diff options
| author | Yong He <yonghe@outlook.com> | 2022-02-11 00:16:54 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-11 00:16:54 -0800 |
| commit | 7d296ba93ff9f01d381dd573160386958457fc18 (patch) | |
| tree | 8ad1c8d35499aa027714cc17cba17b8e3ac2f14b /slang.h | |
| parent | 434fd8ec7558614a3b6eef484410dddd62c9cbbd (diff) | |
Add interface for querying downstream compiler time (#2127)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'slang.h')
| -rw-r--r-- | slang.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -3305,6 +3305,11 @@ namespace slang @return The compiler that is used for the transition. Returns SLANG_PASS_THROUGH_NONE it is not defined */ 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. + */ + virtual SLANG_NO_THROW double SLANG_MCALL getDownstreamCompilerElapsedTime() = 0; }; #define SLANG_UUID_IGlobalSession IGlobalSession::getTypeGuid() |
