chore(debug): enable profiling properly
This commit is contained in:
parent
dfd0f57f90
commit
791220fb02
@ -255,9 +255,8 @@ ghc-options:
|
||||
- -fno-warn-partial-type-signatures
|
||||
- -fno-max-relevant-binds
|
||||
- -j
|
||||
- -freduction-depth=0
|
||||
- -prof
|
||||
- -fprof-auto-call
|
||||
- -freduction-depth=0
|
||||
- -fprof-auto-calls
|
||||
when:
|
||||
- condition: flag(pedantic)
|
||||
ghc-options:
|
||||
|
||||
@ -14,6 +14,7 @@ import Utils.Print
|
||||
import Handler.Utils
|
||||
import Jobs
|
||||
|
||||
import Data.Ratio ((%))
|
||||
import Data.Char (isDigit)
|
||||
import qualified Data.Text as Text
|
||||
-- import qualified Data.Text.IO as Text
|
||||
@ -97,7 +98,7 @@ postAdminTestR = do
|
||||
case btnResult of
|
||||
(FormSuccess CreateInf) -> addMessage Info "Informatik-Knopf gedrückt"
|
||||
(FormSuccess CreateMath) -> addMessage Warning "Knopf Mathematik erkannt"
|
||||
(FormSuccess CrashApp) -> addMessage Error "Crash Button betätigt" >> error "Crash Button"
|
||||
(FormSuccess CrashApp) -> addMessage Error "Crash Button Ratio 0 betätigt" >> error ("Crash Button" <> (show $ 1 % 0))
|
||||
FormMissing -> return ()
|
||||
_other -> addMessage Warning "KEIN Knopf erkannt"
|
||||
|
||||
|
||||
@ -10,8 +10,9 @@ rebuild-ghc-options: true
|
||||
#ghc-options:
|
||||
# "$everything": -fno-prof-auto
|
||||
|
||||
library-profiling: true
|
||||
executable-profiling: true
|
||||
build:
|
||||
library-profiling: true
|
||||
executable-profiling: true
|
||||
|
||||
nix:
|
||||
packages: []
|
||||
|
||||
Reference in New Issue
Block a user