WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
157433
[COCOA] Disable HAVE_DTRACE at build time
https://bugs.webkit.org/show_bug.cgi?id=157433
Summary
[COCOA] Disable HAVE_DTRACE at build time
Chris Dumez
Reported
2016-05-06 15:00:45 PDT
Disable HAVE_DTRACE at build time by default for performance reasons. Also remove the JSC-related code which seems unused.
Attachments
Patch
(16.88 KB, patch)
2016-05-06 15:14 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(17.57 KB, patch)
2016-05-08 20:04 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(18.05 KB, patch)
2016-05-08 21:02 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2016-05-06 15:01:05 PDT
<
rdar://problem/26148841
>
Chris Dumez
Comment 2
2016-05-06 15:14:15 PDT
Created
attachment 278278
[details]
Patch
Chris Dumez
Comment 3
2016-05-08 20:04:26 PDT
Created
attachment 278385
[details]
Patch
Mark Lam
Comment 4
2016-05-08 20:59:02 PDT
The EWS bots are sad. Please fix.
Chris Dumez
Comment 5
2016-05-08 21:02:38 PDT
Created
attachment 278386
[details]
Patch
Mark Lam
Comment 6
2016-05-08 21:09:39 PDT
Comment on
attachment 278386
[details]
Patch r=me if the bots are happy.
WebKit Commit Bot
Comment 7
2016-05-08 21:54:49 PDT
Comment on
attachment 278386
[details]
Patch Clearing flags on attachment: 278386 Committed
r200568
: <
http://trac.webkit.org/changeset/200568
>
WebKit Commit Bot
Comment 8
2016-05-08 21:54:54 PDT
All reviewed patches have been landed. Closing bug.
mitz
Comment 9
2016-05-08 22:02:21 PDT
(In reply to
comment #7
)
> Comment on
attachment 278386
[details]
> Patch > > Clearing flags on attachment: 278386 > > Committed
r200568
: <
http://trac.webkit.org/changeset/200568
>
Changes to WebKit2 need to be reviewed and or authored by one of the people listed in <
http://trac.webkit.org/browser/trunk/Source/WebKit2/Owners?rev=198224
>.
mitz
Comment 10
2016-05-08 22:47:09 PDT
Comment on
attachment 278386
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=278386&action=review
> Source/WebKit2/Platform/IPC/MessageRecorder.cpp:30 > +#if HAVE(DTRACE) > +
It seems like the complaint here was that UUID generation in the MessageRecorder constructor had a measurable impact on performance. The right way to address this would be to either use a cheaper unique identifier (a sequence number in the low bits and the process ID in the upper bits, for example) or the generate the unique identifiers only when the DTrace probe is enabled. Pretending that OS X and iOS don’t have DTrace is an unnecessarily heavy-handed approach to take.
Chris Dumez
Comment 11
2016-05-09 07:37:57 PDT
(In reply to
comment #10
)
> Comment on
attachment 278386
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=278386&action=review
> > > Source/WebKit2/Platform/IPC/MessageRecorder.cpp:30 > > +#if HAVE(DTRACE) > > + > > It seems like the complaint here was that UUID generation in the > MessageRecorder constructor had a measurable impact on performance. The > right way to address this would be to either use a cheaper unique identifier > (a sequence number in the low bits and the process ID in the upper bits, for > example) or the generate the unique identifiers only when the DTrace probe > is enabled. > > Pretending that OS X and iOS don’t have DTrace is an unnecessarily > heavy-handed approach
Sure, we should make this less expensive if we need to re enable DTRACE. I did discuss this with Sam and Tim (who added this code) and they agreed to disable it for now. It does not seem people (besides Tim) were using this code, it has also never really worked on iOS as far as I know.
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