microsoft / microsoft/onnxruntime
[Feature Request]
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 21.9k
- Forks
- 4.2k
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 184
Description
Describe the feature request
want to know how to get these metrics during context cache creation
- CPU utilization
- Memory/RAM usage
If I use -I switch it runs inference so that is not what i want
I am using -n switch to just create the session to dump the context cache model.
Describe scenario use case
./onnx-rt/bin/onnxruntime_perf_test.exe -e vitisai -C "ep.context_enable|1 ep.context_file_path|ctx.onnx" -n input_model.onnx
This generates the context cache model and reports session creation time. I want to also print the CPU utilization and RAM usage during this step
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the onnxruntime_perf_test.exe entry point and the -n context-cache creation path shown in the report. Determine where session creation time is reported, then verify that CPU utilization and memory/RAM usage are printed for this step without running inference; no specific source file or test is named.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- performance, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100