telemetry: use dictionary of profiling functions