mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-09-11 16:16:09 +03:00
Use the timer for benchmarking a rule
This commit is contained in:
parent
4710c132d4
commit
f468a45984
@ -6145,15 +6145,15 @@ isInSourceDirectories (Metadata metadata) =
|
||||
|
||||
startedRule : String -> List ( String, Encode.Value )
|
||||
startedRule name =
|
||||
[ ( "type", Encode.string "rule-start" )
|
||||
, ( "ruleName", Encode.string name )
|
||||
[ ( "type", Encode.string "timer-start" )
|
||||
, ( "metric", Encode.string ("Running " ++ name) )
|
||||
]
|
||||
|
||||
|
||||
endedRule : String -> List ( String, Encode.Value )
|
||||
endedRule name =
|
||||
[ ( "type", Encode.string "rule-end" )
|
||||
, ( "ruleName", Encode.string name )
|
||||
[ ( "type", Encode.string "timer-end" )
|
||||
, ( "metric", Encode.string ("Running " ++ name) )
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user