From 968d889a9cb487f69d23760f8eacc7b1837c2d59 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 1 Jul 2004 17:16:58 +0000 Subject: [PATCH] track memory --- direct/src/dcparse/dcparse.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/direct/src/dcparse/dcparse.cxx b/direct/src/dcparse/dcparse.cxx index 9a290cab5c..e7fba806af 100644 --- a/direct/src/dcparse/dcparse.cxx +++ b/direct/src/dcparse/dcparse.cxx @@ -20,6 +20,7 @@ #include "dcFile.h" #include "dcClass.h" #include "dcTypedef.h" +#include "memoryUsage.h" #ifndef HAVE_GETOPT #include "gnu_getopt.h" @@ -127,5 +128,15 @@ main(int argc, char *argv[]) { cerr << "File hash is " << hash << "\n"; } + if (MemoryUsage::is_tracking()) { + file.clear(); + MemoryUsage::show_current_types(); + for (int i = 1; i < argc; i++) { + file.read(argv[i]); + } + file.clear(); + MemoryUsage::show_current_types(); + } + return (0); }