Ignore:
Timestamp:
May 29, 2007, 5:52:30 AM (18 years ago)
Author:
bird
Message:

kBuild profiling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/header.kmk

    r985 r988  
    2727ifndef __header_kmk__
    2828# start-of-file-content
     29ifdef KBUILD_PROFILE_SELF
     30 _KBUILD_TS_HEADER_START := $(nanots ) # just a dummy warm up query
     31 $(info prof: since start - since previous - event description)
     32 _KBUILD_TS_HEADER_START := $(nanots )
     33 _KBUILD_TS_PREV := $(_KBUILD_TS_HEADER_START)
     34endif
    2935
    3036
     
    799805
    800806# Include the config.kmk we found file (or the default one).
    801 include $(_CFGFILE)
     807ifdef KBUILD_PROFILE_SELF
     808 _KBUILD_TS_NOW := $(nanots )
     809 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - including $(_CFGFILE))
     810 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW)
     811
     812 include $(_CFGFILE)
     813
     814 _KBUILD_TS_NOW := $(nanots )
     815 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - included $(_CFGFILE))
     816 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW)
     817else
     818 include $(_CFGFILE)
     819endif
     820
    802821
    803822
     
    963982
    964983
     984ifdef KBUILD_PROFILE_SELF
     985 _KBUILD_TS_HEADER_END := $(nanots )
     986 $(info prof: $(int-sub $(_KBUILD_TS_HEADER_END), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_HEADER_END), $(_KBUILD_TS_PREV)) - end of header.kmk)
     987 _KBUILD_TS_PREV := $(_KBUILD_TS_HEADER_END)
     988endif
     989
    965990# end-of-file-content
    966991__header_kmk__ := 1
Note: See TracChangeset for help on using the changeset viewer.