Closed
Bug 1171488
Opened 9 years ago
Closed 9 years ago
Attach system data to profiler recording
Categories
(DevTools :: Performance Tools (Profiler/Timeline), defect)
Tracking
(firefox41 affected, firefox43 fixed)
RESOLVED
FIXED
Firefox 43
People
(Reporter: jsantell, Assigned: jsantell)
References
Details
Attachments
(1 file, 3 obsolete files)
(deleted),
patch
|
jsantell
:
review+
|
Details | Diff | Splinter Review |
Ccing some Framework peeps here too.
I want platform/version information (build dates/numbers for nightlies) in recordings so if someone sends us a recording profile with some weirdness, we can understand where it came from. Maybe some other info from `about:buildconfig`
* Gecko version
* Platform (b2g, fennec, firefox, etc.)
* Revision/Date of build for non-release
* OS
Bonus points for system information like RAM.
I'm guessing this should be a part of the root actor, and while we probably want to stick with feature detection vs platform detection, this helps in debugging, and will pave the way for platform specific features (like offering different tools for b2g)
Assignee | ||
Comment 1•9 years ago
|
||
A timestamp/date of recording would be useful as well
Comment 2•9 years ago
|
||
This information is already available from the device actor. You just need to send it a getDescription request to get all of that and more.
Assignee | ||
Comment 3•9 years ago
|
||
Oh, perfect; thanks Panos!
Assignee | ||
Comment 4•9 years ago
|
||
Good to get this in sooner than later for compat reasons.
Assignee | ||
Comment 5•9 years ago
|
||
Attachment #8653107 -
Flags: review?(vporof)
Assignee | ||
Comment 6•9 years ago
|
||
Original try looks good, again with more platforms incase there is some scenario where tests fail because system info is not available. https://treeherder.mozilla.org/#/jobs?repo=try&revision=6c932d1134af
Updated•9 years ago
|
Attachment #8653107 -
Flags: review?(vporof) → review+
Assignee | ||
Comment 7•9 years ago
|
||
The SDK uses some XPCOM components that do not exist/work on linux according to try; this wraps them in a catch.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=bf41ff09b8e6
Attachment #8653107 -
Attachment is obsolete: true
Attachment #8654651 -
Flags: review?(dtownsend)
Comment 8•9 years ago
|
||
Comment on attachment 8654651 [details] [diff] [review]
1171488-system-info-in-recordings.patch
Review of attachment 8654651 [details] [diff] [review]:
-----------------------------------------------------------------
::: addon-sdk/source/lib/node/os.js
@@ +16,5 @@
> const endianness = ((new Uint32Array((new Uint8Array([1,2,3,4])).buffer))[0] === 0x04030201) ? 'LE' : 'BE';
>
> +XPCOMUtils.defineLazyGetter(this, "oscpu", () => {
> + try {
> + return Cc["@mozilla.org/network/protocol;1?name=http"].getService(Ci.nsIHttpProtocolHandler).oscpu;
I'd be surprised if this was throwing unless it was happening in an xpcshell test run. I tested on my linux machine and it returns "Linux x86_64" just fine. If you really need to return null from here then please update the use of oscpu later in the code to handle that case somewhat sanely.
@@ +25,5 @@
> +
> +XPCOMUtils.defineLazyGetter(this, "hostname", () => {
> + try {
> + // On some platforms (Linux according to try), this service does not exist and fails.
> + return Cc["@mozilla.org/network/dns-service;1"].getService(Ci.nsIDNSService).myHostName;
Likewise this is working on my linux box but I can believe that it fails in certain configurations. Looking at node's implementation it seems that hostname will always return a string of some kind so rather than falling back to null I suggest either "" or "localhost"
Attachment #8654651 -
Flags: review?(dtownsend) → review-
Assignee | ||
Comment 9•9 years ago
|
||
This'll keep it consistent then atleast. Must be some configurations result in these components not being available, atleast on try.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=84d49ab53e3d
Attachment #8654651 -
Attachment is obsolete: true
Attachment #8655113 -
Flags: review?(dtownsend)
Comment 10•9 years ago
|
||
Comment on attachment 8655113 [details] [diff] [review]
1171488-system-info-in-recordings.patch
Review of attachment 8655113 [details] [diff] [review]:
-----------------------------------------------------------------
r=me for the os.js change
Attachment #8655113 -
Flags: review?(dtownsend) → review+
Comment 12•9 years ago
|
||
Backed out for various e10s devtools failures.
https://treeherder.mozilla.org/logviewer.html#?job_id=4488532&repo=fx-team
https://hg.mozilla.org/integration/fx-team/rev/0fe4f8d8a63b
Comment 13•9 years ago
|
||
Comment 14•9 years ago
|
||
s/non-e10s/e10s on that last one, sorry
Assignee | ||
Comment 15•9 years ago
|
||
Looks like accessing profile location fails in child process? Easy work around https://treeherder.mozilla.org/#/jobs?repo=try&revision=ccd77ec99b94
Assignee | ||
Comment 16•9 years ago
|
||
Comment 17•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 43
Comment 18•9 years ago
|
||
Experimentally backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/67ce03afe256 on suspicion of being the cause of bug 1203804
Comment 19•9 years ago
|
||
Comment 20•9 years ago
|
||
As the hyperactive pulsebot says, it wasn't at fault, relanded.
No longer blocks: 1203804
Comment 21•9 years ago
|
||
Comment 22•9 years ago
|
||
hey jordan, i wanted to reland this on fx-team but it cause conflicts in
renamed 1171488 -> 1171488-system-info-in-recordings.patch
applying 1171488-system-info-in-recordings.patch
patching file toolkit/devtools/server/tests/browser/browser_perf-recording-actor-01.js
Hunk #1 FAILED at 43
1 out of 1 hunks FAILED -- saving rejects to file toolkit/devtools/server/tests/browser/browser_perf-recording-actor-01.js.rej
patch failed, unable to continue (try -v)
patch failed, rejects left in working directory
errors during apply, please fix and refresh 1171488-system-info-in-recordings.patch
so you might want to take a look before relanding
Flags: needinfo?(jsantell)
Assignee | ||
Comment 23•9 years ago
|
||
Rebased, testing on try once more for good measure https://treeherder.mozilla.org/#/jobs?repo=try&revision=1d8cf44b5781
Attachment #8655113 -
Attachment is obsolete: true
Flags: needinfo?(jsantell)
Attachment #8660048 -
Flags: review+
Comment 25•9 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•