Manual:$wgProfileToDatabase

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

In MediaWiki 1.22 and older, in order to use this, you have to create the 'profiling' table in your database. See maintenance/archives/patch-profiling.sql. In newer versions, $wgProfileToDatabase was removed. Configure  with output type "db" instead of using $wgProfileToDatabase.