-
Notifications
You must be signed in to change notification settings - Fork 22
Return default line profiler output when timeout happens #859
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
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Type
Bug fix
Description
Handle line profiler timeouts gracefully
Return default empty profiling output
Add warning logs on timeout detection
Preserve existing fallback for empty output
Diagram Walkthrough
flowchart LR A["Run line_profiler_step"] -- "Timeout occurs (TestResults empty)" --> B["Log warning"] B -- "Return default output" --> C["timings: {}, unit: 0, str_out: ''"] A -- "str_out == ''" --> D["Log couldn't run profiler"]File Walkthrough
function_optimizer.py
Add default output on profiler timeoutcodeflash/optimization/function_optimizer.py