1. A method comprising: intercepting communications between a profiler and a profiling application program interface (API) via a profiling shim; logging calls to functions from and to the profiler; and chaining the calls from and to the profiler through the profiling shim.