Closed Bug 617198 Opened 14 years ago Closed 6 years ago

Thread-safe, thread-aware Profiler

Categories

(Tamarin Graveyard :: Profiler, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
Q3 12 - Dolores

People

(Reporter: siwilkin, Unassigned)

References

Details

Attachments

(1 file)

The current profiling infrastructure assumes single-threaded execution through all sampling locations. With the asymmetric GC, background compilation, and async XML parsing, this is no longer true. Two solutions are required: 1) Make the profiler thread-safe 2) Make the profiler's bookkeeping thread-aware The first of these can be easily achieved by disallowing background threads entry to the profiler. But in that case, the profiler may give misleading information (e.g. 0% time compiling on the main thread? Zero XML objects created in a XML-heavy application that that use XMLAsync?) Thread-safety could also be gained through serialization of threads around sampling locations, but this also prompts questions of profiler accuracy and Heisenburg effects, i.e. is thread identity accounted for? Hence, the profiler needs to be made thread-safe, thread-aware, and extended with relevant APIs. Note that in the current patches for the threading features listed above, in all but one case, background threads are not allowed access to the profiler. The exception is sampling of the incremental marking GC phase; background threads perform this task within a safepoint, so we are assured profiler thread-safety.
This patch is really the bare minimum. Sampling is made thread-safe by disallowing sampling of VM-threads.
Blocks: asymmGC
Blocks: 647918
Who is to review this one?
Assignee: nobody → siwilkin
(In reply to comment #2) > Who is to review this one? treilly I presume.
Assignee: siwilkin → fklockii
Assignee: fklockii → nobody
Flags: flashplayer-qrb+
Flags: flashplayer-injection-
Flags: flashplayer-bug-
Target Milestone: --- → Q3 12 - Dolores
Tamarin is a dead project now. Mass WONTFIX.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: