Closed
Bug 1444796
Opened 7 years ago
Closed 7 years ago
perfActor.startProfiler should have a option for entries, internal and etc
Categories
(DevTools :: Performance Tools (Profiler/Timeline), enhancement, P2)
DevTools
Performance Tools (Profiler/Timeline)
Tracking
(firefox61 fixed)
RESOLVED
FIXED
Firefox 61
| Tracking | Status | |
|---|---|---|
| firefox61 | --- | fixed |
People
(Reporter: m_kato, Assigned: m_kato)
References
Details
(Whiteboard: [perf-tools])
Attachments
(3 files)
Actually, startProfiler doesn't have the option. When calling Services.profiler.StartProfiler, it uses default option. But if we support remote Gecko profiler, we should be able to control it.
Updated•7 years ago
|
Priority: -- → P2
Whiteboard: [perf-tools]
| Assignee | ||
Updated•7 years ago
|
Assignee: nobody → m_kato
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 4•7 years ago
|
||
| mozreview-review | ||
Comment on attachment 8958731 [details]
Bug 1444796 - Part 3. Add test for parameters of startProfiler.
https://reviewboard.mozilla.org/r/227646/#review233526
::: devtools/server/tests/browser/browser_perf-04.js:27
(Diff revision 1)
> + is(interval, 0.1, "Should apply interval by startProfiler");
> + is(features, 0x82, "Should apply features by startProfiler");
> + });
> +
> + // Start the profiler.
> + await front.startProfiler({ entries: 1000, interval: 0.1,
Thanks for adding a test!
::: devtools/shared/specs/perf.js:14
(Diff revision 1)
> typeName: "perf",
>
> events: {
> "profiler-started": {
> - type: "profiler-started"
> + type: "profiler-started",
> + entries: Arg(0, "number"),
Should this change be on the first commit, since it's affecting the actor interface?
Attachment #8958731 -
Flags: review?(gtatum) → review+
Comment 5•7 years ago
|
||
| mozreview-review-reply | ||
Comment on attachment 8958731 [details]
Bug 1444796 - Part 3. Add test for parameters of startProfiler.
https://reviewboard.mozilla.org/r/227646/#review233526
Thanks for adding this feature. We should probably follow-up with some UI changes as well. Should I do some UI mockups?
Comment 6•7 years ago
|
||
| mozreview-review | ||
Comment on attachment 8958729 [details]
Bug 1444796 - Part 1. Add options to startProfiler to customize profiler parameter from remote.
https://reviewboard.mozilla.org/r/227642/#review233546
My only real comment is on commit ordering, see my comment on the other commit.
Attachment #8958729 -
Flags: review?(gtatum) → review+
Comment 7•7 years ago
|
||
| mozreview-review | ||
Comment on attachment 8958730 [details]
Bug 1444796 - Part 2. Make nsIProfilerStartParams scriptable.
https://reviewboard.mozilla.org/r/227644/#review233594
Attachment #8958730 -
Flags: review?(mstange) → review+
| Assignee | ||
Comment 9•7 years ago
|
||
(In reply to Panos Astithas [:past] (please ni?) from comment #8)
> Is this work blocked on anything or can it land?
Oh, I forget this. I will land this tomorrow.
| Assignee | ||
Comment 10•7 years ago
|
||
| mozreview-review-reply | ||
Comment on attachment 8958731 [details]
Bug 1444796 - Part 3. Add test for parameters of startProfiler.
https://reviewboard.mozilla.org/r/227646/#review233526
If it is available, it is better. It is unncessary at this time.
> Should this change be on the first commit, since it's affecting the actor interface?
Before part 2, we cannot get any parameters from profiler-started event. For unit test, I change nsIProfilerStartParams interface as scriptable (this is part 2). After part 2, we can add parameter information such as entries to thie event.
| Assignee | ||
Comment 11•7 years ago
|
||
If I should merge actor change to 1st patch, it swap part 1 (actor change) with part 2 (XPCOM change), then, merge it with new part 2 (actor change).
Flags: needinfo?(m_kato)
Comment 12•7 years ago
|
||
Pushed by m_kato@ga2.so-net.ne.jp:
https://hg.mozilla.org/integration/mozilla-inbound/rev/8c1967a96814
Part 1. Add options to startProfiler to customize profiler parameter from remote. r=gregtatum
https://hg.mozilla.org/integration/mozilla-inbound/rev/28132fc715f7
Part 2. Make nsIProfilerStartParams scriptable. r=mstange
https://hg.mozilla.org/integration/mozilla-inbound/rev/5cd4ba836876
Part 3. Add test for parameters of startProfiler. r=gregtatum
Comment 13•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/8c1967a96814
https://hg.mozilla.org/mozilla-central/rev/28132fc715f7
https://hg.mozilla.org/mozilla-central/rev/5cd4ba836876
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 61
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•