support value profiling for opt

Signed-off-by: xiehuc <xiehuc@gmail.com>