Arithmetic Profiling Code