Closed
Bug 1336326
Opened 6 years ago
Closed 6 years ago
A few more small profiler improvements
Categories
(Core :: Gecko Profiler, defect)
Core
Gecko Profiler
Tracking
()
RESOLVED
FIXED
mozilla54
Tracking | Status | |
---|---|---|
firefox54 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
Details
Attachments
(3 files)
7.03 KB,
patch
|
mstange
:
review+
|
Details | Diff | Splinter Review |
12.75 KB,
patch
|
mstange
:
review+
|
Details | Diff | Splinter Review |
14.30 KB,
patch
|
mstange
:
review+
|
Details | Diff | Splinter Review |
Here's a motley collection of small improvements.
![]() |
Assignee | |
Updated•6 years ago
|
Component: Profiler → Gecko Profiler
Product: Tamarin → Core
![]() |
Assignee | |
Updated•6 years ago
|
Blocks: profiler-cleanup
![]() |
Assignee | |
Comment 1•6 years ago
|
||
Sampler::sRegisteredThreadsMutex is public. Might as well make Sampler::sRegisteredThreads public too. This allows the getter to be removed, and makes the code a little easier to read.
Attachment #8833167 -
Flags: review?(mstange)
![]() |
Assignee | |
Updated•6 years ago
|
Assignee: nobody → n.nethercote
Status: NEW → ASSIGNED
![]() |
Assignee | |
Comment 2•6 years ago
|
||
StaticMutexes don't need to be created or destroyed, which avoids the need for checking if they still exist. This patch also adds locking to a few functions that lacked it. Every access to sRegisteredThreads is now protected appropriately.
Attachment #8833168 -
Flags: review?(mstange)
![]() |
Assignee | |
Comment 3•6 years ago
|
||
We only have one global Sampler, gSampler, and so SamplerRegistry is just an unnecessary and obfuscating wrapper around it.
Attachment #8833169 -
Flags: review?(mstange)
Updated•6 years ago
|
Attachment #8833167 -
Flags: review?(mstange) → review+
Updated•6 years ago
|
Attachment #8833168 -
Flags: review?(mstange) → review+
Updated•6 years ago
|
Attachment #8833169 -
Flags: review?(mstange) → review+
![]() |
Assignee | |
Comment 4•6 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/dfcd7fa37af1a07dbe2d221735bcb192ad4c43e7 Bug 1336326 (part 1) - Remove Sampler::GetRegisteredThreads(). r=mstange. https://hg.mozilla.org/integration/mozilla-inbound/rev/32550b42266999359049ab671fce22fdb5dc4f7b Bug 1336326 (part 2) - Make sRegisteredThreadsMutex a StaticMutex. r=mstange. https://hg.mozilla.org/integration/mozilla-inbound/rev/65c5923d0feccdbe87b3dfc50a389e715d775a70 Bug 1336326 (part 3) - Remove SamplerRegistry. r=mstange.
Comment 5•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/dfcd7fa37af1 https://hg.mozilla.org/mozilla-central/rev/32550b422669 https://hg.mozilla.org/mozilla-central/rev/65c5923d0fec
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in
before you can comment on or make changes to this bug.
Description
•