diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-11-09 00:14:52 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-11-09 00:15:14 -0500 |
commit | 0c7e7101a6fabe05ab72a09e686e7ae0b736df3b (patch) | |
tree | f488a525f66557af9102639cb905f8d234585806 /db/dbcommands.cpp | |
parent | dd56085dbee13e12c91e994f6196fc58aef06304 (diff) | |
download | mongo-0c7e7101a6fabe05ab72a09e686e7ae0b736df3b.tar.gz |
track network in/out SERVER-2081
Diffstat (limited to 'db/dbcommands.cpp')
-rw-r--r-- | db/dbcommands.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db/dbcommands.cpp b/db/dbcommands.cpp index 8697b270556..304a846db92 100644 --- a/db/dbcommands.cpp +++ b/db/dbcommands.cpp @@ -397,6 +397,13 @@ namespace mongo { ClientCursor::appendStats( bb ); bb.done(); } + + { + BSONObjBuilder bb( result.subobjStart( "network" ) ); + networkCounter.append( bb ); + bb.done(); + } + timeBuilder.appendNumber( "after counters" , Listener::getElapsedTimeMillis() - start ); |