File tree Expand file tree Collapse file tree 1 file changed +48
-1
lines changed Expand file tree Collapse file tree 1 file changed +48
-1
lines changed Original file line number Diff line number Diff line change 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
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+ }
You can’t perform that action at this time.
0 commit comments