initial code for ruby profiling