diff options
author | Dwight <dmerriman@gmail.com> | 2008-03-16 20:59:19 -0400 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2008-03-16 20:59:19 -0400 |
commit | bdacd93bb86f41213bd52ad032eedfb48605bcd2 (patch) | |
tree | a5dbcb1b769688190d21a2d13888995d0b4c802b /db/introspect.h | |
parent | 44e0674aa043ed8691d9b789f6048a7ef26f4777 (diff) | |
download | mongo-bdacd93bb86f41213bd52ad032eedfb48605bcd2.tar.gz |
profiling
Diffstat (limited to 'db/introspect.h')
-rw-r--r-- | db/introspect.h | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/db/introspect.h b/db/introspect.h index d58e1aa8e15..10bcfd96925 100644 --- a/db/introspect.h +++ b/db/introspect.h @@ -37,26 +37,10 @@ public: };
-/* --- profiling -------------------------------------------- */
+/* --- profiling --------------------------------------------
+ do when client->profile is set
+*/
-struct Profile {
- const char *str;
- int ms;
- int B;
-};
-
-extern Profile profile;
-
-inline void profileOp(const char *str) {
- profile.str = str;
-}
+void profile(const char *str,
+ int millis);
-inline void profileBytes(int B) {
- profile.B = B;
-}
-
-inline void profileTime(int ms) {
- if( client->profile ) {
- profile.ms = ms;
- }
-}
|