I'm doing a perf test to analyze the performance of a application which uses the MongoDB. The application is written in java and it uses the MongoDB java driver to connect to cloud MongoDB instance.
I want specifically to analyze the performance of the following code line.
collection.find(parseSearchQueryDirect(searchQuery)).skip(start).limit(offset);
So, I need to trace the network latency, connect time and actual query processing time for the above code line.
Is there a way to do this with mongoDB java driver or using any other tool??