# Debugger `[Shared]`

A module to use debugger module client & server side.

## JO Functions

### jo.debugger.perfomance()

Measures the performance of a callback function execution. <br>

#### Syntax

```lua
jo.debugger.perfomance(title, cb)
```

#### Parameters

`title` : _string_ `[Optional]`
> Title for the performance measurement - default:""
>

`cb` : _function_
> The callback function to measure
>

#### Return Value

Type : _number_

> Duration in microseconds

---

### jo.debugger.perfomanceRepeat()

Measures the average performance of multiple executions of a callback function. <br>

#### Syntax

```lua
jo.debugger.perfomanceRepeat(title, numberRepeat, cb, waitBetweenRepeat)
```

#### Parameters

`title` : _string_ `[Optional]`
> Title for the performance measurement - default:""
>

`numberRepeat` : _integer_ `[Optional]`
> Number of times to repeat the measurement - default:1
>

`cb` : _function_
> The callback function to measure
>

`waitBetweenRepeat` : _integer_ `[Optional]`
> Time to wait between repetitions in ms - default:nil
>

#### Return Value

Type : _number_

> Average duration in microseconds
