Amazon CodeGuru Documentation
Find your most expensive lines of code with Amazon CodeGuru
Amazon CodeGuru is a developer tool that uses the power of machine learning to help you improve your code maintainability and find your most expensive lines of code. It performs code reviews and provides application performance recommendations.
Amazon CodeGuru Reviewer
Amazon CodeGuru Reviewer helps you find issues in your Java and Python code and helps formulate recommendations you can consider when remediating them. To begin reviewing code, you can associate your existing code repositories with CodeGuru.
Security Detection
CodeGuru Reviewer helps you improve code security and provides recommendations for best practices. It uses automated reasoning to help analyze data flow from source to sink and across multiple functions to detect security vulnerabilities.
Secrets detection
CodeGuru Reviewer Secrets Detector uses machine learning-based analysis to help you detect secrets that are hardcoded in your repository or configuration files. Part of CodeGuru Reviewer, Secrets Detector is a mechanism that helps checks code for these secrets and steps to secure them using AWS Secrets Manager.
Code quality
CodeGuru Reviewer identifies code quality issues.
Incremental code reviews
Incremental code reviews are created when you create a pull request from an associated repository. These code reviews are designed to scan the changed code in a pull request. CodeGuru Reviewer also provides a pull request dashboard that lists information for all code reviews.
Full Repository Analysis
With CodeGuru, you can get ML-powered code review recommendations for lines of code in the associated repositories under a specified code branch. You can run repository scans to get code review recommendations during code migration, code due diligence and periodic code maintainability initiatives. In the CodeGuru console, you can trigger a new analysis on a full repository. CI/CD Integration with GitHub Actions – It is designed so you can configure it to run and provide recommendations on a pull, push, or scheduled run of your pipeline. After you invoke a CodeGuru Reviewer scan via CI/CD, you can view your code quality and security recommendations within the CodeGuru Reviewer Console or within the GitHub’s user interface. With CI/CD integration, you can monitor the quality and security of your code.
Amazon CodeGuru Profiler
Amazon CodeGuru Profiler searches for application performance optimizations.
Always-on profiling of applications in production
CodeGuru Profiler is designed to run on production with low overhead. It enables you to profile and troubleshoot your application using real customer traffic patterns and discover performance issues. With the profiler data and ML-powered recommendations, you can identify and fix performance issues for your applications in production. CodeGuru Profiler also provides a heap summary, which can help you identify what objects are using up memory at any given time.
Understand the runtime behavior of applications
CodeGuru Profiler analyzes application CPU utilization, heap usage, and latency characteristics to show you where you are spending the most cycles or time in your application. The CPU and latency analysis is presented in a manner that helps you understand which code paths consume the most resources, verify that your application is performing as expected, and uncover areas that can be optimized further.
Understand the runtime behavior of applications
Flame graphs visualize the performance of your application by aggregating stack trace samples over a period of time to produce a picture of the application's behavior during that time.
Heap summary
The heap usage analysis is presented on a heap summary visualization which shows you what objects are allocated on your heap.
Intelligent recommendations
CodeGuru Profiler helps identify performance issues in your application and provides ML-powered recommendations you can consider when remediating them. These recommendations help you identify and optimize the most expensive or resource-intensive methods within your code. When it sees opportunities to optimize your application performance, Amazon CodeGuru Profiler explains why it is recommending a change, what’s causing the issue, how to resolve it, and where in the code this issue is impacting your application.
Anomaly detection
Amazon CodeGuru Profiler helps analyze your application profiles and helps detect anomalies in the behavior of your application and its methods. Anomalies are tracked in the Recommendation report of the CodeGuru Profiler console and you can see time series of how the method’s latency behaves over time with anomalies highlighted.
Additional Information
For additional information about service controls, security features and functionalities, including, as applicable, information about storing, retrieving, modifying, restricting, and deleting data, please see https://docs.aws.amazon.com/index.html. This additional information does not form part of the Documentation for purposes of the AWS Customer Agreement available at http://aws.amazon.com/agreement, or other agreement between you and AWS governing your use of AWS’s services.