Hi JoshHart,
Maybe you can refer to Profiler API
, you need to call and use it in your project and it will output the collected data into a .vsp file.
By the way, according to your requirement, we suggest you could use VSDiagnostics.exe tool to collect the data. The tool locates at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Team Tools\DiagnosticsHub\Collector
, and you can write a script (exe or other)for it, then you can package the script and the tool with dependencies , then move it to other machine which doesn't have visual studio.
Best Regards,
Dylan
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our **documentation to enable e-mail notifications if you want to receive the related email notification for this thread.**