Note: it's all the same in Percona server, but I won't file a bug for Percona, because there the whole 'profiling' logic is deprecated, as it is in MySQL 5.6. In MariaDB 10.1 it's still not deprecated, so it should work.
Session profiling is OFF
Session profiling is ON