From 2e9c610931b4e0a6bab25b1fe5dbd0def45ee126 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Sun, 9 Jan 2011 03:39:08 +0000 Subject: Fix memory leak in Python runtime integration. Reduce memory consumption of debug trace functions. Add trace points to help track the lifecycle of some of the runtime context objects. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1056880 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/components/filedb/filedb.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sca-cpp/trunk/components/filedb/filedb.hpp') diff --git a/sca-cpp/trunk/components/filedb/filedb.hpp b/sca-cpp/trunk/components/filedb/filedb.hpp index 89ff3b8157..39c8aff868 100644 --- a/sca-cpp/trunk/components/filedb/filedb.hpp +++ b/sca-cpp/trunk/components/filedb/filedb.hpp @@ -45,15 +45,20 @@ namespace filedb { class FileDB { public: FileDB() : owner(false), jscx(*jscontext("")) { + debug("filedb::filedb"); } FileDB(const string& name, const string& format) : owner(true), name(name), format(format), jscx(*jscontext(format)) { + debug(name, "filedb::filedb::name"); + debug(format, "filedb::filedb::format"); } FileDB(const FileDB& c) : owner(false), name(c.name), format(c.format), jscx(c.jscx) { + debug("filedb::filedb::copy"); } ~FileDB() { + debug("filedb::~filedb"); } private: -- cgit v1.2.3