updated to latest profiler API