override fun run()

in caches-cleanup-plugin-agent/src/main/kotlin/github/nskvortsov/teamcity/cleanup/HeapDumpsAtHomeCleanerProvider.kt [43:50]


    override fun run() {
        log.debug("Removing hprof files from ${dir.absolutePath}")
        val dumps = dir.listFiles(HeapDumpsAtHomeCleanerProvider.filter) ?: return
        for (file in dumps) {
            log.debug("Removing hprof file ${file.absolutePath}")
            FileUtil.delete(file)
        }
    }