Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtSilvio committed May 11, 2024
1 parent 4be5104 commit ca552e8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,15 @@ abstract class OciImagesInputTask : DefaultTask() {

@TaskAction
protected fun run() {
println("max memory " + Runtime.getRuntime().maxMemory())
println("start run " + Runtime.getRuntime().freeMemory() + " " + Runtime.getRuntime().totalMemory())
val imagesInputs: List<OciImagesInput> = imagesInputs.get()
val resolvedComponentToImageReferences = HashMap<ResolvedOciComponent, HashSet<OciImageReference>>()
val digestToLayer = HashMap<OciDigest, File>()
for (imagesInput in imagesInputs) {
println("before findComponentsAndLayers " + Runtime.getRuntime().freeMemory() + " " + Runtime.getRuntime().totalMemory())
val (components, layers) = findComponentsAndLayers(imagesInput.files.files.toTypedArray())
println("after findComponentsAndLayers " + Runtime.getRuntime().freeMemory() + " " + Runtime.getRuntime().totalMemory())
val componentResolver = OciComponentResolver()
for (component in components) {
componentResolver.addComponent(component)
Expand Down

0 comments on commit ca552e8

Please sign in to comment.