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/pdfile.h | |
parent | 44e0674aa043ed8691d9b789f6048a7ef26f4777 (diff) | |
download | mongo-bdacd93bb86f41213bd52ad032eedfb48605bcd2.tar.gz |
profiling
Diffstat (limited to 'db/pdfile.h')
-rw-r--r-- | db/pdfile.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/db/pdfile.h b/db/pdfile.h index 46db0a0f9d2..b4fa0f2b9ca 100644 --- a/db/pdfile.h +++ b/db/pdfile.h @@ -55,7 +55,7 @@ public: void update(
const char *ns,
Record *toupdate, const DiskLoc& dl,
- const char *buf, int len);
+ const char *buf, int len, stringstream& profiling);
DiskLoc insert(const char *ns, const void *buf, int len, bool god = false);
void deleteRecord(const char *ns, Record *todelete, const DiskLoc& dl, bool cappedOK = false);
static auto_ptr<Cursor> findAll(const char *ns);
@@ -341,6 +341,7 @@ public: namespaceIndex = new NamespaceIndex();
namespaceIndex->init(dbpath, nm);
profile = 0;
+ profileName = name + ".system.profile";
}
PhysicalDataFile* getFile(int n) {
@@ -382,6 +383,7 @@ public: string name; // "alleyinsider"
NamespaceIndex *namespaceIndex;
int profile; // 0=off.
+ string profileName; // "alleyinsider.system.profile"
};
// tempish...move to TLS or pass all the way down as a parm
|