# ProfilingPanel

> Presents captured profiling spans and contributes the processing-time and peak-memory toolbar metrics.

[API reference](/docs/api/index.md) › [Yii3 Debug](/docs/extensions/yii3-debug/reference/index.md) › [Panel](/docs/extensions/yii3-debug/reference/panel/index.md) › ProfilingPanel

| final readonly class | `Yii3\Debug\Panel\ProfilingPanel` |
| --- | --- |
| Implements | [`ToolbarPanelProviderInterface`](/docs/extensions/yii3-debug/reference/panel/toolbarpanelproviderinterface/index.md), [`ToolbarTitleProviderInterface`](/docs/extensions/yii3-debug/reference/panel/toolbartitleproviderinterface/index.md) |
| Source | [`src/Panel/ProfilingPanel.php`](https://github.com/yii3/debug/blob/main/src/Panel/ProfilingPanel.php#L32) |

Presents captured profiling spans and contributes the processing-time and peak-memory toolbar metrics.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`hasContent()`](#method-hasContent) | Reports the panel as listable for every capture. | `ProfilingPanel` |
| [`icon()`](#method-icon) | Returns the shared Debug Core icon key. | `ProfilingPanel` |
| [`id()`](#method-id) | Returns the stable identifier of this panel. | `ProfilingPanel` |
| [`name()`](#method-name) | Returns the human-readable panel name. | `ProfilingPanel` |
| [`render()`](#method-render) | Renders the unified Timeline and profiling details with navigation, filters, sorting, and pagination. | `ProfilingPanel` |
| [`toolbarItems()`](#method-toolbarItems) | Builds the toolbar metrics shown for this panel. | `ProfilingPanel` |
| [`toolbarTitle()`](#method-toolbarTitle) | Returns the toolbar title, hidden so the gauge icon stands alone. | `ProfilingPanel` |

## Method details

### hasContent() <span id="method-hasContent"></span>

```php
public function hasContent(array<string, mixed> $payload): bool
```

Reports the panel as listable for every capture.

The collector records timing for every request, so the panel stays reachable from the sidebar even when the
capture holds no span.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$payload` | `array<string, mixed>` | Serialized panel payload. |

**Returns**

`bool`: Always `true`.

### icon() <span id="method-icon"></span>

```php
public function icon(): string
```

Returns the shared Debug Core icon key.

**Returns**

`string`: Icon key for the toolbar chip.

### id() <span id="method-id"></span>

```php
public function id(): string
```

Returns the stable identifier of this panel.

**Returns**

`string`: Stable panel ID.

### name() <span id="method-name"></span>

```php
public function name(): string
```

Returns the human-readable panel name.

**Returns**

`string`: Panel display name.

### render() <span id="method-render"></span>

```php
public function render(Yii3\Debug\Panel\PanelRenderInput $input): string
```

Renders the unified Timeline and profiling details with navigation, filters, sorting, and pagination.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$input` | [`PanelRenderInput`](/docs/extensions/yii3-debug/reference/panel/panelrenderinput/index.md) | Payload, request context, and request summary of the page being rendered. |

**Returns**

`string`: Rendered detail content.

### toolbarItems() <span id="method-toolbarItems"></span>

```php
public function toolbarItems(array<string, mixed> $payload): list<PHPForge\Debug\Toolbar\ToolbarItem>
```

Builds the toolbar metrics shown for this panel.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$payload` | `array<string, mixed>` | Serialized panel payload. |

**Returns**

`list<PHPForge\Debug\Toolbar\ToolbarItem>`: Processing time and peak memory of the capture.

### toolbarTitle() <span id="method-toolbarTitle"></span>

```php
public function toolbarTitle(): string
```

Returns the toolbar title, hidden so the gauge icon stands alone.

**Returns**

`string`: Empty string, keeping the gauge icon while hiding the text label.