From e75db8ae4816e583def1f0151aee6c916644cc02 Mon Sep 17 00:00:00 2001 From: Kyle Mayes Date: Mon, 16 Oct 2023 18:06:36 -0400 Subject: [PATCH] Log registry fetching time --- generator/src/main/kotlin/com/kylemayes/generator/Main.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/generator/src/main/kotlin/com/kylemayes/generator/Main.kt b/generator/src/main/kotlin/com/kylemayes/generator/Main.kt index 0311e56..80211f1 100644 --- a/generator/src/main/kotlin/com/kylemayes/generator/Main.kt +++ b/generator/src/main/kotlin/com/kylemayes/generator/Main.kt @@ -72,7 +72,7 @@ class Check : CliktCommand(help = "Checks generated Vulkan bindings") { // Parse - val xml = inputs.registry.local.lazy.value + val xml = log.time("Fetch Registry") { inputs.registry.local.lazy.value } val registry = log.time("Parse Registry") { parseRegistry(xml) } // Generate @@ -105,7 +105,7 @@ class Index : CliktCommand(help = "Generates an index for generated Vulkan bindi // Parse - val xml = inputs.registry.local.lazy.value + val xml = log.time("Fetch Registry") { inputs.registry.local.lazy.value } val registry = log.time("Parse Registry") { parseRegistry(xml) } // Index @@ -139,7 +139,7 @@ class Update : CliktCommand(help = "Updates generated Vulkan bindings") { // Parse val xmlVersion = if (skipUpgrade) { inputs.registry.local } else { inputs.registry.latest } - val xml = xmlVersion.lazy.value + val xml = log.time("Fetch Registry") { xmlVersion.lazy.value } val registry = log.time("Parse Registry") { parseRegistry(xml) } // Generate