This article from sqlservercentral sharing scripts and explanations on how to capture the SQL baseline from start to finish. Although this is not something that every developers have a chance to get involved with, but someday, it might come in handy.