Skip to content

Conversation

@xiaofeihan1
Copy link
Contributor

GenAI does not support profiling within a specific time range. This PR addresses it.

This PR introduces start_profiling() and end_profiling() APIs in the Model class, allowing developers to perform profiling only within a selected time span.

A Model owns an ONNX Runtime Session and the relationship is 1:1. Since profiling in ORT operates at the session level, we expose these APIs at the Model layer to make profiling control more accessible.

Note: We don't want to expose these in Generator layer. Because we have a concern for Generator A start profiling and Generator B end profiling.

@xiaofeihan1 xiaofeihan1 requested a review from qjia7 November 27, 2025 08:19
@xiaofeihan1 xiaofeihan1 marked this pull request as draft November 27, 2025 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants