+
+ $trxProfiler = Profiler::instance()->getTransactionProfiler();
+ $trxProfiler->setLogger( LoggerFactory::getInstance( 'DBPerformance' ) );
+ # Catch huge single updates that lead to slave lag
+ $trxProfiler->setExpectation( 'maxAffected', 1000, __METHOD__ );