[prev in list] [next in list] [prev in thread] [next in thread]
List: haskell-cafe
Subject: [Haskell-cafe] GHC option for performance related output files folder?
From: PY <aquagnu () gmail ! com>
Date: 2018-01-19 8:44:07
Message-ID: c3e73ed5-f798-cbff-6eb9-1107e2147cef () gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hello, All.
I made instrumental build which generates profiling information. Cabal's
options are:
ghc-options: -Wall
-O2
-threaded
-prof
-fprof-auto
-rtsopts
-fprof-cafs
"-with-rtsopts=-N -s -h -i0.1 -p -M1G
-SMyApplication-S.log"
so running application generates files: /MyApplication-S.log,
MyApplication.hp, MyApplication.prof/
but in current working directory - which is the problem (also I need to
run it on Windows and Linux). Is it possible to specify directory of
those output files with some option? Without this I get "Can't open ...
file..." due to permission error - Haskell Runtime tries to save all of
them in current folder (on Linux and on Windows standard folders for
binaries is not allowed for writing, sure).
===
Best regards, Paul
[Attachment #5 (text/html)]
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello, All.</p>
<p>I made instrumental build which generates profiling information.
Cabal's options are:</p>
<p> <tt> ghc-options: -Wall</tt><tt><br>
</tt><tt> -O2</tt><tt><br>
</tt><tt> -threaded</tt><tt><br>
</tt><tt> -prof</tt><tt><br>
</tt><tt> -fprof-auto</tt><tt><br>
</tt><tt> -rtsopts</tt><tt><br>
</tt><tt> -fprof-cafs</tt><tt><br>
</tt><tt> "-with-rtsopts=-N -s -h -i0.1 -p -M1G
-SMyApplication-S.log"</tt><br>
</p>
<p>so running application generates files: <i>MyApplication-S.log,
MyApplication.hp, MyApplication.prof</i></p>
<p>but in current working directory - which is the problem (also I
need to run it on Windows and Linux). Is it possible to specify
directory of those output files with some option? Without this I
get "Can't open ... file..." due to permission error - Haskell
Runtime tries to save all of them in current folder (on Linux and
on Windows standard folders for binaries is not allowed for
writing, sure).</p>
<p>===</p>
<p>Best regards, Paul<br>
</p>
</body>
</html>
[Attachment #6 (text/plain)]
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic