How can i add edit profile link dynamically?
You can use the link directly as /user. It goes to the profile page which is similar to the /user/{$GLOBALS['user']->uid}

OR 

Use Token module  to create a menu link with this path: user/[current-user:uid]/edit.