summaryrefslogtreecommitdiff
path: root/jstests/core/profile_update.js
diff options
context:
space:
mode:
authorJames Wahlin <james.wahlin@10gen.com>2016-04-27 11:15:10 -0400
committerJames Wahlin <james.wahlin@10gen.com>2016-05-02 11:16:16 -0400
commit4767529bec1ddf2757930c1f140845222c597c28 (patch)
tree2725fdd61aaa144125d9b8ee18d786f0f84c13bc /jstests/core/profile_update.js
parentc52c530428fbbe0cae1293ad6605c3ab7be2a281 (diff)
downloadmongo-4767529bec1ddf2757930c1f140845222c597c28.tar.gz
SERVER-23264 Add execStats to profiler for all relevant ops/commands
Diffstat (limited to 'jstests/core/profile_update.js')
-rw-r--r--jstests/core/profile_update.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/core/profile_update.js b/jstests/core/profile_update.js
index bf0841fd267..215a8942d9c 100644
--- a/jstests/core/profile_update.js
+++ b/jstests/core/profile_update.js
@@ -1,5 +1,4 @@
// Confirms that profiled update execution contains all expected metrics with proper values.
-// TODO SERVER-23264: Add execStats.
(function() {
"use strict";
@@ -35,6 +34,7 @@
assert.eq(profileObj.nMatched, 1, tojson(profileObj));
assert.eq(profileObj.nModified, 1, tojson(profileObj));
assert.eq(profileObj.planSummary, "IXSCAN { a: 1.0 }", tojson(profileObj));
+ assert(profileObj.execStats.hasOwnProperty("stage"), tojson(profileObj));
assert(profileObj.hasOwnProperty("millis"), tojson(profileObj));
assert(profileObj.hasOwnProperty("numYield"), tojson(profileObj));
assert(profileObj.hasOwnProperty("locks"), tojson(profileObj));
@@ -58,6 +58,7 @@
assert.eq(profileObj.nMatched, 5, tojson(profileObj));
assert.eq(profileObj.nModified, 5, tojson(profileObj));
assert.eq(profileObj.planSummary, "IXSCAN { a: 1.0 }", tojson(profileObj));
+ assert(profileObj.execStats.hasOwnProperty("stage"), tojson(profileObj));
//
// Confirm metrics for insert on update with "upsert: true".
@@ -80,6 +81,7 @@
assert.eq(profileObj.nModified, 0, tojson(profileObj));
assert.eq(profileObj.upsert, true, tojson(profileObj));
assert.eq(profileObj.planSummary, "IXSCAN { _id: 1 }", tojson(profileObj));
+ assert(profileObj.execStats.hasOwnProperty("stage"), tojson(profileObj));
//
// Confirm 'nmoved' for MMAPv1.