[PLAT-882] Temporary hack to export function profiling statistics.