@@ -529,24 +529,20 @@ def get_optimization_impact(
529529 function_trace_id : str ,
530530 coverage_message : str ,
531531 replay_tests : str ,
532- concolic_tests : str ,
533532 root_dir : Path ,
534533 ) -> str :
535- """Optimize the given python code for performance by making a request to the Django endpoint .
534+ """Compute the optimization impact of current Pull Request .
536535
537536 Args:
538- original_code: dict,
539- new_code: dict,
540- explanation: Explanation,
541- existing_tests_source: str,
542- generated_original_test_source: str,
543- function_trace_id: str,
544- coverage_message: str,
545- replay_tests: str,
546- concolic_tests: str,
547- root_dir: Path,
548- original_line_profiler_results: str,
549- optimized_line_profiler_results: str,
537+ original_code: dict -> data structure mapping file paths to function definition for original code
538+ new_code: dict -> data structure mapping file paths to function definition for optimized code
539+ explanation: Explanation -> data structure containing runtime information
540+ existing_tests_source: str -> existing tests table
541+ generated_original_test_source: str -> annotated generated tests
542+ function_trace_id: str -> traceid of function
543+ coverage_message: str -> coverage information
544+ replay_tests: str -> replay test table
545+ root_dir: Path -> path of git directory
550546
551547 Returns:
552548 -------
@@ -574,7 +570,6 @@ def get_optimization_impact(
574570 "trace_id" : function_trace_id ,
575571 "coverage_message" : coverage_message ,
576572 "replay_tests" : replay_tests ,
577- "concolic_tests" : concolic_tests ,
578573 "speedup" : f"{ 100 + 100 * float (explanation .speedup ):.2f} %" ,
579574 "loop_count" : explanation .winning_benchmarking_test_results .number_of_loops (),
580575 "benchmark_details" : explanation .benchmark_details if explanation .benchmark_details else None ,
0 commit comments