Tim Starling has uploaded a new change for review.
https://gerrit.wikimedia.org/r/243095
Change subject: Stats for average batch size
......................................................................
Stats for average batch size
Change-Id: I5c26e99822594e978eeffad6e8520770707a4247
(cherry picked from commit 347c10bed546b2f550f31d07d3bff510540984d6)
---
M includes/ApiParsoidBatch.php
1 file changed, 3 insertions(+), 0 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ParsoidBatchAPI
refs/changes/95/243095/1
diff --git a/includes/ApiParsoidBatch.php b/includes/ApiParsoidBatch.php
index f443fcf..eefd826 100644
--- a/includes/ApiParsoidBatch.php
+++ b/includes/ApiParsoidBatch.php
@@ -20,6 +20,9 @@
if ( count( $batch ) > 500 ) {
$this->dieUsage( "Batch too large, limit is 500",
'batch_too_large' );
}
+ wfIncrStats( 'ParsoidBatchAPI.batches' );
+ wfIncrStats( 'ParsoidBatchAPI.items', count( $batch ) );
+
$size = 0;
$filenames = array();
foreach ( $batch as $itemIndex => $itemParams ) {
--
To view, visit https://gerrit.wikimedia.org/r/243095
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5c26e99822594e978eeffad6e8520770707a4247
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ParsoidBatchAPI
Gerrit-Branch: wmf/1.27.0-wmf.1
Gerrit-Owner: Tim Starling <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits