days
0
-38
-8
hours
0
0
minutes
-1
-3
seconds
-3
-9
search
Amazon CodeGuru for an automated code review

Amazon’s new ML service Amazon CodeGuru: Let machine learning optimize your Java code

Maika Möbus
© Shutterstock / tata_illustrator

The ML service Amazon CodeGuru has been released as a preview version. It provides automated code reviews—and is designed to help you find the most expensive bits of code and improve performance. Let’s see how that works and what features the new service offers.

Amazon CodeGuru is a recently launched chargeable machine learning service, currently still in preview mode. It was first announced in Andy Jassy’s keynote at Amazon’s AWS re:Invent 2019 conference that took place on December 2–6, 2019.

The service is comprised of two parts: Amazon CodeGuru Reviewer executes automated code reviews and provides code issue detection, whereas Amazon CodeGuru Profiler searches for ways to improve the application’s performance.

Amazon CodeGuru was trained on internal Amazon projects as well as more than 10,000 open source GitHub projects.

SEE ALSO: TensorFlow 2.1.0 will include breaking changes: First release candidate available

Amazon CodeGuru Reviewer

Amazon CodeGuru Reviewer is designed to find issues in code via automatic detection and provide recommendations on resolving them. It checks for AWS APIs and SDK usage, concurrency issues, resource leaks, and more.

For this, the Reviewer analyzes source code pull requests and flags found issues:

Source: Amazon

The CodeGuru Reviewer training is based on rule mining and supervised machine learning models, using logistic regression and neural networks. At the moment, it supports Java code that is stored in GitHub or AWS CodeCommit repositories.

Amazon CodeGuru Profiler

The second component of CodeGuru is Amazon CodeGuru Profiler, which is designed to identify the most “expensive” lines of code. Like the CodeGuru Reviewer, it currently supports Java applications. Amazon CodeGuru Profiler is comprised of an agent, a profiler service and intelligent recommendations.

The code analysis results are displayed in an interactive flame graph. The service offers recommendations, as shown here, that should help reduce CPU usage, cut costs and achieve performance improvements.

Source: Amazon

SEE ALSO: Artificial intelligence & machine learning: The brain of a smart city

Amazon CodeGuru Profiler is compatible with applications hosted on Amazon EC2, Amazon ECS, Amazon EKS, and AWS Fargate.

See Amazon CodeGuru’s site for more information as well as pricing details and examples.

Author
Maika Möbus
Maika Möbus has been an editor for Software & Support Media since January 2019. She studied Sociology at Goethe University Frankfurt and Johannes Gutenberg University Mainz.

guest
0 Comments
Inline Feedbacks
View all comments