Include a profiling tool and implements all func codes