export profiling function