[PROTO] correct handling of the flag 'function profiling'