You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -793,3 +793,19 @@ can happen because cabal-helper compiles and runs above executable at runtime wi
793
793
794
794
Liquid Haskell requires an SMT solver on the path. We do not take care of installing one, thus, Liquid Haskell will not run until one is installed.
795
795
The recommended SMT solver is [z3](https://github.com/Z3Prover/z3). To run the tests, it is also required to have an SMT solver on the path, otherwise the tests will fail for Liquid Haskell.
796
+
797
+
### Profiling `haskell-ide-engine`.
798
+
799
+
If you think `haskell-ide-engine` is using a lot of memory then the most useful
800
+
thing you can do is prepare a profile of the memory usage whilst you're using
801
+
the program.
802
+
803
+
1. Add `profiling: True` to the cabal.project file of `haskell-ide-engine
804
+
2.`cabal new-build hie`
805
+
3. (IMPORTANT) Add `profiling: True` to the `cabal.project` file of the project you want to profile.
806
+
4. Make a wrapper script which calls the `hie` you built in step 2 with the additional options `+RTS -hd -l-au`
807
+
5. Modify your editor settings to call this wrapper script instead of looking for `hie` on the path
808
+
6. Try using `h-i-e` as normal and then process the `*.eventlog` which will be created using `eventlog2html`.
809
+
7. Repeat the process again using different profiling options if you like.
0 commit comments