fivem icon indicating copy to clipboard operation
fivem copied to clipboard

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

Open AvarianKnight opened this issue 9 months ago • 0 comments

  • currently trying to do recordings can only be done via console commands, which can be tedious
  • this adds PROFILER_START_RECORDING and PROFILER_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.

AvarianKnight avatar Apr 25 '24 05:04 AvarianKnight