Skip to content

Commit

Permalink
profiling patches
Browse files Browse the repository at this point in the history
  • Loading branch information
jutaro committed May 30, 2023
1 parent 23ea682 commit 8a20aa7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cardano-node/src/Cardano/Node/Configuration/Logging.hs
Expand Up @@ -288,7 +288,7 @@ createLoggingLayer ver nodeConfig' p = do
>>= maybe (pure ())
(traceResourceStats
(appendName "node" tr))
Conc.threadDelay 1000000 -- TODO: make configurable
Conc.threadDelay 1000000 -- microseconds = 1 sec

traceResourceStats :: Trace IO Text -> ResourceStats -> IO ()
traceResourceStats tr rs = do
Expand Down
1 change: 1 addition & 0 deletions cardano-tracer/cardano-tracer.cabal
Expand Up @@ -29,6 +29,7 @@ common project-config
-Wpartial-fields
-Wredundant-constraints
-Wunused-packages
-fprof-auto

library
import: project-config
Expand Down
1 change: 1 addition & 0 deletions trace-dispatcher/trace-dispatcher.cabal
Expand Up @@ -83,6 +83,7 @@ library
-Widentities
-Wredundant-constraints
-Wmissing-export-lists
-fprof-auto

executable trace-dispatcher-examples
import: project-config
Expand Down
1 change: 1 addition & 0 deletions trace-forward/trace-forward.cabal
Expand Up @@ -30,6 +30,7 @@ common project-config
-Wpartial-fields
-Wredundant-constraints
-Wunused-packages
-fprof-auto

library
import: project-config
Expand Down
1 change: 1 addition & 0 deletions trace-resources/trace-resources.cabal
Expand Up @@ -47,6 +47,7 @@ library
-Wredundant-constraints
-Wmissing-export-lists
-Wno-incomplete-patterns
-fprof-auto

if os(linux)
exposed-modules: Cardano.Logging.Resources.Linux
Expand Down

0 comments on commit 8a20aa7

Please sign in to comment.