Improve detection of unprofilable events in ccl_prof_add_event()

Add export profiling info to canonical example