Amazon CodeGuru

Find your most expensive lines of code

Find your most expensive lines of code and improve code quality

Amazon CodeGuru is a developer tool powered by machine learning that provides intelligent recommendations for improving code quality and identifying an application’s most expensive lines of code. Integrate Amazon CodeGuru into your existing software development workflow where you will experience built-in code reviews to detect and optimize the expensive lines of code to reduce costs.

Amazon CodeGuru Profiler helps developers find an application’s most expensive lines of code along with specific visualizations and recommendations on how to improve code to save money. Learn more »

Amazon CodeGuru Reviewer uses machine learning to identify critical issues and hard-to-find bugs during application development to improve code quality. Learn more »

Introduction to Amazon CodeGuru (2:20)


Discover where your application is costing you money

The more efficient the code and application is, the less costly it is to run. Developers can use Amazon CodeGuru Profiler to find potential savings for any application running in production. Amazon CodeGuru Profiler provides visualizations and recommendations on how to fix performance issues and the estimated cost of running inefficient code, helping developers prioritize remediation. Optimize performance for any application running on AWS Lambda, Amazon EC2, Amazon ECS, AWS Fargate, or AWS Elastic Beanstalk, and on-premise. For EC2, Containers, and on-premise applications, attach the profiler agent to your JVM and, for Lambda Instantiate, attach the agent inside your Lambda code with a one line change.

Find costly code issues before they hit production

Trained on decades of knowledge and experience, Amazon CodeGuru Reviewer uses machine learning, best practices, and hard-learned lessons across millions of code reviews and thousands of applications profiled on open-source projects and internally at For code reviews, developers commit their code to GitHub, GitHub Enterprise, Bitbucket Cloud, AWS CodeCommit and add Amazon CodeGuru Reviewer as one of the code reviewers, with no other changes to the normal development process. Amazon CodeGuru Reviewer analyzes existing code bases in the repository, identifies hard to find bugs and critical issues with high accuracy, provides intelligent suggestions on how to remediate them, and creates a baseline for successive code reviews.

Catch your most expensive line of code today

Amazon CodeGuru Profiler automatically detects anomalies in performance of critical methods in the application stack that start consuming more CPU or show increased latency. Within 10 minutes it notifies the designated developer of the anomaly. This early detection and notification prevents the escalation of the issue in production and gives the developer enough time to fix it before it impacts the availability of their service and the experience of their customers.

Amazon CodeGuru Reviewer detects deviation from best practices for using AWS APIs and SDKs, flagging common issues that can lead to production issues, such as detection of missing pagination or error handling with batch operations. It detects concurrency issues such as atomicity violations and the use of classes that are not thread-safe, which are difficult to find even for experienced programmers. It detects when resources are incorrectly closed, creating resource exhaustion and outages. It also identifies lack of input validation, where unsanitized inputs can lead to issues such as injection attacks or denial of service.


Customer success


"When we detect anomalies in production, we have been able to reduce the investigation time from days to hours and sometimes minutes thanks to AWS CodeGuru’s continuous profiling feature. Our developers now focus more of their energy on delivering differentiated capabilities and less time investigating problems in our production environment."

Zak Islam, Head of Engineering, Tech Teams, Atlassian

Learn how Atlassian profiles services in production with CodeGuru Profiler »



"Part of application development is the creation of performant systems as well as the feedback and continuous improvement of existing systems. This starts with a strong architectural foundation but often ends in the details of the application code. When our team at EagleDream is digging into these details there are a variety of tools at our disposal, and using both static and dynamic analysis is helpful. We’ve found that the runtime analysis offered by the Amazon CodeGuru Profiler is one of the simplest and fastest to get running, and generates insights into the application code that are easy to remediate. Using this tool we’ve been able to quickly hone in on portions of an application that represent bottlenecks that would have otherwise been difficult to spot, then develop changes that can be implemented and tested with a very fast feedback loop. This allows us to continuously deliver and improve our own workloads and the workloads of our customers, making them more performant while saving on cost at the same time."

Dustin Potter, Principal Cloud Solutions Architect, EagleDream

Read how EagleDream optimizes their applications with CodeGuru Profiler »


"At DevFactory, we manage over 600 million lines of code across over a hundred enterprise software products. A key component of our future roadmap is to turn all our products into cloud-native products that leverage the incredible array of managed services available at AWS. Rebuilding old school, on-prem architectures, and transforming them for the cloud brings a whole set of engineering challenges that range from keeping abreast with all the latest services to adjusting to the paradigm shift that is associated with these architectures. Amazon CodeGuru is an incredibly valuable tool that helps optimize our products’ performance while making sure that we are leveraging these services with all the best practices in place. Without tools like Amazon CodeGuru Reviewer, we wouldn't have been able to rewrite entire products like FogBugz to be AWS cloud-native. We are now using Amazon CodeGuru Profiler to optimize a number of products including EngineYard's container-based 'No Ops' platform and well as the next generation of the Jive collaboration platform."

Rahul Subramaniam, CEO, DevFactory

Learn how DevFactory builds better applications with CodeGuru »


Amazon CodeGuru Reviewer Supports:

  • Reviewer supported language: Java
  • Repositories- GitHub, GitHub Enterprise, Bitbucket cloud, and AWS CodeCommit
  • Recommendations

Amazon CodeGuru Profiler Supports:

  • Java and other JVM languages
  • Amazon EC2, Amazon ECS, Amazon EKS, AWS Fargate, AWS Beanstalk
  • Anomaly detection
  • AWS Lambda
  • On-Premises
  • Flame Graphs
  • Recommendations
Check out the product features

Visit the features page.

Learn more 
Sign up for a free account

Instantly get access to the AWS Free Tier. 

Sign up 
Start building in the console

Get started building with Amazon CodeGuru in the AWS Management Console.

Sign in