This code helps understanding the differences between Sampling and Instrumentation to measure performance of Java Code.
While I do not intend to work much on this, pull requests are happily accepted. Please take into account that this is for educational purpose, so please do not turn this code into a super smart profiler.