Changeset 21c90595e35c7230a3e083087d3489a308866ac6

Show
Ignore:
Timestamp:
04/15/08 19:40:25 (5 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1208281225 +0200
git-parent:

[bf117f4d0b399a6add2c0aab756fd9aab9d978e9]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1208280688 +0200
Message:

module: Set up a timer for moduleNeed().

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc_messages.h

    rbf117f4 r21c9059  
    231231    STATS_TIMER_PREPARSE, 
    232232    STATS_TIMER_INPUT_LAUNCHING, 
     233    STATS_TIMER_MODULE_NEED, 
    233234 
    234235    STATS_TIMER_SKINS_PLAYTREE_IMAGE, 
  • src/modules/modules.c

    r0a7905f r21c9059  
    356356    typedef struct module_list_t module_list_t; 
    357357 
     358    stats_TimerStart( p_this, "module_Need()", STATS_TIMER_MODULE_NEED ); 
     359 
    358360    struct module_list_t 
    359361    { 
     
    395397        { 
    396398            free( psz_var ); 
     399            stats_TimerStop( p_this, STATS_TIMER_MODULE_NEED ); 
     400            stats_TimerDump( p_this, STATS_TIMER_MODULE_NEED ); 
     401            stats_TimerClean( p_this, STATS_TIMER_MODULE_NEED ); 
    397402            return NULL; 
    398403        } 
     
    648653    free( psz_var ); 
    649654 
     655    stats_TimerStop( p_this, STATS_TIMER_MODULE_NEED ); 
     656    stats_TimerDump( p_this, STATS_TIMER_MODULE_NEED ); 
     657    stats_TimerClean( p_this, STATS_TIMER_MODULE_NEED ); 
     658 
    650659    /* Don't forget that the module is still locked */ 
    651660    return p_module;