Registering a profiling C function works now, more or less.