gpu profiling code