Introduction

Atlassian Profiling is a simple library for run-time profiling of a J2EE application.

Have you ever found yourself profiling code, with calls like this?

long startTime = System.currentTimeMillis()
// do something
System.out.println("Something took " + (System.currentTimeMillis() - startTime) + "ms to run");
            

The problem with the above is that it takes too long to type, it doesn't allow for any sort of nesting of times, and it has to be manually positioned at every piece of code that you wish to profile.

Wouldn't it be nice if you could profile your MVC actions? How about finding out how long your JSPs took to run? How about profiling all methods in a class with one line of code? Its all very possible (and easy!)

  • See an example of usage and sample output profiling trace.
  • To learn how to configure Profiling, seeconfiguration.
  • Code Profiling shows you how to use this in your own application.
  • Want a copy yourself? Get thedownloads.