X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdocs%2Fusers_guide%2Fprofiling.xml;h=3c75ad0fd2473be7dee6f2a471e6775be74be7f9;hb=df87e59ebe63776ef33b2587b50930baf9614931;hp=52fc8d8f007a32455068cf501be1fe7779c5f279;hpb=c61f8941450284c3f33b6bd396204b2025a6f47e;p=ghc-hetmet.git diff --git a/ghc/docs/users_guide/profiling.xml b/ghc/docs/users_guide/profiling.xml index 52fc8d8..3c75ad0 100644 --- a/ghc/docs/users_guide/profiling.xml +++ b/ghc/docs/users_guide/profiling.xml @@ -258,7 +258,7 @@ MAIN MAIN 0 0.0 0.0 100.0 100.0 {-# SCC "name" #-} <expression> - where "name" is an aribrary string, + where "name" is an arbitrary string, that will become the name of your cost centre as it appears in the profiling output, and <expression> is any Haskell @@ -490,7 +490,7 @@ x = nfib 25 over time. This is useful for detecting the causes of space leaks, when your program holds on to more memory at run-time that it needs to. Space leaks lead to - longer run-times due to heavy garbage collector ativity, and may + longer run-times due to heavy garbage collector activity, and may even cause the program to run out of memory altogether. To generate a heap profile from your program: @@ -809,7 +809,7 @@ x = nfib 25 The definition of retainers is designed to reflect a common cause of space leaks: a large structure is retained by an unevaluated computation, and will be released once the - compuation is forced. A good example is looking up a value in + computation is forced. A good example is looking up a value in a finite map, where unless the lookup is forced in a timely manner the unevaluated lookup will cause the whole mapping to be retained. These kind of space leaks can often be