WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 41824
Wire network times from ResourceLoadTiming to performance.timing
https://bugs.webkit.org/show_bug.cgi?id=41824
Summary
Wire network times from ResourceLoadTiming to performance.timing
Tony Gentilcore
Reported
2010-07-07 18:12:41 PDT
Wire network times from ResourceLoadTiming to performance.timing for Web Timing feature
Attachments
Patch
(14.54 KB, patch)
2010-07-12 21:35 PDT
,
Tony Gentilcore
fishd
: review+
fishd
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Tony Gentilcore
Comment 1
2010-07-12 21:35:27 PDT
Created
attachment 61320
[details]
Patch
Darin Fisher (:fishd, Google)
Comment 2
2010-07-12 22:05:22 PDT
Comment on
attachment 61320
[details]
Patch WebCore/page/Timing.cpp:84 + return static_cast<unsigned long long>(domainLookupStart * 1000); nit: use 1000.0 to improve readability (same nit applies elsewhere). a static helper function might also be nice: toIntegerMilliseconds(double)? R=me
Tony Gentilcore
Comment 3
2010-07-13 16:29:40 PDT
(In reply to
comment #2
)
> (From update of
attachment 61320
[details]
) > WebCore/page/Timing.cpp:84 > + return static_cast<unsigned long long>(domainLookupStart * 1000); > nit: use 1000.0 to improve readability (same nit applies elsewhere). a > static helper function might also be nice: toIntegerMilliseconds(double)?
Wow, that is so much cleaner. Thanks.
> > R=me
Landed
r63259
Darin Fisher (:fishd, Google)
Comment 4
2010-07-13 23:00:08 PDT
Note: toIntegerMilliseconds probably would have been better as a file static instead of a class static. that way it will have internal linkage and be optimized away to nothing (although that might still happen in this case). class statics have external linkage by default.
Tony Gentilcore
Comment 5
2010-07-14 13:30:23 PDT
(In reply to
comment #4
)
> Note: toIntegerMilliseconds probably would have been better as a file static instead of a class static. that way it will have internal linkage and be optimized away to nothing (although that might still happen in this case). class statics have external linkage by default.
Great education for me. I assumed they would compile to the same thing. I'll post a follow-up patch.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug