# Profiler View

## Overview

The **Profiler** allows to analyze the performance of blocks of **Nodes** in the **Logic**, which we call **Profiler Blocks**. These **Profiler Blocks** have to be set in the **Logic Editor** by using the **Profiler Start** and **Profiler Stop** **Nodes**.

![](https://640518663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEu3ZQiMi2jYaDHPO7K5c%2Fuploads%2Fgit-blob-7e28002d7f62667166dc2a49e237de622b900099%2Fprofiler-view.png?alt=media)

For capturing with the **Profiler**, the **Project** simulation must be playing and the **Profiler** has to be connected with it via the port that has been set in the **Project Settings**.

Once the **Profiler** is connected, it allows to start and stop capturing with the buttons on the **Form** toolbar. After a capture has ended, its timeline is shown on the **Diagram** and there the **Profiler Blocks** can be selected. Their data will then appear on the **Stats** panel.

![](https://640518663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEu3ZQiMi2jYaDHPO7K5c%2Fuploads%2Fgit-blob-ba5ae59b0204c1858d8dcf3317a34851e5455b5c%2Fprofiler-view-connected.png?alt=media)

The **Profiler** window consists of four panels (**Form**, **Diagram**, **Stats**, **FPS Monitor**), which are explained in detail below. These panels can be shown or hidden by right-clicking on the top bar of any of them and selecting or deselecting them from the drop-down Menu that appears.

## Form

The **Form** toolbar has buttons for configuring the connection of the **Profiler**, starting, stopping, and saving a capture, and customizing the view of the rest of the panels.

![](https://640518663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEu3ZQiMi2jYaDHPO7K5c%2Fuploads%2Fgit-blob-74d6178f6efa906823420119c50124dd38287ccc%2Fprofiler-form.png?alt=media)

## Diagram

The **Diagram** shows the timeline with the capture. It is possible to zoom in and out by scrolling and move through the timeline by clicking and dragging.

![](https://640518663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEu3ZQiMi2jYaDHPO7K5c%2Fuploads%2Fgit-blob-29a8838acc38d7908063472a9294af358771f30c%2Fprofiler-diagram.png?alt=media)

For selecting a **Block** or a time range to learns its statistics, use the right-click button. For a time range, right-click somewhere in the timeline and drag over the desired range.

After a selection has been made, the statistics of the included **Blocks** appear in the **Stats** panel.

![](https://640518663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEu3ZQiMi2jYaDHPO7K5c%2Fuploads%2Fgit-blob-180ca1e97252adace4356873447f3a90b16e7fdd%2Fprofiler-drag.gif?alt=media)

## Stats

The **Stats** panel shows the data collected for the blocks selected in the **Diagram**.

![](https://640518663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEu3ZQiMi2jYaDHPO7K5c%2Fuploads%2Fgit-blob-a0e84a8cebf8327673f3dd70b0ec259f61d260ea%2Fprofiler-stats.png?alt=media)

Right-clicking on a block opens a drop-down Menu with the viewing options, including `Select Columns`, which allows to select which columns are shown on the stats table.

![](https://640518663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEu3ZQiMi2jYaDHPO7K5c%2Fuploads%2Fgit-blob-81f3fb25fa0885e6e200b8aa564026e5fc192171%2Fprofiler-stats-menu.png?alt=media)

## FPS Monitor

The **FPS Monitor** shows the frame rate of the player in real time when the **Profiler** is connected.

![](https://640518663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEu3ZQiMi2jYaDHPO7K5c%2Fuploads%2Fgit-blob-592f1a0351ad5aa1c26d10f03a9725d0b2c54186%2Fprofiler-fps-monitor.png?alt=media)

## See Also

* [**Logic Editor**](https://docs.incari.com/incari-studio/2021.5/modules/logic-editor)
* [**Profiler Start**](https://docs.incari.com/incari-studio/2021.5/toolbox/development/profiler-start)
* [**Profiler Stop**](https://docs.incari.com/incari-studio/2021.5/toolbox/development/profiler-stop)
* [**Project Settings**](https://docs.incari.com/incari-studio/2021.5/project-settings#profiler)

## External Links

* [*Profiling (computer programming)*](https://en.wikipedia.org/wiki/Profiling_\(computer_programming\)) on Wikipedia.
