Tracking MongoDB execution times using PHP
As per MongoDB BOL Analyze Query Performance usees The cursor.explain("executionStats") and the  db.collection.explain("executionStats") methods provide statistics about the performance of a query. This data output can be useful in measuring if and how a query uses an index.

db.collection.explain() provides information on the execution of other operations, such as db.collection.update().