Changeset 1990 in Sophya for trunk/ArchTOIPipe


Ignore:
Timestamp:
May 8, 2002, 11:25:15 PM (23 years ago)
Author:
ansari
Message:

Ajout PrintStat avec flag ds mesovh.cc - Reza 8/5/2002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/TestPipes/mesovh.cc

    r1760 r1990  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: mesovh.cc,v 1.5 2001-11-13 16:01:39 aubourg Exp $
     5// $Id: mesovh.cc,v 1.6 2002-05-08 21:25:15 ansari Exp $
    66/*   mesure de performance de l'architecture
    77
     
    3838    cout << "\n Usage : mesovh [-dbg] [-start snb] [-end sne] \n"
    3939         << "         [-intoi name] [-wtoi sz] [-wnoop sz] [-bipro] \n"
    40          << "         [-intoi2 name] inFitsName \n"
     40         << "         [-intoi2 name] [-prstat] inFitsName \n"
    4141         << "   -dbg : sets TOISeqBuffered debug level to 1 \n"
    4242         << "   -start snb : sets the start sample num \n"
     
    4747         << "   -bipro : chain 2 processors \n"
    4848         << "   -intoi2 toiName : chaine 2 procs with toi2->in2\n"
     49         << "   -prstat : PrintStat with ProcSampleCounter \n"
    4950         << endl;
    5051    exit(0);
     
    6162  bool fgbipro = false;
    6263  bool fgsetstart = false;
     64  bool fgprstat = false;
    6365  int wtoi = 8192;
    6466  int wnoop = 0;
     
    106108    else if (strcmp(arg[ia],"-bipro") == 0)  fgbipro = true;
    107109    else if (strcmp(arg[ia],"-dbg") == 0)  fgdbg = true;
     110    else if (strcmp(arg[ia],"-prstat") == 0)  fgprstat = true;
    108111
    109112    else { ko = ia; break; }  // Debut des noms
     
    188191    }
    189192    */
    190    
     193
     194    if (fgprstat) {
     195      // --------------- Impression continu de stat -------------------
     196      ProcSampleCounter<NoOpProcessor> stats(noop);
     197      stats.InfoMessage() = "mesovh/Info";
     198      stats.PrintStats();
     199      // --------------------------------------------------------------
     200    }
    191201   
    192202
Note: See TracChangeset for help on using the changeset viewer.