Skip to content

Commit a11e9f4

Browse files
committed
top command is by collection, not by database, i believe
1 parent 9088e0d commit a11e9f4

File tree

1 file changed

+48
-1
lines changed

1 file changed

+48
-1
lines changed

source/reference/command/top.txt

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ top
77
.. dbcommand:: top
88

99
The :dbcommand:`top` command is an administrative command which
10-
returns raw usage of each database,
10+
returns usage statistics for each collection.
1111
and provides amount of time, in microseconds, used and a count of
1212
operations for the following event types:
1313

@@ -28,3 +28,50 @@ top
2828
.. code-block:: javascript
2929

3030
{ top: 1 }
31+
32+
Shell example:
33+
34+
.. code-block:: javascript
35+
36+
> db.adminCommand("top")
37+
{
38+
"totals" : {
39+
"test.foo" : {
40+
"total" : {
41+
"time" : 305277,
42+
"count" : 2825
43+
},
44+
"readLock" : {
45+
"time" : 305264,
46+
"count" : 2824
47+
},
48+
"writeLock" : {
49+
"time" : 13,
50+
"count" : 1
51+
},
52+
"queries" : {
53+
"time" : 305264,
54+
"count" : 2824
55+
},
56+
"getmore" : {
57+
"time" : 0,
58+
"count" : 0
59+
},
60+
"insert" : {
61+
"time" : 0,
62+
"count" : 0
63+
},
64+
"update" : {
65+
"time" : 0,
66+
"count" : 0
67+
},
68+
"remove" : {
69+
"time" : 0,
70+
"count" : 0
71+
},
72+
"commands" : {
73+
"time" : 0,
74+
"count" : 0
75+
}
76+
}
77+
}

0 commit comments

Comments
 (0)