WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
174033
Move ResourceLoadStatisticsStore to WebKit2/UIProcess
https://bugs.webkit.org/show_bug.cgi?id=174033
Summary
Move ResourceLoadStatisticsStore to WebKit2/UIProcess
Chris Dumez
Reported
2017-06-30 11:33:43 PDT
Move ResourceLoadStatisticsStore to WebKit2/UIProcess as it is only used in the WebKit2 UIProcess.
Attachments
Patch
(68.01 KB, patch)
2017-06-30 12:54 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2017-06-30 12:54:35 PDT
Created
attachment 314281
[details]
Patch
Build Bot
Comment 2
2017-06-30 12:55:41 PDT
Attachment 314281
[details]
did not pass style-queue: ERROR: Source/WebKit2/UIProcess/Storage/ResourceLoadStatisticsStore.h:91: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 1 in 14 files If any of these errors are false positives, please file a bug against check-webkit-style.
Brent Fulgham
Comment 3
2017-06-30 13:20:55 PDT
Comment on
attachment 314281
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=314281&action=review
I think this looks great! iOS is happy so far. r=me once the tests pass.
> Source/WebKit2/UIProcess/Storage/ResourceLoadStatisticsStore.cpp:55 > + auto locker = holdLock(m_statisticsLock);
Now that this is only present in UIProcess, I suspect that this lock can go away, and we can just ASSERT that we are on the work queue. This comment obviously applies to the rest of this file. But perhaps that should be a separate patch (in case I am wrong!) :-)
> Source/WebKit2/UIProcess/WebResourceLoadStatisticsManager.h:28 > +#include <chrono>
It seems like we are using WallTime everywhere now. I wonder if we can get rid of <chrono> entirely?
Chris Dumez
Comment 4
2017-06-30 13:34:07 PDT
(In reply to Brent Fulgham from
comment #3
)
> Comment on
attachment 314281
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=314281&action=review
> > I think this looks great! iOS is happy so far. r=me once the tests pass.
Thanks.
> > > Source/WebKit2/UIProcess/Storage/ResourceLoadStatisticsStore.cpp:55 > > + auto locker = holdLock(m_statisticsLock); > > Now that this is only present in UIProcess, I suspect that this lock can go > away, and we can just ASSERT that we are on the work queue. > > This comment obviously applies to the rest of this file. But perhaps that > should be a separate patch (in case I am wrong!) :-)
Separate patch since non-trivial. The WK C API which is used by TestRunner is synchronous and relies on those locks to dose database operations from the main thread still. I plan to fix this in a follow-up.
> > > Source/WebKit2/UIProcess/WebResourceLoadStatisticsManager.h:28 > > +#include <chrono> > > It seems like we are using WallTime everywhere now. I wonder if we can get > rid of <chrono> entirely?
We still use std::chrono in one API, which I have not corrected yet.
Chris Dumez
Comment 5
2017-06-30 13:54:31 PDT
Committed
r219010
: <
http://trac.webkit.org/changeset/219010
>
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