Added profiling in rendering example