From e2ad0e63077cc08c14edebae54925c50828cde3a Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Thu, 27 Jan 2011 11:49:57 +0100 Subject: Fix typos in efficiency guide --- system/doc/efficiency_guide/profiling.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'system/doc/efficiency_guide/profiling.xml') diff --git a/system/doc/efficiency_guide/profiling.xml b/system/doc/efficiency_guide/profiling.xml index 65d13408bc..8be1c7175d 100644 --- a/system/doc/efficiency_guide/profiling.xml +++ b/system/doc/efficiency_guide/profiling.xml @@ -74,7 +74,7 @@ What to look for

When analyzing the result file from the profiling activity you should look for functions that are called many - times and have a long "own" execution time (time excluded calls + times and have a long "own" execution time (time excluding calls to other functions). Functions that just are called very many times can also be interesting, as even small things can add up to quite a bit if they are repeated often. Then you need to @@ -87,7 +87,7 @@ Are there redundant tests that can be removed? Is there some expression calculated giving the same result each time? - Is there other ways of doing this that are equivalent and + Are there other ways of doing this that are equivalent and more efficient? Can I use another internal data representation to make things more efficient? @@ -138,7 +138,7 @@

cprof is something in between fprof and cover regarding features. It counts how many times each function is called when the program is run, on a per module - basis. cprof has a low performance degradation (versus + basis. cprof has a low performance degradation effect (versus fprof and eprof) and does not need to recompile any modules to profile (versus cover).

@@ -231,7 +231,7 @@ consistent from run to run. The disadvantage is that the time spent in the operating system kernel (such as swapping and I/O) are not included. Therefore, measuring CPU time is misleading if - any I/O (file or sockets) are involved.

+ any I/O (file or socket) is involved.

It is probably a good idea to do both wall-clock measurements and CPU time measurements.

@@ -239,18 +239,18 @@

Some additional advice:

- The granularity of both types measurement could be quite + The granularity of both types of measurement could be quite high so you should make sure that each individual measurement lasts for at least several seconds. To make the test fair, each new test run should run in its own, - newly created Erlang process. Otherwise, if all tests runs in the + newly created Erlang process. Otherwise, if all tests run in the same process, the later tests would start out with larger heap sizes - and therefore probably does less garbage collections. You could + and therefore probably do less garbage collections. You could also consider restarting the Erlang emulator between each test. Do not assume that the fastest implementation of a given algorithm - on computer architecture X also is the fast on computer architecture Y. + on computer architecture X also is the fastest on computer architecture Y. -- cgit v1.2.3