Prashant Gupta
Introduction to Sonar This Presentation is About oCode Analysis, not Run-Time monitoring oThis Presentation is NOT about Performance Analysis Tools •Profiling •Jconsole or other Dynamic Memory Monitoring •Debugging Tools
Code Review Tools Advantages of Code Review Tools Aid in comparing before and after changes Source Code repository integration. FindBugs,PMD,CheckStyle,Jdepend,Javancss..etc
SONAR o A platform to manage code quality o Free, open source, web-based portal o Backed by o Aggregates well-known tools •Static analysis (PMD, findbugs, Checkstyle) •Duplicate code (Squid, CPD) •Code coverage (Cobertura, JaCoCo) Why? Code quality analysis helps you to make your code: less error-prone more reliable more readable more welcoming to new contributors
SONAR Portal
SONAR– Basic statistics
SONAR Example – Front Dashboard
SONAR Application Dashboard
SONAR Violations Drilldown
SONAR Hotspots
SONAR Drilldown continue ...
Sonar Tool - JAVA code analysis

Sonar Tool - JAVA code analysis

Editor's Notes

  • #3 Profiling :  The ability to analyze the performance of a Java program or to gain a comprehensive understanding of the overall performance of an application. Crucial data on object allocations, garbage collection cycles, object references, method time stamps, and thread or object  interactions can be displayed and aid in determining which components of code are heaveily effecting the overall performance of a program. The set of profiling tools available in the market for Profiling and Logging perspective. Jconsole :The JConsole graphical user interface is a monitoring tool that complies to the Java Management Extensions (JMX) specification. JConsole uses the extensive instrumentation of the Java Virtual Machine (Java VM) to provide information about the performance and resource consumption of applications running on the Java platform. Debugging tools : Having ability to debug java program enables to find you any subtle bug which is not visible during code review or comes when a particular condition offer Read more: http://javarevisited.blogspot.com/2011/07/java-debugging-tutorial-example-tips.html#ixzz3AuOxULAC There are many types of debuggers, and numerous tools  available in the market Based on the requirements.
  • #5 Courtesy & Source : http://www.sonarqube.org/