Skip to content

Add init time profiling draft #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: export-D63736779
Choose a base branch
from

Conversation

shewu-quic
Copy link

This PR is to show some init time related log at runtime.

  1. This is all init time on the QnnBackend.
    [Time consuming during init in QnnBackend] Init Time: 219 milliseconds
  2. It is generated from qnn profiling.
    QNN (load binary) time includes RPC (load binary) time.
    RPC (load binary) time includes QNN accelerator (load binary) time.
    QNN accelerator (load binary) time includes Accelerator (load binary) time.
[INFO] [Qnn ExecuTorch]: Type: 1002, Init Event Name: RPC (load binary) time, Event Data: 16303 us
[INFO] [Qnn ExecuTorch]: Type: 1003, Init Event Name: QNN accelerator (load binary) time, Event Data: 15899 us
[INFO] [Qnn ExecuTorch]: Type: 1004, Init Event Name: Accelerator (load binary) time, Event Data: 15709 us
[INFO] [Qnn ExecuTorch]: Type: 100, Init Event Name: QNN (load binary) time, Event Data: 53819 us

image
(refer to qnn docs)
3. This is overall loading time in main.cpp

I 00:00:00.386326 executorch:main.cpp:358] [Time consuming during load() function] init took 383 ms

@shewu-quic shewu-quic marked this pull request as draft October 7, 2024 09:33
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.

1 participant