jenkins-bot has submitted this change and it was merged.

Change subject: Stats for average batch size
......................................................................


Stats for average batch size

Change-Id: I5c26e99822594e978eeffad6e8520770707a4247
---
M includes/ApiParsoidBatch.php
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  BryanDavis: Looks good to me, approved
  jenkins-bot: Verified



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/243094
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5c26e99822594e978eeffad6e8520770707a4247
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ParsoidBatchAPI
Gerrit-Branch: master
Gerrit-Owner: Tim Starling <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to