mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
* oxmysql and some lib interface fixes - Various fixes throughout oxmysql - started ox_lib audit * chore: More clean up - Reword some confusing descriptions - Add some descriptions - Type fixes - Spelling and grammar fixes - Swapping in `-` where `*` used to be for bullet point consistency ox_lib - Interface, ACL through GetClosestVehicle audited * chore: Finishing up ox_lib
46 lines
1.6 KiB
Plaintext
46 lines
1.6 KiB
Plaintext
---
|
|
title: Using the Debug UI
|
|
---
|
|
|
|
import { Callout } from 'nextra/components';
|
|
|
|
The debug UI lets you easily see all the queries that have been executed by resources, query response times, and per-resource statistics.
|
|
You should only enable this during production, or with a small player count - for larger servers, look into builtin MySQL logging.
|
|
|
|
Before using the UI first you have to make sure you have the `mysql_ui` convar set to true:
|
|
|
|
```bash
|
|
set mysql_ui true
|
|
```
|
|
|
|
Also make sure that you have `command` or `command.mysql` ace permission access, then you should be able to use the `mysql` command in game.
|
|
|
|
<Callout type="info">
|
|
|
|
You _do not_ need to have the `mysql_debug` enabled to use the debug ui.
|
|
|
|
</Callout>
|
|
|
|
## Main page
|
|
|
|
The main page shows you the resources that ran queries where you can filter them through a search bar, your general data
|
|
along side a pie chart which shows what resources took the most query time.
|
|
|
|

|
|
|
|
## Resource page
|
|
|
|
The resource page shows you all the queries and their execution time inside a table that the resource previously ran,
|
|
alongside the total amount of the queries, execution time and slow queries for the selected resource.
|
|
|
|
Columns can be sorted by ascending and descending order, and hovering over a query will display the full query inside a tooltip.
|
|
|
|
<Callout type="info">
|
|
|
|
Queries that exceed `mysql_slow_query_warning` (default 150ms) are displayed in orange.
|
|
For demonstation purposes the `mysql_slow_query_warning` convar was set to 5 here.
|
|
|
|
</Callout>
|
|
|
|

|