Skip to content

Commit

Permalink
Add top-level performance measuring guide page
Browse files Browse the repository at this point in the history
  • Loading branch information
malteneuss committed Nov 18, 2024
1 parent 84b56b4 commit 153b685
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions doc/how-to-analyze-haskell-code-performance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ and dependencies are usually not local.
However, the bottlenecks may be in your dependencies, so you would want to profile those too.

First, to enable ``late``-cost-center profiling of all packages/dependencies in your project,
add the following to your project’s ``cabal.project`` file:
add the following to your project’s ``cabal.project.local`` file:

.. code-block:: cabal
Expand All @@ -139,10 +139,6 @@ Second, rerun your application with ``cabal run``, which also automatically rebu
- cryptohash-sha256-0.11.102.1 (lib) --enable-profiling (requires build)
...
There's no need to pass profiling flags like ``--enable-profiling``
to the build or run commands manually this time (as seen in the build log),
because these settings are now determined via the ``cabal.project`` file.

You should now find more information in the profiling report ``my-app.prof``
to analyze. More information on how to configure Cabal options can be found in the
:ref:`Cabal options sections <package-configuration-options>`.

0 comments on commit 153b685

Please sign in to comment.