He 'profited by' his experience/mistake. [=he learned something useful from his experience/mistake]
The book can be read with 'profit' by anyone who wants to understand how the system works.
We sold the house 'at a profit'. [=we made a profit when we sold our house]
(..) glad-handing the high rollers. He speaks Spanish, German and ltalian and is getting good at Japanese. He 's out by and is handed a black portfolio. Contents: profits and new security codes. He heads to the restaurant. Like I said, a machine. That portfolio contains codes to all the cage doors? (..)2001 Ocean's Eleven