Changeset 1c452c in git


Ignore:
Timestamp:
Apr 28, 1998, 10:39:43 AM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
03b1cd154a2fe6add1494118867469ccb90ced82
Parents:
34b4d9c6f483de571b0609f39200b5e9baec47ae
Message:
1998-04-28  Olaf Bachmann  <obachman@mathematik.uni-kl.de>

	* kstd2.cc (redHomog): Some more ouput for KDEBUG && TEST_OPT_DEBUG

	* mminit.cc: introduced memory(2) which measures physical memory
	consumption using the system call sbrk (this never lies!)


git-svn-id: file:///usr/local/Singular/svn/trunk@1504 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • Singular/ChangeLog

    r34b4d9 r1c452c  
     11998-04-28  Olaf Bachmann  <obachman@mathematik.uni-kl.de>
     2
     3        * kstd2.cc (redHomog): Some more ouput for KDEBUG && TEST_OPT_DEBUG
     4
     5        * mminit.cc: introduced memory(2) which measures physical memory
     6        consumption using the system call sbrk (this never lies!)
     7
    18Mon Apr 27 18:07:21 MET DST 1998 hannes
    29        * use ReAlloc for enlargeT, enlargeL  (kutil.cc)
  • Singular/configure

    r34b4d9 r1c452c  
    34753475fi
    34763476
    3477 for ac_func in gettimeofday atexit bcopy getcwd getwd
     3477for ac_func in gettimeofday atexit bcopy getcwd getwd sbrk
    34783478do
    34793479echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  • Singular/configure.in

    r34b4d9 r1c452c  
    430430AC_TYPE_SIGNAL
    431431AC_FUNC_VPRINTF
    432 AC_CHECK_FUNCS(gettimeofday atexit bcopy getcwd getwd)
     432AC_CHECK_FUNCS(gettimeofday atexit bcopy getcwd getwd sbrk)
    433433
    434434dnl
  • Singular/iparith.cc

    r34b4d9 r1c452c  
    24952495    res->data = (char *)mmMemReal();
    24962496    break;
     2497#ifdef HAVE_SBRK
     2498      case 2:
     2499        res->data = (char *)mmMemPhysical();
     2500        break;
     2501#endif       
    24972502  default:
    24982503#ifdef MM_STAT
  • Singular/kstd2.cc

    r34b4d9 r1c452c  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kstd2.cc,v 1.17 1998-04-23 09:52:10 Singular Exp $ */
     4/* $Id: kstd2.cc,v 1.18 1998-04-28 08:39:40 obachman Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: alg. of Buchberger
     
    194194*  and the case of a degree-ordering
    195195*/
     196#ifdef KDEBUG
     197static reductions = 0;
     198#endif
     199
    196200static void redHomog (LObject* h,kStrategy strat)
    197201{
     
    222226        {
    223227#ifdef KDEBUG
     228          reductions++;
    224229          if (TEST_OPT_DEBUG)
    225230          {
    226             PrintS("+\nwith ");
     231            Print("+\n%d:with ", reductions);
    227232            wrp(strat->S[j]);
    228233          }
     
    267272        {
    268273#ifdef KDEBUG
     274          reductions++;
    269275          if (TEST_OPT_DEBUG)
    270276          {
    271             PrintS("+\nwith ");
     277            Print("+\n%d:with ",reductions);
    272278            wrp(strat->S[j]);
    273279          }
     
    288294            return;
    289295          }
     296#ifdef KDEBUG
     297          if (TEST_OPT_DEBUG)
     298          {
     299            Print(" to %d:", pLength((*h).p));
     300            wrp((*h).p);
     301            PrintS("\n");
     302          }
     303#endif
    290304          j = 0;
    291305        }
  • Singular/mmemory.h

    r34b4d9 r1c452c  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: mmemory.h,v 1.7 1998-04-27 09:37:31 pohl Exp $ */
     6/* $Id: mmemory.h,v 1.8 1998-04-28 08:39:40 obachman Exp $ */
    77/*
    88* ABSTRACT
     
    4646int mmMemReal( void );
    4747int mmMemUsed( void );
     48#ifdef HAVE_SBRK
     49int mmMemPhysical( void );
     50#endif 
    4851
    4952#define mstrdup mmStrdup
  • Singular/mminit.cc

    r34b4d9 r1c452c  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mminit.cc,v 1.8 1998-04-27 10:03:07 pohl Exp $ */
     4/* $Id: mminit.cc,v 1.9 1998-04-28 08:39:41 obachman Exp $ */
    55/*
    66* ABSTRACT: init of memory management
     
    151151#endif
    152152
     153#ifdef HAVE_SBRK
     154#include <unistd.h>
     155static unsigned long mm_SbrkInit = sbrk(0);
     156#endif
     157
    153158int mmInit();
    154159static int mmIsInitialized=mmInit();
  • Singular/mod2.h.in

    r34b4d9 r1c452c  
    7373/* Define if you have the getwd function.  */
    7474#undef HAVE_GETWD
     75/* Define if you have sbrk */
     76#undef HAVE_SBRK
    7577/* Define sizeof(char) */
    7678#define SIZEOF_CHAR 1
Note: See TracChangeset for help on using the changeset viewer.