Skip to content

Commit

Permalink
Log registry fetching time
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleMayes committed Oct 17, 2023
1 parent 44ce645 commit e75db8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generator/src/main/kotlin/com/kylemayes/generator/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e75db8a

Please sign in to comment.