2020-01-14 16:12:57 +00:00
|
|
|
(ns babashka.profile
|
|
|
|
|
(:require [babashka.main :as main]))
|
|
|
|
|
|
|
|
|
|
(comment)
|
|
|
|
|
|
|
|
|
|
;; clojure -A:profile -e "(prn (loop [val 0 cnt 1000000] (if (pos? cnt) (recur (inc val) (dec cnt)) val)))"
|
|
|
|
|
|
2020-01-15 19:11:44 +00:00
|
|
|
(require '[clj-async-profiler.core :as prof])
|
2020-01-14 16:12:57 +00:00
|
|
|
|
|
|
|
|
(defn -main [& options]
|
2020-01-17 18:42:21 +00:00
|
|
|
(prof/profile (apply main/main options))
|
2020-01-14 16:12:57 +00:00
|
|
|
(shutdown-agents))
|