Changeset 41456 in webkit
- Timestamp:
- Mar 5, 2009 11:58:10 AM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r41455 r41456 1 2009-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 1 12 2009-03-04 Simon Fraser <simon.fraser@apple.com> 2 13 -
trunk/WebCore/html/PreloadScanner.cpp
r40404 r41456 1 1 /* 2 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/ 3 4 * 4 5 * Redistribution and use in source and binary forms, with or without … … 129 130 void PreloadScanner::write(const SegmentedString& source) 130 131 { 132 #if PRELOAD_DEBUG 131 133 double startTime = currentTime(); 134 #endif 132 135 tokenize(source); 136 #if PRELOAD_DEBUG 133 137 m_timeUsed += currentTime() - startTime; 138 #endif 134 139 } 135 140
Note: See TracChangeset
for help on using the changeset viewer.