Firefox OS/Performance/Automation/Memory Consumption

From MozillaWiki
Jump to navigation Jump to search

Memory Consumption

Summary

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

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

  • Lead: Wander Lairson Costa
  • Tracking Bug: 1044297

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

Precision

TBD

How to Run On-Demand

TBD

Published Results

TBD


Development

Design

Common Setup

  1. Set up workload
  2. Restart B2G process

All Cases

  1. Invoke launch programmatically
  2. Inject the Performance Helper
  3. App instrumentation throws timeline events at appropriate times
  4. Performance helper observes events
  5. 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.

Results

TBD

Project Roadmap

Milestone 1: Design
Test Design Validity Review
All Cases Bug Bug

References

[1]