profiling support

works only with linux for now