From 7d296ba93ff9f01d381dd573160386958457fc18 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 11 Feb 2022 00:16:54 -0800 Subject: Add interface for querying downstream compiler time (#2127) Co-authored-by: Yong He --- slang.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'slang.h') diff --git a/slang.h b/slang.h index 9872180fb..1b8c0c8a4 100644 --- a/slang.h +++ b/slang.h @@ -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() -- cgit v1.2.3