Closed Bug 1164785 Opened 9 years ago Closed 9 years ago

Use line number info to create systrace scopedTrace object

Categories

(Core :: Gecko Profiler, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla41
Tracking Status
firefox41 --- fixed

People

(Reporter: jerry, Assigned: jerry)

Details

Attachments

(1 file)

We can't use more than one ATRACE_NAME() in the same scope.
I would like to append the line info to the systrace scopedTrace object name. Thus, we can put PROFILER_LABEL() anywhere.

before:
{
  PROFILER_LABEL("label a");
  PROFILER_LABEL("label b"); <== error
}

after:
{
  PROFILER_LABEL("label a");
  PROFILER_LABEL("label b"); <== success
}
Status: NEW → ASSIGNED
Attachment #8605723 - Flags: review?(bgirard) → review+
Please land the attachment 8605723 [details] [diff] [review] to m-c.
Just a simple fix. I have tested locally.
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/ba12744342d5
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: