diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-20 23:49:18 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:29 -0400 |
commit | c30f52090012f4632f4cfe6536abc4af7edfe363 (patch) | |
tree | 07388964ba67caba450283b28c7a9eff7e01a220 /main.cc | |
parent | b84f676946941df6f7e8476d77d1db0cbe7736c5 (diff) | |
download | fork-ledger-c30f52090012f4632f4cfe6536abc4af7edfe363.tar.gz fork-ledger-c30f52090012f4632f4cfe6536abc4af7edfe363.tar.bz2 fork-ledger-c30f52090012f4632f4cfe6536abc4af7edfe363.zip |
Decreased memory usage considerably
Diffstat (limited to 'main.cc')
-rw-r--r-- | main.cc | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -396,6 +396,11 @@ static int read_and_report(report_t * report, int argc, char * argv[], return 0; } +#ifdef DEBUG_ENABLED +extern int new_calls; +extern int new_size; +#endif + int main(int argc, char * argv[], char * envp[]) { int status = 1; @@ -429,7 +434,7 @@ int main(int argc, char * argv[], char * envp[]) #if DEBUG_LEVEL >= BETA DEBUG_IF("ledger.trace.memory") { - ledger::trace_mode = true; + ledger::trace_class_mode = true; } #endif @@ -490,6 +495,8 @@ int main(int argc, char * argv[], char * envp[]) #if DEBUG_LEVEL >= BETA DEBUG_IF("ledger.trace.memory") { report_memory(std::cerr); + std::cerr << "Total calls to new: " << new_calls << std::endl + << "Total memory new'd: " << new_size << std::endl; } ledger::tracing_active = false; #endif |