Skip to content

Commit 221847f

Browse files
committed
attempt to set maxexec threshold
1 parent 545f337 commit 221847f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

codex/conf.nim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,15 +794,17 @@ proc setupLogging*(conf: CodexConf) =
794794

795795
proc setupMetrics*(config: CodexConf) =
796796
when chronosProfiling:
797-
enableProfiling(200.milliseconds)
797+
let threshold: Duration = 200.milliseconds
798+
enableProfiling(threshold)
798799

799800
if config.metricsEnabled:
800801
let metricsAddress = config.metricsAddress
801802
notice "Starting metrics HTTP server",
802803
url = "http://" & $metricsAddress & ":" & $config.metricsPort & "/metrics"
803804
try:
804805
when chronosProfiling:
805-
enableProfilerMetrics(k = config.profilerMaxMetrics)
806+
let threshold: Duration = 200.milliseconds
807+
enableProfilerMetrics(k = config.profilerMaxMetrics, threshold)
806808

807809
startMetricsHttpServer($metricsAddress, config.metricsPort)
808810
except CatchableError as exc:

0 commit comments

Comments
 (0)