The default bug view has changed. See this FAQ.

Add a JS shell function to turn on a static profiling stack

RESOLVED FIXED in mozilla16

Status

()

Core
JavaScript Engine
RESOLVED FIXED
5 years ago
4 years ago

People

(Reporter: u443197, Assigned: u443197)

Tracking

Trunk
mozilla16
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
With the profiling from bug 761261, there should be validation that the instrumentation remains consistent. To do this, a function should be added to the shell to turn on a static profiling stack to be called from fuzzers.

This function would turn on profiling for the runtime, which in debug builds would assert that function entry/exit are tracked accordingly.
(Assignee)

Comment 1

5 years ago
Created attachment 639398 [details] [diff] [review]
patch
Attachment #639398 - Flags: review?(luke)

Comment 2

5 years ago
Comment on attachment 639398 [details] [diff] [review]
patch

Cool!
Attachment #639398 - Flags: review?(luke) → review+

Comment 3

5 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/ec41fa92504f
Target Milestone: --- → mozilla16
https://hg.mozilla.org/mozilla-central/rev/ec41fa92504f
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED

Comment 5

5 years ago
This should probably be in js/src/builtin/TestingFunctions.cpp rather than js/src/shell/js.cpp so it can be tested in the browser as well.
(Assignee)

Updated

5 years ago
Blocks: 774343

Updated

4 years ago
Depends on: 830544
You need to log in before you can comment on or make changes to this bug.