• fisaila's avatar
    Added epochs to Darshan. Epoches and full statistics are mutually exclusive. · 76a9b5b6
    fisaila authored
    An epoch is enclosed by:
    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. 
    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
    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 
    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
Makefile 865 Bytes