Closed
Bug 854206
Opened 11 years ago
Closed 6 years ago
[Per app power metering] - Calculate Wifi component usage per process
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: vchang, Assigned: bochen)
References
Details
Attachments
(2 files, 5 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review |
No description provided.
Comment 1•11 years ago
|
||
One of the key issue is how to know which app is using Wi-Fi. To my knowledge, Android uses Wifilock to know which app is using Wi-Fi. Acquiring a wifilock can keep Wi-Fi awake until the lock is released. Making use of this mechanism, Android can know which app is acquiring Wi-Fi. Then, using timer to measure the Wi-Fi running time.
Reporter | ||
Comment 2•11 years ago
|
||
Once we can have network statistic for wifi interface, we can calculate the power consumption for wifi component by using tx/rx packets, connection rate and average power consumption for wifi component.
Comment 3•11 years ago
|
||
This patch implements in NetworkStatsService to notify PowerStatsService some information. The formation is manifestURL, txBytes + rxBytes and wifi link speed.
Comment 4•11 years ago
|
||
Comment 5•11 years ago
|
||
This patch implements in NetworkStatsService to notify PowerStatsService some information. The formation is manifestURL, txBytes + rxBytes and wifi link speed. This patch depends on Bug 784575.
Attachment #787934 -
Attachment is obsolete: true
Attachment #787944 -
Attachment is obsolete: true
Comment 6•11 years ago
|
||
After getting the information from NetworkStatsService. PowerStatsService estimates power consumption of wifi transmission.
Attachment #787968 -
Flags: review?(vchang)
Reporter | ||
Updated•11 years ago
|
Reporter | ||
Comment 8•11 years ago
|
||
Comment on attachment 787968 [details] [diff] [review] Part1: estimate power consumption of wifi transmission Review of attachment 787968 [details] [diff] [review]: ----------------------------------------------------------------- Please fix some nits. ::: dom/power/PowerStatsService.jsm @@ +37,5 @@ > > +XPCOMUtils.defineLazyServiceGetter(this, "networkstatsService", > + "@mozilla.org/networkstatsService;1", > + "nsINetworkStatsService"); > + This seems not used in this patch. Please remove it. @@ +313,5 @@ > if (item == "pid") { > appPowerInfo[index].pid = value[0]; > } > > + if (item === "wifiactive") { value is a array right ? Please add the comment to explain the format of value.
Attachment #787968 -
Flags: review?(vchang)
Reporter | ||
Updated•11 years ago
|
Assignee: nobody → glai
Updated•11 years ago
|
Assignee: glai → gavin09
Updated•11 years ago
|
Attachment #787968 -
Attachment is obsolete: true
Updated•11 years ago
|
Attachment #788001 -
Attachment is obsolete: true
Comment 10•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Assignee: gavin09 → bochen
Updated•10 years ago
|
Blocks: b2g-metering-usage
Comment 11•6 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•