{
*****************************************************************************
*                                                                           *
*  This file is part of the ZCAD                                            *
*                                                                           *
*  See the file COPYING.txt, included in this distribution,                 *
*  for details about the copyright.                                         *
*                                                                           *
*  This program is distributed in the hope that it will be useful,          *
*  but WITHOUT ANY WARRANTY; without even the implied warranty of           *
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                     *
*                                                                           *
*****************************************************************************
}
{
@author(Andrey Zubarev <zamtmn@yandex.ru>) 
}

unit uzcregMemProfiler;
{$INCLUDE zengineconfig.inc}
interface
uses
  callstack_memprofiler,uzcsysparams;
implementation

initialization
  if SysParam.saved.MemProfiling then
    ReplaceMemoryManager;
finalization
  //тут по идее надо проверять установлен профайлер фактически
  if SysParam.saved.MemProfiling then
    RestoreMemoryManager;
end.

