Ignore:
Timestamp:
Dec 6, 2009, 10:21:40 PM (11 years ago)
Author:
Sam Hocevar
Message:

Gather profiling information in caca_refresh_display() and caca_get_event().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/caca.c

    r3570 r4094  
    11/*
    22 *  libcaca       Colour ASCII-Art library
    3  *  Copyright (c) 2006 Sam Hocevar <sam@zoy.org>
     3 *  Copyright (c) 2006-2009 Sam Hocevar <sam@hocevar.net>
    44 *                All Rights Reserved
    55 *
     
    328328    dp->timer.last_sec = 0;
    329329    dp->timer.last_usec = 0;
     330#if defined PROF
     331    _caca_init_stat(&dp->display_stat, "dp[%p] disp_sys time", dp);
     332    _caca_init_stat(&dp->wait_stat, "dp[%p] disp_wait time", dp);
     333    _caca_init_stat(&dp->ev_sys_stat, "dp[%p] ev_sys time", dp);
     334    _caca_init_stat(&dp->ev_wait_stat, "dp[%p] ev_wait time", dp);
     335#endif
    330336    dp->lastticks = 0;
    331337
     
    347353    if(dp->plugin)
    348354        dlclose(dp->plugin);
     355#endif
     356#if defined PROF
     357    _caca_fini_stat(&dp->display_stat);
     358    _caca_fini_stat(&dp->wait_stat);
     359    _caca_fini_stat(&dp->ev_wait_stat);
     360    _caca_fini_stat(&dp->ev_sys_stat);
    349361#endif
    350362
Note: See TracChangeset for help on using the changeset viewer.