cpu and gpu optimizations in profile