Displaying articles created by user in profile page using views I want to display the articles created by user in user profile page. It should also display to anonymous user also.

For example : twitter.com/google displays all tweets by google.

Like that I want to display xyz.com/john. I want to display all articles created by john in user profile page.

I also want to know how to add that view to profile page.
Create a view for content of type all 
Inside the view display node title and all other fields as per your requirement. 
Add a contextual filter content : author uid 
While adding that you will have a option for provide a default value 
select that option and inside that use filter by 'currently logged in user'.
Save it by this you will be able to see all the nodes of current logged in user. 
Inside the path you can enter just any path like '/my-nodes'. and you are done.
If you want you can avoid providing default value and switch to manual input
by placing the path as '/my-nodes/%' and then just add contextual filter as 'content : author:uid' without default value(depends as per the requirement).

For user name you can add a relationship content author:uid then
 in the contextual filter use User name with relationship author:uid