Changeset 475 for proto/u16u8


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

Add profiling

Location:
proto/u16u8
Files:
2 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);
  • proto/u16u8/template.c

    r471 r475  
    230230
    231231  do {
     232   
     233    PERF_SEC_START(transcode_timer);
    232234
    233235    U16 = (BytePack *)(*srcbuf);
     
    371373    if(!error_found) (*srcbuf) += units_read;
    372374
     375
     376    PERF_SEC_END(transcode_timer, units_read*2);
     377
     378
    373379    } while ((units_read == BLOCK_SIZE) && !error_found);
    374380
     
    421427        }
    422428
     429        PERF_SEC_INIT(transcode_timer);
     430
     431
    423432        chars_read = fread((void *)srcbuf, 1, fileinfo.st_size, infile);
    424433
     
    441450        }
    442451
     452        PERF_SEC_DUMP(transcode_timer);
     453
    443454        fclose(outfile);
    444455
    445 
    446 
    447456        return(0);
    448457}
Note: See TracChangeset for help on using the changeset viewer.