simple profiling mechanism