Profiling caching infrastructure