Changeset 151 for trunk/src/byteplex.c


Ignore:
Timestamp:
May 22, 2008, 2:42:11 PM (11 years ago)
Author:
lindanl
Message:

Performance test definitions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/byteplex.c

    r111 r151  
    219219int Byteplex::CopyAndFill(unsigned char * bytes_to_copy, int lgth, int bytes_to_read) {
    220220        memcpy(src_buffer, bytes_to_copy, lgth);
     221#if defined(PAPI) and defined(CODE_CLOCKING) and (CODE_CLOCKING == FILE_READING)
     222        code_clocker->cc_start_interval();
     223#endif
    221224        int bytes_read = fread(&((unsigned char *)src_buffer)[lgth], 1, bytes_to_read, infile);
     225#if defined(PAPI) and defined(CODE_CLOCKING) and (CODE_CLOCKING == FILE_READING)
     226        code_clocker->cc_end_interval(bytes_read);
     227#endif
    222228        return bytes_read;
    223229}
Note: See TracChangeset for help on using the changeset viewer.