diff options
author | James Wahlin <james.wahlin@10gen.com> | 2016-04-27 11:15:10 -0400 |
---|---|---|
committer | James Wahlin <james.wahlin@10gen.com> | 2016-05-02 11:16:16 -0400 |
commit | 4767529bec1ddf2757930c1f140845222c597c28 (patch) | |
tree | 2725fdd61aaa144125d9b8ee18d786f0f84c13bc /jstests/core/profile_count.js | |
parent | c52c530428fbbe0cae1293ad6605c3ab7be2a281 (diff) | |
download | mongo-4767529bec1ddf2757930c1f140845222c597c28.tar.gz |
SERVER-23264 Add execStats to profiler for all relevant ops/commands
Diffstat (limited to 'jstests/core/profile_count.js')
-rw-r--r-- | jstests/core/profile_count.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/core/profile_count.js b/jstests/core/profile_count.js index 071468e631f..09ba6520828 100644 --- a/jstests/core/profile_count.js +++ b/jstests/core/profile_count.js @@ -1,5 +1,4 @@ // Confirms that profiled count execution contains all expected metrics with proper values. -// TODO SERVER-23264: Add execStats. (function() { "use strict"; @@ -31,6 +30,7 @@ assert.eq(profileObj.protocol, getProfilerProtocolStringForCommand(conn), tojson(profileObj)); assert.eq(profileObj.command.count, coll.getName(), tojson(profileObj)); assert.eq(profileObj.planSummary, "COUNT", tojson(profileObj)); + assert(profileObj.execStats.hasOwnProperty("stage"), tojson(profileObj)); assert(profileObj.hasOwnProperty("responseLength"), tojson(profileObj)); assert(profileObj.hasOwnProperty("millis"), tojson(profileObj)); assert(profileObj.hasOwnProperty("numYield"), tojson(profileObj)); @@ -71,6 +71,7 @@ assert.eq(profileObj.command.query, query, tojson(profileObj)); assert.eq(profileObj.keysExamined, 6, tojson(profileObj)); assert.eq(profileObj.planSummary, "COUNT_SCAN { a: 1.0 }", tojson(profileObj)); + assert(profileObj.execStats.hasOwnProperty("stage"), tojson(profileObj)); // // Confirm "fromMultiPlanner" metric. |