Changeset 90c4460 for molecuilder


Ignore:
Timestamp:
Apr 28, 2010, 1:31:57 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
0d111b, 93b12d
Parents:
075729
Message:

Added a small memory tracker to the programm.

Location:
molecuilder/src
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Actions/Action.cpp

    r075729 r90c4460  
    1111#include "Actions/ActionRegistry.hpp"
    1212#include "Actions/ActionHistory.hpp"
     13#include "Helpers/MemDebug.hpp"
    1314
    1415using namespace std;
    1516
    1617// An empty state to indicate success
    17 Action::state_ptr Action::success = Action::state_ptr(new ActionState());
    18 Action::state_ptr Action::failure = Action::state_ptr(new ActionState());
     18Action::state_ptr Action::success = Action::state_ptr(Memory::ignore(new ActionState()));
     19Action::state_ptr Action::failure = Action::state_ptr(Memory::ignore(new ActionState()));
    1920
    2021Action::Action(std::string _name,bool _doRegister) :
  • molecuilder/src/Actions/ActionHistory.cpp

    r075729 r90c4460  
    1212#include "Patterns/Singleton_impl.hpp"
    1313#include "Helpers/Assert.hpp"
     14#include "Helpers/MemDebug.hpp"
    1415
    1516using namespace std;
  • molecuilder/src/Makefile.am

    r075729 r90c4460  
    8686                 helpers.cpp \
    8787                 Helpers/Assert.cpp \
     88                 Helpers/MemDebug.cpp \
    8889                 info.cpp \
    8990                 leastsquaremin.cpp \
  • molecuilder/src/builder.cpp

    r075729 r90c4460  
    8181#include "version.h"
    8282#include "World.hpp"
     83#include "Helpers/MemDebug.hpp"
    8384
    8485/********************************************* Subsubmenu routine ************************************/
     
    25522553  errorLogger::purgeInstance();
    25532554  ActionRegistry::purgeInstance();
     2555  ActionHistory::purgeInstance();
    25542556}
    25552557
     
    26162618
    26172619  cleanUp(configuration);
     2620
     2621  Memory::getState();
    26182622  return (0);
    26192623}
Note: See TracChangeset for help on using the changeset viewer.