Change profiling mode from boolean to string

please use `in`