Manual:$wgProfileToDatabase

Details
Log sums from profiling into "profiling" table in db.

In order to use this, you have to create the 'profiling' table in your database. See maintenance/archives/patch-profiling.sql.