-
Couldn't load subscription status.
- Fork 353
Add profiler and Perfetto UI link #1984
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
Conversation
|
Stack from ghstack (oldest at bottom): |
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/1984
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New Failures, 10 PendingAs of commit d9c8cec with merge base 42e1345 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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.
Pull Request Overview
This PR adds profiling enhancements and Perfetto UI integration to the microbenchmarks suite.
- Introduces functions to upload trace files and generate a Perfetto UI URL.
- Adds a model profiling function using Torch Profiler.
- Updates benchmark configurations, results printing, and error logging to include profiler output.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| benchmarks/microbenchmarks/utils.py | Adds functions for profiling, trace file upload, and Perfetto UI URL generation. |
| benchmarks/microbenchmarks/test/benchmark_config.yml | Updates configuration to enable profiling for specific benchmarks. |
| benchmarks/microbenchmarks/benchmark_runner.py | Improves error logging and conditional CSV-generation based on benchmark results. |
| benchmarks/microbenchmarks/benchmark_inference.py | Integrates the new profiling function into the benchmarking process. |
Comments suppressed due to low confidence (1)
benchmarks/microbenchmarks/test/benchmark_config.yml:39
- The comment contradicts the value (true) for enable_profiler. Update the comment to accurately reflect that profiling is enabled.
enable_profiler: true # Disable profiling for this model
| DEFAULT_TTL_SEC = 28 * 24 * 60 * 60 | ||
| file_name = os.path.basename(local_path) | ||
| manifold_path = os.path.join( | ||
| MANIFOLD_FOLDER, f"{os.getlogin()}_{str(uuid.uuid4())}_{file_name}" |
Copilot
AI
Apr 1, 2025
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.
Using os.getlogin() may cause errors in non-interactive environments. Consider using getpass.getuser() for improved robustness.
| MANIFOLD_FOLDER, f"{os.getlogin()}_{str(uuid.uuid4())}_{file_name}" | |
| MANIFOLD_FOLDER, f"{getpass.getuser()}_{str(uuid.uuid4())}_{file_name}" |
No description provided.