Ok, I have got an ugly hack for you :-):
1. Change ghcOptions in yi/src/library/Yi/Main.hs:
- ghcOptions = [],
+ ghcOptions = ["-auto-all", "-prof", "-osuf=p_o",
"-hisuf=p_hi", "-rtsopts"],
2. Recompile yi with --enable-library-profiling:
cabal configure --enable-library-profiling && cabal install --reinstall
3. Run yi first to get a compiled "real" executable.
4. Then call "real" executable from cache with profiling options. On any
XDG-compatible (Unix-like) system cached binary should be like:
~/.cache/yi/yi-linux-x86_64 +RTS -Pa
--
Enjoy!
Michal
--
Yi development mailing list
[email protected]
http://groups.google.com/group/yi-devel