Firefox OS/Performance/Automation/Memory Consumption: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
m (Lakrits moved page FirefoxOS/Performance/Automation/Memory Consumption to Firefox OS/Performance/Automation/Memory Consumption: The official spelling of "Firefox OS" leaves a space between the two parts of the name. It's easier to find a page i...)
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:


Measures memory consumption in several test scenarios to detect abnormal memory usage patterns.
Measures memory consumption in several test scenarios to detect abnormal memory usage patterns.
* '''Lead:''' Wander Lairson Costa


==== Memory usage parameters ====
==== Memory usage parameters ====
Line 25: Line 27:
=== Startup Memory Consumption ===
=== Startup Memory Consumption ===


* '''Lead:''' Wander Lairson Costa
* '''Tracking Bug:''' [http://bugzilla.mozilla.org/show_bug.cgi?id=1044297 1044297]
* '''Tracking Bug:''' [http://bugzilla.mozilla.org/show_bug.cgi?id=1044297 1044297]


Line 52: Line 53:


[[File:Moz-app-load-mem-test.jpg|600x600px|framed|center|Flowchart of the startup memory test]]
[[File:Moz-app-load-mem-test.jpg|600x600px|framed|center|Flowchart of the startup memory test]]
==== Precision ====
TBD
==== How to Run On-Demand ====
TBD
==== Published Results ====
TBD
== Development ==
=== Design ===


==== Common Setup ====
==== Common Setup ====
Line 76: Line 58:
# Set up workload
# Set up workload
# Restart B2G process
# Restart B2G process
==== All Cases ====
# Invoke launch programmatically
# Invoke launch programmatically
# Inject the Performance Helper
# Inject the Performance Helper
Line 87: Line 67:
* Result is the memory usage summary for app and b2g process.
* Result is the memory usage summary for app and b2g process.


=== Results ===
=== Homescreen memory performance ===
 
* '''Tracking Bug:''' [https://bugzilla.mozilla.org/show_bug.cgi?id=1048443 1048443]


TBD
TBD


=== Project Roadmap ===
=== Identify apps memory leaks ===


* '''Tracking Bug:''' [https://bugzilla.mozilla.org/show_bug.cgi?id=1041668 1041668]


{| class="wikitable"
TBD
! width="120px" |
! colspan="2" | Milestone 1: Design
|-
!
! Test Design
! Validity Review
|-
| '''All Cases''' || Bug || Bug
|-
|}


== References ==
== References ==

Latest revision as of 13:59, 1 February 2015

Memory Consumption

Summary

Measures memory consumption in several test scenarios to detect abnormal memory usage patterns.

  • Lead: Wander Lairson Costa

Memory usage parameters

Parameter Description
VSS Virtual set size
RSS Resident set size
USS Unique set size
PSS Proportional set size

Test cases

Startup Memory Consumption

Measures memory consumption of the application and b2g process after moz-app-loaded event.

Launch each of the following apps:

  • Browser
  • Calendar
  • Camera
  • Clock
  • Contacts
  • Dialer
  • Email
  • FM Radio
  • Gallery
  • Marketplace
  • Music
  • Settings
  • SMS
  • Template
  • Usage
  • Video

For each app, report the the memory usage after the moz-app-loaded event, for both the app and b2g process. Below you can see a flowchart of the test case:

Flowchart of the startup memory test

Common Setup

  1. Set up workload
  2. Restart B2G process
  3. Invoke launch programmatically
  4. Inject the Performance Helper
  5. App instrumentation throws timeline events at appropriate times
  6. Performance helper observes events
  7. After moz-app-loaded event grab memory usage parameters for the app and b2g process

Results

  • Result is the memory usage summary for app and b2g process.

Homescreen memory performance

TBD

Identify apps memory leaks

TBD

References

[1]