Changeset 1b945e9 in tol


Ignore:
Timestamp:
Feb 1, 2011, 11:41:41 AM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
8addb71
Parents:
42f071f
Message:

New method TolShowStatus

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@3102 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/lang/language.cpp

    r42f071f r1b945e9  
    232232
    233233//--------------------------------------------------------------------
     234void TolShowStatus()
     235//--------------------------------------------------------------------
     236{
     237  Std("\n------------------------------------------------------------------------------");
     238  Std(BText("\nTOL Status "));
     239  Std("\n------------------------------------------------------------------------------\n");
     240
     241  BTimer::PrintProcess();
     242  Std("\n------------------------------------------------------------------------------");
     243  Std(BText("\nStatus of hashed global symbol table "));
     244  Std("\n------------------------------------------------------------------------------\n");
     245  BGrammar::SymbolTable().Dump();
     246
     247
     248  Std("\n------------------------------------------------------------------------------");
     249  Std(BText("\nGeneral status"));
     250  Std("\n------------------------------------------------------------------------------\n");
     251  Std(DialogInfo());
     252//Std(BText("\nGrammar hashing size    = ")<<BGrammarHashSize/1024.0<<" KBytes");
     253  Std(BText("\nTime Set cache size     = ")<<BTimeSet::HashUsedKBytes()<<" KBytes");
     254  Std(BText("\nTime Serie cache number = ")<<BData::Count());
     255  Std(BText("\nTime Serie cache size   = ")<<BData::KBytes()<<" KBytes");
     256  BVMat::ShowCholmodStats();
     257
     258#     ifdef TRACE_OPTINFO
     259  Std(BText("\nOptional info. number   = ")<<BSyntaxObject::OptInfoCount()<<" of "<<(BSyntaxObject::NSyntaxObject()));
     260  Std(BText("\nOptional info. named    = ")<<BSyntaxObject::OptInfoCountName());
     261  Std(BText("\nOptional info. loc.nam. = ")<<BSyntaxObject::OptInfoCountExpression());
     262  Std(BText("\nOptional info. desc.    = ")<<BSyntaxObject::OptInfoCountDescription());
     263  Std(BText("\nOptional info. size     = ")<<BSyntaxObject::OptInfoKBytes()<<" KBytes");
     264#     endif
     265
     266#if   (__USE_POOL__==__POOL_BFSMEM__)
     267  void BFSMEM_ShowStatsOfAllInstances();
     268  BFSMEM_ShowStatsOfAllInstances();
     269#     endif
     270
     271//#     define __USE_TOL_IEEE__
     272#     ifdef __USE_TOL_IEEE__
     273  BINT64& is_nan_num_call();
     274  Std(BText("\nis_nan_num_call = ")<<is_nan_num_call());
     275#     endif
     276
     277  void StatRealloc();
     278  StatRealloc();
     279  Std("\n------------------------------------------------------------------------------");
     280  Std(BText("\nEnd of TOL Status "));
     281  Std("\n------------------------------------------------------------------------------\n\n");
     282}
     283
     284//--------------------------------------------------------------------
    234285void InteractiveTOL()
    235286
    … …  
    330381    else if(command=="$STATUS")
    331382    {
    332       Std("\n------------------------------------------------------------------------------");
    333       Std(BText("\nStatus of hashed global symbol table "));
    334       Std("\n------------------------------------------------------------------------------\n");
    335       BGrammar::SymbolTable().Dump();
    336 
    337       Std("\n------------------------------------------------------------------------------");
    338       Std(BText("\nGeneral status"));
    339       Std("\n------------------------------------------------------------------------------\n");
    340       Std(DialogInfo());
    341     //Std(BText("\nGrammar hashing size    = ")<<BGrammarHashSize/1024.0<<" KBytes");
    342       Std(BText("\nTime Set cache size     = ")<<BTimeSet::HashUsedKBytes()<<" KBytes");
    343       Std(BText("\nTime Serie cache number = ")<<BData::Count());
    344       Std(BText("\nTime Serie cache size   = ")<<BData::KBytes()<<" KBytes");
    345       BTimer::PrintProcess();
    346       void StatRealloc();
    347       StatRealloc();
    348 #if   (__USE_POOL__==__POOL_BFSMEM__)
    349       void BFSMEM_ShowStatsOfAllInstances();
    350       BFSMEM_ShowStatsOfAllInstances();
    351 #     endif
    352 #     ifdef TRACE_OPTINFO
    353       Std(BText("\nOptional info. number   = ")<<BSyntaxObject::OptInfoCount()<<" of "<<(BSyntaxObject::NSyntaxObject()-BDeadObject::DeadObjects()));
    354       Std(BText("\nOptional info. named    = ")<<BSyntaxObject::OptInfoCountName());
    355       Std(BText("\nOptional info. loc.nam. = ")<<BSyntaxObject::OptInfoCountLocalName());
    356       Std(BText("\nOptional info. desc.    = ")<<BSyntaxObject::OptInfoCountDescription());
    357       Std(BText("\nOptional info. size     = ")<<BSyntaxObject::OptInfoKBytes()<<" KBytes");
    358 #     endif
    359 //#     define __USE_TOL_IEEE__
    360 #     ifdef __USE_TOL_IEEE__
    361       BINT64& is_nan_num_call();
    362       Std(BText("\nis_nan_num_call = ")<<is_nan_num_call());
    363 #     endif
     383      TolShowStatus();
    364384    }
    365385    else if(command=="$SHOW_CLASS_SIZES")
Note: See TracChangeset for help on using the changeset viewer.