summaryrefslogtreecommitdiff
path: root/db/dur_stats.h
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2010-12-17 12:13:50 -0500
committerdwight <dwight@10gen.com>2010-12-17 12:13:50 -0500
commit1dc486db7d321e39bc353193b2c537dd0d65d535 (patch)
tree854d87925b5ac0b90b1ab1e489fd503e05c07b6d /db/dur_stats.h
parentafb0d2203279c6d1843526c48e7eafb4ab1a6d41 (diff)
downloadmongo-1dc486db7d321e39bc353193b2c537dd0d65d535.tar.gz
dur stats beginnings
Diffstat (limited to 'db/dur_stats.h')
-rw-r--r--db/dur_stats.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/db/dur_stats.h b/db/dur_stats.h
new file mode 100644
index 00000000000..f9fe3f7eb7b
--- /dev/null
+++ b/db/dur_stats.h
@@ -0,0 +1,21 @@
+// @file dur_stats.h
+
+namespace mongo {
+ namespace dur {
+
+ /** journalling stats. the model here is that the commit thread is the only writer, and that reads are
+ uncommon (from a serverStatus command and such). Thus, there should not be multicore chatter overhead.
+ */
+ struct Stats {
+ Stats();
+ struct S {
+ unsigned _commits;
+ unsigned _dittos;
+ unsigned long long _journaledBytes;
+ unsigned long long _writeToDataFilesBytes;
+ } curr;
+ };
+ extern Stats stats;
+
+ }
+}