microsoft / microsoft-performance-toolkit-sdk

Software Development Kit for the Microsoft Performance ToolKit
MIT License
156 stars 55 forks source link

Enable custom processor environments in the Engine. #383

Closed jmaxson-ms closed 4 days ago

jmaxson-ms commented 5 days ago

This change allows a factory to be passed into EngineCreateInfo that will be used to create custom processor environments.

A new default factory, RuntimeProcessorEnvironmentFactory, was created and the existing RuntimeProcessorEnvironment was moved from Engine to this class. This default environment is now used if no custom factory is assigned, or if the custom factory returns null.