-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Framework]Add Android performance tools #10075
Conversation
Thanks for your contribution! |
lite/api/tools/get_performance.cc
Outdated
#include <cstdlib> | ||
#include <iostream> | ||
#include <vector> | ||
#ifdef LITE_WITH_ARM |
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.
不需要这个宏吧,android只在arm下enable
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.
工具设计之初是仅依赖于目标ARM平台支持的simd指令集,受限于时间当前仅验证了android平台。那我先删除掉这个头文件依赖吧,确实也没用到intrinsic函数。
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
PR devices
Arm
PR types
Performance optimization
PR changes
API
Description
Add tools to get the CPU performance of the current Android device, print out the frequency of each CPU core, and print the peak floating point capability (GFLOPS) of the specific core at the same time.