Closed
Bug 1219570
Opened 10 years ago
Closed 10 years ago
Launch apps won't trigger the performance marks
Categories
(Firefox OS Graveyard :: Metrics, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: ihsiao, Assigned: rnicoletti)
References
Details
Attachments
(2 files)
### Description:
Launch apps will trigger the performance marks, like Dialer/SMS/Gallery.
contentInteractive
navigationInteractive
navigationLoaded
visuallyLoaded
fullyLoaded
mediaEnumerated
scanEnd
### Steps:
1) Change the AT.REPORT_URL to your local machine's HTTP Proxy
2) Add these performance marks in your test app
window.performance.mark('contentInteractive');
window.performance.mark('navigationInteractive');
window.performance.mark('navigationLoaded');
window.performance.mark('visuallyLoaded');
window.performance.mark('fullyLoaded');
window.performance.mark('mediaEnumerated');
window.performance.mark('scanEnd');
Or git clone https://github.com/IrisHsiao/Telemetry-test-app.git
3) Install and launch the test app
4) Capture the compressed packages by Wireshark. And then download the POST request.
5) Modify the POST request: delete HTTP headers and save to a .gz file
6) Extract the .gz file and will get the JSON payload
### Actual result:
The performance marks did not be triggered
### Expected result:
The performance marks will be triggered
### Environmental Variables:
Build ID 20151029010303
Gaia Revision 5fa8fdd3a70f7e003d85bcc2d3c9299b047de918
Gaia Date 2015-10-29 01:41:09
Gecko Revision https://hg.mozilla.org/mozilla-central/rev/1e700005a0ddf2b17803213e1f3f8d78a7a618b8
Gecko Version 44.0a1
Device Name aries
Firmware(Release) 4.4.2
Firmware(Incremental) eng.worker.20151029.002011
Firmware Date Thu Oct 29 00:20:19 UTC 2015
Bootloader s1
| Reporter | ||
Comment 1•10 years ago
|
||
| Reporter | ||
Updated•10 years ago
|
QA Whiteboard: [COM=Telemetry]
Flags: needinfo?(thills)
Updated•10 years ago
|
Component: Gaia::System → Metrics
Comment 2•10 years ago
|
||
Hi Russ,
Can you take a look at this one?
Thanks,
-tamara
Flags: needinfo?(thills) → needinfo?(rnicoletti)
Updated•10 years ago
|
Blocks: nga-telemetry
| Assignee | ||
Comment 3•10 years ago
|
||
Hi Iris,
From the logcat I can see performance mark metrics are being captured for dialer, sms, and gallery. Here is an excerpt for 'visuallyLoaded' [1]. So I can verify that performance mark metrics are being produced. Are you not seeing them in the POST data that you extracted?
[1] "DEVTOOLS_HUD_APP_STARTUP_TIME_VISUALLYLOADED":{"dialer":{"min":1,"max":5000,"histogram_type":1,"sum":1764,"sum_squares_lo":1557000,"sum_squares_hi
I/GeckoConsole( 1780): Content JS LOG: [AdvancedTelemetry]:[0,1,626,1251,1876,2501,3125,3750,4375,5000],"counts":[0,0,2,0,0,0,0,0,0,0]},"settings":{"min":1,"max":5000,"histogram_type":1,"sum":1779,"sum_squares_lo":3164841,"sum_squares_hi":0,"ranges":[0,1,626,1251,1876,2501,3125,3750,4375,5000],"counts":[0,0,0,1,0,0,0,0,0,0]},"sms":{"min":1,"max":5000,"histogram_type":1,"sum":1875,"sum_squares_lo":3515625,"sum_squares_hi":0,"ranges":[0,1,626,1251,1876,2501,3125,3750,4375,5000],"counts":[0,0,0,1,0,0,0,0,0,0]},"gallery":{"min":1,"max":5000,"histogram_type":1,"sum":1196,"sum_squares_lo":1430416,"sum_squares_hi":0,"ranges":[0,1,626,1251,1876,2501,3125,3750,4375,5000],"counts":[0,0,1,0,0,0,0,0,0,0]}}
Flags: needinfo?(rnicoletti) → needinfo?(ihsiao)
| Reporter | ||
Comment 4•10 years ago
|
||
Hi Russ,
I can see the performance mark metrics are being captured now. But I also expect to see these logs[1] in logcat when Telemetry was enabled. How can I see these logs in logcat? Should I enable any options under Developer Tools?
[1] DEVTOOLS_HUD_REFLOW_DURATION xxxx gallery
DEVTOOLS_HUD_REFLOWS xxxx gallery
DEVTOOLS_HUD_APP_STARTUP_TIME_VISUALLYLOADED xxxx gallery
DEVTOOLS_HUD_APP_STARTUP_TIME_CONTENTINTERACTIVE xxxx gallery
DEVTOOLS_HUD_APP_STARTUP_TIME_MEDIAENUMERATED xxxx gallery
DEVTOOLS_HUD_APP_STARTUP_TIME_FULLYLOADED xxxx gallery
DEVTOOLS_HUD_APP_MEMORY_VISUALLYLOADED xxxx gallery
DEVTOOLS_HUD_APP_MEMORY_CONTENTINTERACTIVE xxxx gallery
DEVTOOLS_HUD_APP_MEMORY_MEDIAENUMERATED xxxx gallery
DEVTOOLS_HUD_APP_MEMORY_FULLYLOADED xxxx gallery
Flags: needinfo?(ihsiao) → needinfo?(rnicoletti)
| Assignee | ||
Comment 5•10 years ago
|
||
That's a good question. The answer is -- bug 1193588 ("Developers should be able to enable and disable HUD telemetry logging using a pref."). So as of now, logging for "Enhanced" metrics, aka "telemetry", can only be enabled by changing the Developer HUD javascript and rebuilding gecko. I hope to address this bug before the 2.5 branch is created.
Flags: needinfo?(rnicoletti)
| Assignee | ||
Comment 6•10 years ago
|
||
Iris, since there is a separate bug to enable telemetry logging (that is, logging of "enhanced" metrics), I will mark this as WORKSFORME based on comment 4.
Assignee: nobody → rnicoletti
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•