From f88e1299b7715190ce82f3f4473f0d0eeaa2000e Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 23 May 2023 15:19:27 -0700 Subject: 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 --- source/slang/slang-compiler.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/slang/slang-compiler.cpp') 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& outArtifact) { + CompileTimerRAII recordCompileTime(getSession()); + auto target = getTargetFormat(); switch (target) -- cgit v1.2.3