• jar@chromium.org's avatar
    Fully enable about:tracking by default · f15841fb
    jar@chromium.org authored
    Support is now controlled by the flag:
    --enable-tracking
    and the default is always on.  To turn it off, use:
    --enable-tracking=0
    
    All profiler code is compiled now in release and official
    builds (in addition to debug, where it was already active),
    but most entry points can be disabled (turned into no-ops) 
    by a single const bool setting atop tracked_objects.cc (in 
    case folks want to revert the perf-impact of this change).
    
    Transition to faster Now() service on Windows for the 
    profiler use only.
    The TimeTicks::Now() function on Window uses locking
    to get a 64 bit time value.  This CL transitions 
    times used for profiling to more directly use a
    32 bit Time interface, which is actually what drives the
    64 bit TimeTicks.  By using the smaller value, we avoid 
    the need for locks, or even atomic operations for the most
    part in the tracking system.  On linux, we just down-sample
    the standard TimeTicks to 32 bits for consistency (clean
    ability to snapshot asyncronously without atomics...
    but I should verify that such is helpful to performance).
    
    I've also put in yet more cleanup and refactoring.
    
    r=rtenneti
    bug=101856
    Review URL: http://codereview.chromium.org/8391019
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107793 0039d316-1c4b-4281-b951-d872f2087c98
    f15841fb
location.h 3.12 KB