Change profiling mode from boolean to string

as above