Praktyczne informacje o ruletce

Sprawdzony system na ruletkę, który pozwala zarabiać pieniądze można znaleźć na Internecie na https://gry-hazardowe-za-darmo.com/gry-kasynowe/ruletka/. Tak, wcale nie jest to przekłamanie, bo wiele…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Profiling Erlang Code with fprof

This is the second article in the troubleshooting. In this article, we will look into the performance analysis for the applications. When you are developing the code, performance is very important.

To scale the application, to maintain the reliability of the application, you need to analyze the performance of your code and need to profile your code.

We will look into profiling the Erlang application using fprof and how to analyze its output. frpof is the tool provided with the Erlang, so you need not to install it separately.

What is fprof?

It provides the most detailed information about where the program time is spent, but it significantly slows down the program it profiles. It is a standard tool to profile the code.

Now, we will log in to Erlang Remote shell and start doing:

These steps will generate an analysis file in /tmp/application.analysis which contains the result of the analysis of your application.

Now, we will look into how to read this analysis file.

The file will look like this. The fields are:

Install kcachegrind on mac by:

Now, convert the output of the fprof to callgrind format by:

Now you can open the file in the qcachegrind app in mac. The visualization will look like:

You can get this kind of detailed analysis of the application with graphs.

P.S. This is one way to profile the erlang app. There are other ways to profile the Erlang application, which we will cover later.

Add a comment

Related posts:

Origami molhado

Sentir falta do que se foi, dói de mais. Pensei ser forte mas não me passo de um papel que quando se molha com suas lágrimas de saudade, enxarca o papel do meu coração e todo aquele vazio volta a me…

A Rapidly Changing World Needs A Rapidly Changing You

I have felt ready for some time, and yet, I feel apprehension as never before. Today, I read about the tragic fate of wildlife, confined and brutalized so that people can take selfies with drugged…

How to Help Clients Create Healthy Financial Routines

Most of the people I know have an established, regular pattern when it comes to keeping their teeth clean or their hair trimmed. They create a routine because they know that the more regular they…