diff options
author | Edward Z. Yang <ezyang@mit.edu> | 2013-03-11 13:12:25 -0700 |
---|---|---|
committer | Edward Z. Yang <ezyang@mit.edu> | 2013-03-11 13:12:25 -0700 |
commit | 8aefdc085bea0e20f79d16c417507a36ba2d0f8f (patch) | |
tree | f2ae7ccf5853815d93fd067579b04036ad380cca /docs/users_guide/profiling.xml | |
parent | acd5a11520f74ac582c019dd64e7b0f9727e0409 (diff) | |
download | haskell-8aefdc085bea0e20f79d16c417507a36ba2d0f8f.tar.gz |
More advice about profiling CAFs.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Diffstat (limited to 'docs/users_guide/profiling.xml')
-rw-r--r-- | docs/users_guide/profiling.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/users_guide/profiling.xml b/docs/users_guide/profiling.xml index f213c54c10..3937642a06 100644 --- a/docs/users_guide/profiling.xml +++ b/docs/users_guide/profiling.xml @@ -357,7 +357,13 @@ MAIN MAIN 102 0 0.0 0.0 100.0 1 cost centre <literal>M.CAF</literal>, where <literal>M</literal> is the name of the module. It is also possible to give each CAF a different stack, using the option - <option>-fprof-cafs</option><indexterm><primary><option>-fprof-cafs</option></primary></indexterm>.</para> + <option>-fprof-cafs</option><indexterm><primary><option>-fprof-cafs</option></primary></indexterm>. + This is especially useful when compiling with + <option>-ffull-laziness</option> (as is default with + <option>-O</option> and higher), as constants in function bodies + will be lifted to the top-level and become CAFs. You will probably + need to consult the Core (<option>-ddump-simpl</option>) in order + to determine what these CAFs correspond to.</para> </sect2> </sect1> |