-
Notifications
You must be signed in to change notification settings - Fork 315
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
Add a tool to generate a time chart from an instrumentation file #2809
Conversation
…ompiled by onnx-mlir with the "--InstrumentReportTime" option. Signed-off-by: Yasushi Negishi <[email protected]>
Signed-off-by: Yasushi Negishi <[email protected]>
Signed-off-by: Yasushi Negishi <[email protected]>
Signed-off-by: Yasushi Negishi <[email protected]>
Signed-off-by: Yasushi Negishi <[email protected]>
Signed-off-by: Yasushi Negishi <[email protected]>
Signed-off-by: Yasushi Negishi <[email protected]>
Signed-off-by: Yasushi Negishi <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,
please confirm that help is provided if I type python make-time chart.py -h
?
Looking forward to use this tool, thanks
@AlexandreEichenberger Thanks for the comments.
|
Jenkins Linux amd64 Build #14929 [push] Add a tool to generate a... started at 20:50 |
Jenkins Linux ppc64le Build #13959 [push] Add a tool to generate a... started at 22:01 |
Jenkins Linux s390x Build #14934 [push] Add a tool to generate a... started at 21:50 |
Jenkins Linux amd64 Build #14929 [push] Add a tool to generate a... passed after 1 hr 9 min |
Jenkins Linux s390x Build #14934 [push] Add a tool to generate a... passed after 1 hr 36 min |
Jenkins Linux ppc64le Build #13959 [push] Add a tool to generate a... passed after 2 hr 4 min |
This PR provides a tool to generate a time chart figure from outputs generated by applications compiled by onnx-mlir with the "--InstrumentReportTime" option.
Users typically use
utils/make-timechart.py
with an instrumentation file. An output file in png format is generated. For example./utils/make-timechart.py resnet50-v2-7.inst
generatesresnet50-v2-7.png
The main graph shows a single folded time line for showing elapsed time of executed operations.
The Y-axis shows the beginning time of each horizontal line, and the X-axis shows time offsets to be added to the Y-axis.
The legend shows the total execution time and number of calls of each operation. As default, operations occupying 1.0%+ of execution time have independent legends, and other operations has a common "Other" legend.
Any comments and design requests are very welcome.
The following is an example scenario to compile, build, run a module and generate its timechart.