Added per-app totals API (bug 933861)