Changeset 41456 in webkit


Ignore:
Timestamp:
Mar 5, 2009 11:58:10 AM (15 years ago)
Author:
treat@webkit.org
Message:

2009-03-05 Yong Li <yong.li@torchmobile.com>

Reviewed by Antti Koivisto.

https://bugs.webkit.org/show_bug.cgi?id=24392
Do not get the current time for unless we're doing PRELOAD_DEBUG as this
can be unnecessarily expensive.

  • html/PreloadScanner.cpp: (WebCore::PreloadScanner::write):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r41455 r41456  
     12009-03-05  Yong Li  <yong.li@torchmobile.com>
     2
     3        Reviewed by Antti Koivisto.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=24392
     6        Do not get the current time for unless we're doing PRELOAD_DEBUG as this
     7        can be unnecessarily expensive.
     8
     9        * html/PreloadScanner.cpp:
     10        (WebCore::PreloadScanner::write):
     11
    1122009-03-04  Simon Fraser  <simon.fraser@apple.com>
    213
  • trunk/WebCore/html/PreloadScanner.cpp

    r40404 r41456  
    11/*
    22 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
     3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/
    34 *
    45 * Redistribution and use in source and binary forms, with or without
     
    129130void PreloadScanner::write(const SegmentedString& source)
    130131{
     132#if PRELOAD_DEBUG
    131133    double startTime = currentTime();
     134#endif
    132135    tokenize(source);
     136#if PRELOAD_DEBUG
    133137    m_timeUsed += currentTime() - startTime;
     138#endif
    134139}
    135140   
Note: See TracChangeset for help on using the changeset viewer.