enable profiling information in debug build
fix comparison between signed and unsigned integer