cardano-base icon indicating copy to clipboard operation
cardano-base copied to clipboard

How to do a profiling build?

Open kozross opened this issue 3 years ago • 2 comments
trafficstars

I'm not very familiar with Nix, and thus am not sure what I'd need to do to allow me to profile the code in here. This is related to work stemming from this PR, and ultimately seeking to address one of the issues described here.

kozross avatar Jan 23 '22 22:01 kozross

@michaelpj - do you happen to know the answer to this?

kozross avatar Jan 24 '22 20:01 kozross

Looks like there's a config argument to shell.nix which gets passed down to here: https://github.com/input-output-hk/cardano-base/blob/master/nix/haskell.nix#L12. Then you should be able to build in there with profiling: true in cabal.project.local.

michaelpj avatar Jan 25 '22 11:01 michaelpj