From 912ec3aef6fcb68e3b2e214094234831fb26437e Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 13 Feb 2011 19:12:24 +0000 Subject: [PATCH] Add profiling to removeWatch --- includes/WatchedItem.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/WatchedItem.php b/includes/WatchedItem.php index 0cf8a77cb3..dd6e247b92 100644 --- a/includes/WatchedItem.php +++ b/includes/WatchedItem.php @@ -84,6 +84,8 @@ class WatchedItem { * @return bool */ public function removeWatch() { + wfProfileIn( __METHOD__ ); + $success = false; $dbw = wfGetDB( DB_MASTER ); $dbw->delete( 'watchlist', @@ -112,6 +114,8 @@ class WatchedItem { if ( $dbw->affectedRows() ) { $success = true; } + + wfProfileOut( __METHOD__ ); return $success; } -- 2.20.1