fivem
fivem copied to clipboard
feat(core/profiler): add natives exposing start/stop recording
- currently trying to do recordings can only be done via console commands, which can be tedious
- this adds
PROFILER_START_RECORDING
andPROFILER_STOP_RECORDING
to allow automating profiler captures
Goal of this PR
Allow resources to start/stop recording to allow for easier automation of testing performance of code
How is this PR achieving the goal
Exposes PROFILER_START_RECORDING
and PROFILER_STOP_RECORDING
This PR applies to the following area(s)
Natives, SCRT
Successfully tested on
C#
Platforms: Windows
Checklist
- [x] Code compiles and has been tested successfully.
- [x] Code explains itself well and/or is documented.
- [x] My commit message explains what the changes do and what they are for.
- [x] No extra compilation warnings are added by these changes.