From 98ec607e887181e0ed57b85921a2d10f3ffb7a69 Mon Sep 17 00:00:00 2001 From: Bryan Paxton Date: Sat, 19 Jun 2021 14:03:39 -0500 Subject: Grammatical / spelling fixups for the efficiency guide profiling section --- system/doc/efficiency_guide/profiling.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'system') diff --git a/system/doc/efficiency_guide/profiling.xml b/system/doc/efficiency_guide/profiling.xml index 594d066df4..847949cd2a 100644 --- a/system/doc/efficiency_guide/profiling.xml +++ b/system/doc/efficiency_guide/profiling.xml @@ -47,7 +47,7 @@

eprof provides time information of each function used in the program. No call graph is - produced, but eprof has considerable less impact on the program it + produced, but eprof has considerably less impact on the program it profiles.

If the program is too large to be profiled by fprof or eprof, cprof can be used to locate code parts that @@ -96,14 +96,14 @@ use. When this happens a crash dump is generated that contains information about the state of the system as it ran out of memory. Use the crashdump_viewer to get a - view of the memory is being used. Look for processes with large heaps or + view of the memory being used. Look for processes with large heaps or many messages, large ets tables, etc.

When looking at memory usage in a running system the most basic function to get information from is erlang:memory(). It returns the current memory usage of the system. instrument(3) can be used to get a more detailed breakdown of where memory is used.

-

Processes, ports and ets tables can then be inspecting using their +

Processes, ports and ets tables can then be inspected using their respective info functions, i.e. erlang:process_info/2 , @@ -118,7 +118,7 @@ how memory is allocated can be retrieved using erlang:system_info(allocator). - The data you get from that function is very raw and not very plesant to read. + The data you get from that function is very raw and not very pleasant to read. recon_alloc can be used to extract useful information from system_info statistics counters.

@@ -135,7 +135,7 @@

For a large system, you do not want to run the profiling tools on the whole system. Instead you want to concentrate on - central processes and modules, which contribute for a big part + central processes and modules, which account for a big part of the execution.

There are also some tools that can be used to get a view of the @@ -209,7 +209,7 @@

eprof is based on the Erlang trace_info BIFs. eprof shows how much time has been used by each process, and in which function calls this time has been spent. Time is - shown as percentage of total time and absolute time. For more + shown as a percentage of total time and absolute time. For more information, see the eprof manual page in Tools.

@@ -290,7 +290,7 @@
lcnt -

lcnt is used to profile interactions inbetween +

lcnt is used to profile interactions in between entities that run in parallel. For example if you have a process that all other processes in the system needs to interact with (maybe it has some global configuration), @@ -314,7 +314,7 @@ implementation of a given algorithm or function is the fastest. Benchmarking is far from an exact science. Today's operating systems generally run background tasks that are difficult to turn off. - Caches and multiple CPU cores does not facilitate benchmarking. + Caches and multiple CPU cores do not facilitate benchmarking. It would be best to run UNIX computers in single-user mode when benchmarking, but that is inconvenient to say the least for casual testing.

-- cgit v1.2.1