citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.47k stars 2.05k forks source link

feat(core/profiler): add natives exposing start/stop recording #2486

Closed AvarianKnight closed 2 months ago

AvarianKnight commented 4 months ago

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