vm.cg attr and new function myperf_single