Manual:$wgProfileToDatabase

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