• fisaila's avatar
    Added epochs to Darshan. Epoches and full statistics are mutually exclusive. · 76a9b5b6
    fisaila authored
    Functionality:
    An epoch is enclosed by:
    darshan_start_epoch();
    darshan_stop_epoch();
    
    There is one log file per epoch and the epoch number appears in the file name. 
    If epoches are not used the functionality should be the same as before. 
    
    Implementation: 
    I tried to minimally modify the code (only darshan-mpi-io.c was modified). 
    1) darshan_shutdown became: 
    void darshan_shutdown_epoch(int timing_flag)
    
    5 lines were commented and moved to the new darshan_shutdown
    
    2) void darshan_shutdown(int timing_flag)
    
    If no epoch is used just calls darshan_shutdown_epoch
    else 
    for each epoch restore the counters from the end of epoch and call darshan_shutdown_epoch
    
    3) void darshan_start_epoch(void)
    
    just resets the counters from darshan_global_job
    
    4) void darshan_end_epoch(void)
    
    saves the counters from darshan_global_job 
    
    
     
    Test:
    One test has been added in darshan-test/epoch-testing/. 
    I have not performed yet extensive testing. 
    
    
    
    
    git-svn-id: https://svn.mcs.anl.gov/repos/darshan/branches/darshan-florin-extensions@818 3b7491f3-a168-0410-bf4b-c445ed680a29
    76a9b5b6
Name
Last commit
Last update
..
automated Loading commit data...
epoch-testing Loading commit data...
example-output Loading commit data...
patches Loading commit data...
perf Loading commit data...
RELEASE-CHECKLIST.txt Loading commit data...
analysis.sql Loading commit data...
cp-bench.c Loading commit data...
cp-realpath-bench.c Loading commit data...
cp-search-bench.c Loading commit data...
cp-wtime-bench.c Loading commit data...
cp-wtimewrap-bench.c Loading commit data...
cuserid-test.c Loading commit data...
darshan-anon-core-hours.pl Loading commit data...
darshan-file-counter-hack.pl Loading commit data...
darshan-gather-counts.pl Loading commit data...
darshan-gather-intervals.pl Loading commit data...
darshan-gather-stats.pl Loading commit data...
darshan-shutdown-bench.c Loading commit data...
darshan.mysql Loading commit data...
fsstats-merge.pl Loading commit data...
fsstats-runner.bash Loading commit data...
gz-bench.c Loading commit data...
gztest.c Loading commit data...
io-sample.c Loading commit data...
output.txt Loading commit data...
parallel-fsstats.pl Loading commit data...
pcarns_cp_id25476_1-16-15155_2.darshan.gz Loading commit data...
seek-test.c Loading commit data...
stat-perf.c Loading commit data...
test-darshan-compiles-alcf2.sh Loading commit data...
test-darshan-compiles.sh Loading commit data...
test-darshan-log-formats.sh Loading commit data...