Agda-2.4.2: A dependently typed functional programming language and proof assistant

Safe HaskellNone

Agda.TypeChecking.Monad.Benchmark

Description

Measure CPU time for individual phases of the Agda pipeline.

Synopsis

Documentation

getBenchmark :: TCM BenchmarkSource

Lens getter for Benchmark from TCM.

benchmarking :: MonadTCM tcm => tcm BoolSource

Check whether benchmarking is activated.

reportBenchmarkingLn :: String -> TCM ()Source

Report benchmarking results.

reportBenchmarkingDoc :: TCM Doc -> TCM ()Source

Report benchmarking results.

billTo :: MonadTCM tcm => Account -> tcm a -> tcm aSource

Bill a computation to a specific account.

billTop :: MonadTCM tcm => Phase -> tcm a -> tcm aSource

Bill a top account.

billPureTo :: MonadTCM tcm => Account -> a -> tcm aSource

Bill a pure computation to a specific account.

billSub :: MonadTCM tcm => Account -> tcm a -> tcm aSource

Bill a sub account.

reimburse :: MonadTCM tcm => Account -> tcm a -> tcm aSource

Reimburse a specific account for computation costs.

reimburseTop :: MonadTCM tcm => Phase -> tcm a -> tcm aSource

Reimburse a top account.