profilingMode may be null