Added some primitive profiling.
Updated gradle version.