# GetFuncAsmClockCycles **Repository Path**: zchhacker/GetFuncAsmClockCycles ## Basic Information - **Project Name**: GetFuncAsmClockCycles - **Description**: 获取函数时钟周期 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-07-04 - **Last Updated**: 2024-07-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: Python ## README # GetFuncAsmClockCycles #### 介绍 获取函数时钟周期 #### 软件架构 软件架构说明 #### 安装教程 1. python version:3.10 2. pip install openpyxl tqdm #### 使用说明 1. 编译.s文件 2. 调整folder_path为.s文件夹路径 3. 遍历目录下的所有.s文件 4. 统计每个.s文件内函数和函数的汇编指令 5. 将 文件名、函数、汇编指令 写入xlsx文件的 1~3 列 6. 4列 设置各指令时钟周期 7. 5列 统计各函数所需时钟周期 8. 显示进度条、输出log、变量行 9. 运行run_process_asm.bat更新ouput.xlsx文件信息 10. 运行get_funcCycles.bat function根据ouput.xlsx文件信息统计函数的全生命周期使用时间 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)