The pnl calculation is done in 2 steps. By definition, you value your portfolio as of today, you value your portfolio as of yesterday, and the difference will be your pnl. Now that's an important number (that gets reported, etc.) but that doesn't give you a lot of information on what generated that pnl. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.