What Does the OS X Activity Monitor’s “Energy Impact” Actually Measure?
blog.mozilla.org
blog.mozilla.org
[0] http://www.businessinsider.com/google-20-percent-time-policy...
Specifically (running Safari v7.1 on OS X v10.9.5), I have 18 windows open containing 2, 18, 26, 16, 2, 12, 17, 13, 21, 6, 2, 2, 1, 1, 2, 1, 1, and 4 tabs for a grand total of 147 tabs. Oh, and I forgot to mention, it’s also downloading two files in the background right now. It’s showing up with 13.2 in the Energy Impact column and 4.47 in the Avg column.
(Oh, and since I already have it open, I may as well mention that Firefox 39.0 shows up as around 14.7 in the Energy Impact column (although it keeps spiking to 23.9 every few seconds) and 2.99 in the Avg column with 2 tabs open in 1 window with no downloads).
It's interesting watching one's projected battery life climb from 40m to 1h 40m simply by swapping one application for another. However, it's unfortunate some websites prefer Flash-based implementations over their native counterparts. Although this trend seems to be shifting in favor of those that are native. And I assume the smart folks at Google are taking note. YouTube, for example, has done a particularly spectacular job at adding AirPlay functionality to their HTML5 player.
(Disclaimer: I work for Apple)
What?
https://html5test.com/compare/browser/chrome-44/safari-8.0.h...
Straightforward things like pattern matching on form inputs
That's hardly "struggles", it's just a not very prominent feature that wasn't implemented, or not done properly.
http://thenextweb.com/apps/2015/08/20/chrome-is-finally-gett...
I don't believe that anymore until I have the next version in my hand for a test (in case you might answer again, next version...). </offtopic>
Exposing inaccurate and opaquely-computed power consumption data is a less great idea.
If "Energy Impact" was a good measure it would correlate closely with real power consumption. It doesn't.
> Activity Monitor is a tool that was introduced in Mac OS X 10.9.
Activity Monitor was introduced with OS X 10.3 (https://en.wikipedia.org/wiki/Activity_Monitor). And was significantly revamped with OS X 10.9 to receive the various energy related measurements.
Thank you for the suggestion.
In general, from the get go, it is a bit of a myth that you can really know how much of a power budget is a consequence of a particular application. You can get a rough sense of relative impact on the overall power budget, but even that can be seriously skewed by a LOT of factors. At best, you can get a sense of, "if I sampled at the moment power stores hit a multiple of X, how often would I see the system doing something on behalf of each app that was draining power at that moment". Even that, is bloody hard to pull off, but it is your best "rough" approximation of what is going on.
But unnecessary animations (like blinking text cursors) cause the entire graphics hardware stack to wake up all the way to the display, which is a serious power cost.
I'd guess it wouldn't be hard to keep two frames in memory, so you could get one blink at a time.
https://blog.mozilla.org/nnethercote/2015/08/26/what-does-th...
In the data I posted, which is from /usr/share/pmenergy/default.plist, kgpu_time is 0.0, but in all the other plists it's nonzero.
Would it not be possible for the OS to poll the CPU for these power consumption stats, and attribute the value returned to the currently running process?
Over time, I think it would be possible to see how much power the Intel CPU thinks each process is using.
As comex notes in the comments on the article, there appears to be a table of weights for various features, presumably obtained by regression.
[0]: http://research.microsoft.com/en-us/people/mzh/eurosys-2012....
*POWER = "Energy Impact."
Power = ((used_us + IDLEW * 500) * 100.0) / elapsed_us
If you believe that each idle wake costs you on average the same energy as 500us of computation, then the units are compatible right?
Data: Settings->Cellular, scroll to the bottom
Let me rephrase: There are temperature and battery charge sensors in the machines. We can use these to better calibrate the "virtual" energy usage metrics.
"Battery charge" sensors are problematic because they're hard to keep in calibration without interrupting normal operation of the system.