Changeset ec21f13


Ignore:
Timestamp:
Jun 25, 2020, 3:19:02 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
f2b18d01
Parents:
cb85603
Message:

Benchmarks can now print halts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/benchcltr.hfa

    rcb85603 rec21f13  
    66#include <stats.hfa>
    77
    8 #define BENCH_OPT_SHORT "d:p:t:SP"
     8#define BENCH_OPT_SHORT "d:p:t:SPV"
    99#define BENCH_OPT_LONG \
    1010        {"duration",     required_argument, 0, 'd'}, \
     
    1212        {"nprocs",       required_argument, 0, 'p'}, \
    1313        {"nostats",      no_argument      , 0, 'S'}, \
    14         {"procstat",     no_argument      , 0, 'P'},
     14        {"procstat",     no_argument      , 0, 'P'}, \
     15        {"viewhalts",    no_argument      , 0, 'V'},
    1516
    1617#define BENCH_DECL \
     
    4647        case 'P': \
    4748                procstats = true; \
     49                break; \
     50        case 'V': \
     51                viewhalts = true; \
    4852                break;
    4953
    5054bool silent = false;
    5155bool procstats = false;
     56bool viewhalts = false;
    5257struct cluster * the_benchmark_cluster = 0p;
    5358struct BenchCluster {
     
    8085                        print_stats_at_exit( this.self, the_benchmark_cluster->print_stats );
    8186                }
     87                if( viewhalts ) {
     88                        print_halts( this.self );
     89                }
    8290        #endif
    8391}
Note: See TracChangeset for help on using the changeset viewer.