Skip to content

Commit

Permalink
Merge pull request commercialhaskell#1617 from pavolzetor/master
Browse files Browse the repository at this point in the history
Add note in debugging section on parameter passing
  • Loading branch information
borsboom committed Jan 6, 2016
2 parents 608c60d + 23875c4 commit 8472020
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1801,6 +1801,11 @@ of a program called `main` compiled with the above command, you can run
`./main +RTS -p`

to generate a `main.prof` file containing the requested profiling information.
Alternatively, you can use `stack exec main -- +RTS -p`, where `--` allows you
to specify parameters for `main` executable (without `--` the `stack`
executable would use those parameters instead).


For more commands and uses, see [the official GHC chapter on
profiling](https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/profiling.html),
[the Haskell wiki](https://wiki.haskell.org/How_to_profile_a_Haskell_program),
Expand Down

0 comments on commit 8472020

Please sign in to comment.