Results of 1 - 2 of about 2 for queryShapeStats (0.001 sec.)
- Application Performance Monitoring (APM) 11228
- « Using the PHP Library for MongoDB (PHPLIB) Driver Architecture and Internals » PHP Manual Tutorials Application Performance Monitoring (APM) 検索 Application Performance Monitoring (APM) The extension contains an event subscriber API, whi
... class QueryTimeCollector implements \MongoDB\Driver\Monitoring\CommandSubscriber { private $pendingCommands = []; private $queryShapeStats = []; /* Creates a query shape out of the filter argument. Right now it only * takes the top level fields into account */ ... oid { $requestId = $event -> getRequestId (); if ( array_key_exists ( $requestId , $this -> pendingCommands ) ) { $this -> queryShapeStats [ $this -> pendingCommands [ $requestId ]][ 'count' ]++; $this -> queryShapeStats [ $this -> pendingCommands [ $requestId ... ) { unset( $this -> pendingCommands [ $event -> getRequestId ()] ); } } public function __destruct () { foreach( $this -> queryShapeStats as $shape => $stats ) { echo "Shape: " , $shape , " (" , $stats [ 'count' ], ")\n " , $stats [ 'duration' ] / $stats [ 'co ...
-
https://man.mtool.work/php/8.3/mongodb.tutorial.apm.html
- Application Performance Monitoring (APM) 7485
- « Using the PHP Library for MongoDB (PHPLIB) Driver Architecture and Internals » PHP Manual Tutorials Application Performance Monitoring (APM) 検索 Application Performance Monitoring (APM) The extension contains an event subscriber API, whi
... class QueryTimeCollector implements \MongoDB\Driver\Monitoring\CommandSubscriber { private $pendingCommands = []; private $queryShapeStats = []; /* Creates a query shape out of the filter argument. Right now it only * takes the top level fields into account */ ... oid { $requestId = $event -> getRequestId (); if ( array_key_exists ( $requestId , $this -> pendingCommands ) ) { $this -> queryShapeStats [ $this -> pendingCommands [ $requestId ]][ 'count' ]++; $this -> queryShapeStats [ $this -> pendingCommands [ $requestId ... ) { unset( $this -> pendingCommands [ $event -> getRequestId ()] ); } } public function __destruct () { foreach( $this -> queryShapeStats as $shape => $stats ) { echo "Shape: " , $shape , " (" , $stats [ 'count' ], ")\n " , $stats [ 'duration' ] / $stats [ 'co ...
-
https://man.mtool.work/php/8.3/mongodb.tutorial.apm.html
PREV
1
NEXT