refactor the profile fragment

Signed-off-by: Wang Bin <wangbin.zibo@gmail.com>