separated profiler to be used in cs_io