Changeset a0da83 in git


Ignore:
Timestamp:
Mar 31, 2015, 3:36:56 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
06cff955d56f17b8a3199fd8db5e3f4a6be98f35
Parents:
56225c216f0df9632a02f7b745efacd6da070754
Message:
test for a code coverage tool: via smon.out
Location:
Singular
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • Singular/feOpt.cc

    r56225c ra0da83  
    2727
    2828
    29 const char SHORT_OPTS_STRING[] = "bdhqstvxec:r:u:";
     29const char SHORT_OPTS_STRING[] = "bdhpqstvxec:r:u:";
    3030
    3131//////////////////////////////////////////////////////////////
     
    213213        return NULL;
    214214
     215      case FE_OPT_PROFILE:
     216         traceit=1024;
     217         return NULL;
     218
    215219      case FE_OPT_QUIET:
    216220        if (feOptSpec[FE_OPT_QUIET].value)
     
    252256      case FE_OPT_RANDOM:
    253257        siRandomStart = (unsigned int) ((unsigned long)
    254                                           (feOptSpec[FE_OPT_RANDOM].value));
     258                                          (feOptSpec[FE_OPT_RANDOM].value));
    255259        siSeed=siRandomStart;
    256260        factoryseed(siRandomStart);
  • Singular/feOptTab.h

    r56225c ra0da83  
    8282
    8383  {"echo",              optional_argument,  'e',
    84    "VAL",       "Set value of variable `echo' to (integer) VAL",        feOptInt,    0,      0},
     84   "VAL",       "Set value of variable `echo' to (integer) VAL",       feOptInt,    0,      0},
    8585
    8686  {"help",              no_argument,        'h',
    8787   0,          "Print help message and exit",                          feOptUntyped,    0,      0},
    8888
     89  {"profile",           no_argument,        'p',
     90   0,          "Collect profiling data in smon.out",                   feOptBool,    0,      0},
    8991  {"quiet",             no_argument,        'q',
    9092   0,          "Do not print start-up banner and lib load messages",   feOptBool,    0,      0},
  • Singular/fevoices.cc

    r56225c ra0da83  
    3535
    3636char fe_promptstr[] ="  ";
     37FILE *File_Profiling=NULL;
    3738
    3839// output/print buffer:
     
    458459    Print("{%d}",yylineno);
    459460    mflush();
     461  }
     462  else if (traceit&TRACE_PROFILING)
     463  {
     464    if (File_Profiling==NULL)
     465      File_Profiling=fopen("smon.out","a");
     466    if (File_Profiling==NULL)
     467      traceit &= (~TRACE_PROFILING);
     468    else
     469    {
     470      if (currentVoice->filename==NULL)
     471        fprintf(File_Profiling,"(none) %d\n",yylineno);
     472      else
     473        fprintf(File_Profiling,"%s %d\n",currentVoice->filename,yylineno);
     474    }
    460475  }
    461476#ifdef HAVE_SDB
  • Singular/misc_ip.cc

    r56225c ra0da83  
    10761076  if (!m2_end_called)
    10771077  {
     1078    extern FILE* File_Profiling;
     1079    if (File_Profiling!=NULL) { fclose(File_Profiling); File_Profiling=NULL; }
    10781080    m2_end_called = TRUE;
    10791081#ifdef HAVE_SIMPLEIPC
Note: See TracChangeset for help on using the changeset viewer.