Support Dump forward api python call stack #76143
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Category
User Experience
PR Types
New features
Description
支持根据唯一的api name导出前向api
新增功能:
通过设置
FLAGS_dump_api_python_stack_path指定一个文件路径,来导出所有前向API对应的调用栈。输出的文件会以 FLAGS_dump_api_python_stack_path中指定的文件路径
+ .xxxx的格式,xxxx是进程的pid。修复之前存在的问题:
tensor_md5_checksum_output_dir命名错误,应该是描述一个文件路径而非目录的路径md5_checksum功能Forward Debug Info,用于以后根据GLOG的输出构造前向图时使用。linked_flags_["dump_api_python_stack_path"] = {{"enable_unique_name", "true"}, {"call_stack_level", "3"}};