database: Clean up profiling code in DatabaseBase
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 29 Aug 2016 17:41:59 +0000 (10:41 -0700)
committerKrinkle <krinklemail@gmail.com>
Mon, 29 Aug 2016 22:13:03 +0000 (22:13 +0000)
commit46b029e17c478cdc06799b573f91cdc42402e512
tree51456609f9c1298e3a035da20081a30609088011
parent20400cb21fd566c1cea4553cd040171096216654
database: Clean up profiling code in DatabaseBase

This cuts down on conditionals and ScopedCallback use.

Change-Id: Ie478c613b062e45120cdd626f9fb9de09594c638
includes/db/Database.php
tests/phpunit/includes/db/DatabaseMysqlBaseTest.php
tests/phpunit/includes/db/DatabaseTestHelper.php