Lightweight manual profiling for ruby