【Hackathon 9th Sprint No.9】feat: support direct log file parsing in analysis scripts -part#358
Merged
JewelRoam merged 5 commits intoPaddlePaddle:developfrom Nov 13, 2025
Merged
Conversation
- Add parse_logs_to_data() function to directly parse log files without intermediate JSON - Update scan_all_folders() to automatically detect and handle log files - Support both Paddle (with subgraph) and PyTorch (without subgraph) samples - Update plot_ESt.py and plot_St.py help documentation - Remove dependency on log2json intermediate step for analysis workflow
- Use early returns and continue statements to reduce nesting - Optimize if nesting in extract_speedup_data_from_subdirs, parse_logs_to_data, and calculate_s_scores functions - Improve code readability and maintainability by flattening nested conditionals
|
Thanks for your contribution! |
- Remove subdirectory scanning logic, only handle two cases: (1) single log file → one curve (2) directory with multiple log files → each log file becomes a curve - Add support for .txt files in addition to .log files - Further simplify code by extracting duplicate logic and removing unnecessary code - Move speedup pattern matching earlier in parse_logs_to_data for better flow - Use loops to handle e2e/gpu processing to eliminate code duplication
JewelRoam
approved these changes
Nov 13, 2025
roll-away
pushed a commit
to roll-away/GraphNet
that referenced
this pull request
Nov 19, 2025
…nalysis scripts -part (PaddlePaddle#358) * feat: support direct log file parsing in analysis scripts - Add parse_logs_to_data() function to directly parse log files without intermediate JSON - Update scan_all_folders() to automatically detect and handle log files - Support both Paddle (with subgraph) and PyTorch (without subgraph) samples - Update plot_ESt.py and plot_St.py help documentation - Remove dependency on log2json intermediate step for analysis workflow * Refactor if nesting in analysis_util.py to reduce indentation levels - Use early returns and continue statements to reduce nesting - Optimize if nesting in extract_speedup_data_from_subdirs, parse_logs_to_data, and calculate_s_scores functions - Improve code readability and maintainability by flattening nested conditionals * Simplify scan_all_folders and add .txt file support - Remove subdirectory scanning logic, only handle two cases: (1) single log file → one curve (2) directory with multiple log files → each log file becomes a curve - Add support for .txt files in addition to .log files - Further simplify code by extracting duplicate logic and removing unnecessary code - Move speedup pattern matching earlier in parse_logs_to_data for better flow - Use loops to handle e2e/gpu processing to eliminate code duplication
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
部分实现了功能:多曲线绘制、错误码检查接口