Profiling of function cache hits and misses