purebred-mua / purebred

A terminal based mail user agent based on notmuch
GNU Affero General Public License v3.0
139 stars 19 forks source link

docs: Add information on how to profile Purebred #440

Closed romanofski closed 2 years ago

romanofski commented 2 years ago

This adds documentation on how to profile Purebred. This is typically straight forward and needs no additional documentation. However in this case it is not because:

  1. Purebred recompiles it's own configuration into a main program. So simply invoking with cabal run isn't going to work.
  2. A bug in Cabal causes the build to not enable and install profiling information.
  3. GHC uses environment files. Sometimes needed dependencies are hidden and need to be exposed.

Fixes https://github.com/purebred-mua/purebred/issues/299