Skip to content

Conversation

@Dayuxiaoshui
Copy link
Contributor

@Dayuxiaoshui Dayuxiaoshui commented Nov 13, 2025

部分实现了功能:多曲线绘制、错误码检查接口

Dayuxiaoshui and others added 4 commits November 12, 2025 15:49
- 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
@paddle-bot
Copy link

paddle-bot bot commented Nov 13, 2025

Thanks for your contribution!

@paddle-bot paddle-bot bot added the contributor External developers label Nov 13, 2025
- 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 JewelRoam merged commit c746b9a into PaddlePaddle:develop Nov 13, 2025
3 checks passed
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants