Skip to content

Conversation

olia110
Copy link
Contributor

@olia110 olia110 commented Aug 6, 2025

This Pull request:

This PR introduces a time-based profiler for the SOFIE inference engine. It provides developers with the tools to analyze the performance of generated C++ models by measuring the execution time of each individual operator, as well as the total inference time.

Changes or fixes:

  • A new option, SOFIE::Options::kProfile, is added to the RModel::Generate() method to enable the feature.
  • When enabled, a new RModelProfiler helper class instruments the generated doInfer() method with std::chrono timers.
  • Utility functions like PrintProfilingResults() and GetOpAvgTime() are added to the generated Session struct to access the collected timing data.

Checklist:

  • Tested changes locally by running inference in a loop and verifying the timing results.
  • updated the docs (if necessary)

@olia110 olia110 force-pushed the feature/sofie-profiler branch from bd2f22f to 0c9415b Compare August 11, 2025 10:58
@olia110 olia110 changed the title Profiler code generation for SOFIE [SOFIE] Profiler code generation for SOFIE Aug 11, 2025
@olia110 olia110 changed the title [SOFIE] Profiler code generation for SOFIE [tmva][sofie] Profiler code generation for SOFIE Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants