Performance Monitoring and Statistics for Java Code