-
Notifications
You must be signed in to change notification settings - Fork 0
/
HaskellLibrariesRequired.txt
83 lines (51 loc) · 2.64 KB
/
HaskellLibrariesRequired.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Profiling
To run profiling, profiling libraries need to be nstalled for the libraries being used.
To automatically install the profiling libraries for future installations edit the ~/.cabal/config and set the profiling options to True.
To install profiling libraries for 'base'
sudo apt-get install libghc??-prof
Haskell Libraries required to run CC Track
cabal install text --reinstall --enable-library-profiling
cabal install text --reinstall mtl-2.2.1 --enable-library-profiling
cabal install parsec diff --enable-library-profiling
cabal install strict --enable-library-profiling
cabal install vector --enable-library-profiling --if needed
--Patience Diff algorithm
cabal install patience --reinstall --enable-library-profiling
cabal install split --reinstall --enable-library-profiling
cabal install --only-dependencies --enable-library-profiling
or
Alternatively you can add a “cabal.config” file to the root of your project with the following line:
library-profiling: True
cabal install --only-dependencies
Profiling commands
ghc -prof -fprof-auto -rtsopts -i../ -O2 -v CCTrack.hs
./CCTrack README.ja.md 99992 READMENew.ja.md +RTS -hc -L100
./CCTrack README.ja.md 99992 +RTS -hd
./CCTrack README.ja.md 99992 +RTS -hr
./CCTrack README.ja.md 99992 +RTS -hy
To convert from .hp to .ps file
hp2ps -d CCTrack.hp
to uninstall a package
sudo ghc-pkg unregister --force vector
--
ghc -prof -fprof-auto -rtsopts -O2 -v GitEncode.hs
./GitEncode "/home/eecs/Documents/gitRepos/test1" master +RTS -hc -L100
./GitEncode "/home/eecs/Documents/gitRepos/GitEncodeTestRepos/Encoded/git-flight-rules/" master > git-flight-rules.log 2>&1
-------------------------------------------------------------------------------------------------------------------------------
cabal upgrade
cabal install cabal-install --prefix=$HOME/.cabal
or
cabal install --only-dependencies --reinstall (make sure to reinstall all the latest packages)
cabal install cabal-install
to install ghc from the downloaded binary
https://downloads.haskell.org/~ghc/6.10.1/docs/html/users_guide/installing-bin-distrib.html
---------------------------------------------------------------------------------------------------------------------------------
Commands executed in babylon
-----------------------------
login:
ssh -E ~/Documents/Research/babylonLogFile.txt [email protected]
Mount remote file system onto local filesystem
sshfs [email protected]:/nfs/guille/erwig/users/kumarde ~/babylon
sshfs umount
java -jar GitAutoClone.jar ../../RepoList/Repos ../../ReposNoEncoding/
java -jar CCEncodeFull.jar ../../Repos master ../src/encode/CCTrack 11 57 ../../Renames/