Ignore:
Timestamp:
Jul 13, 2010, 11:10:35 AM (9 years ago)
Author:
cameron
Message:

Add profiling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/u16u8/src/u16u8.c

    r471 r475  
    329329
    330330  do {
     331   
     332    PERF_SEC_START(transcode_timer);
    331333
    332334    U16 = (BytePack *)(*srcbuf);
     
    548550    if(!error_found) (*srcbuf) += units_read;
    549551
     552
     553    PERF_SEC_END(transcode_timer, units_read*2);
     554
     555
    550556    } while ((units_read == BLOCK_SIZE) && !error_found);
    551557
     
    598604        }
    599605
     606        PERF_SEC_INIT(transcode_timer);
     607
     608
    600609        chars_read = fread((void *)srcbuf, 1, fileinfo.st_size, infile);
    601610
     
    618627        }
    619628
     629        PERF_SEC_DUMP(transcode_timer);
     630
    620631        fclose(outfile);
    621 
    622 
    623632
    624633        return(0);
Note: See TracChangeset for help on using the changeset viewer.