Skip to content

Firefox addon provides user with tab related stats and memory usage

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

bobbyrne01/tab-data-firefox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tab-data-firefox

Build Status devDependency Status Built with Grunt

Provides user with tab related stats/data

Features

  • How many tabs are currently open
  • How many tabs have been opened during this Firefox session
  • How many tabs have been opened since addon installed
  • Preference to toggle tab memory usage on/off
  • Memory usage displayed on panel UI (JSON or Plain)
  • Preference to include url on memory usage panel UI
  • Prepend, append or disable tab memory usage in title
  • Change tab title color if memory exceeds specified threshold
  • Preference to set interval between memory usage collection
  • Top 5 memory consumers drawn on graph
  • Graph types include: Line, Bar, Radar and PolarArea
  • Perform a garbage collection
  • Resize panel UI

Monitoring memory

The addon uses the nsIMemoryReporterManager interface to extract memory statistics from Firefox, specifically the getReports() method.

For each process, data is parsed from the explicit tree (which represents all the memory allocated via explicit calls to allocation functions). More specifically, from the explicit/window-objects/ and explicit/add-ons/*/window-objects/ tree paths (which represents all JavaScript window objects) only if the leaf node contains an id and a url matching a currently open tab, otherwise the node is disregarded.

Measurements use bytes as their unit and the value of each leaf node is the sum of all its children, therefore the value displayed in a tab title corresponds to a child of explicit/window-objects/ or explicit/add-ons/*/window-objects/.

Locale support

  • bg
  • cs-CZ
  • de-DE
  • en-GB
  • en-US
  • es-ES
  • fr-FR
  • it-IT
  • ja-JP
  • ko-KR
  • pl-PL
  • pt-PT
  • ru-RU
  • sv-SE
  • uk-UA
  • zh-CN

Development

npm install
bower install
grunt

Run

rob@work:~/git/tab-data-firefox$ cd addon/
rob@work:~/git/tab-data-firefox/addon$ jpm run

Package

rob@work:~/git/tab-data-firefox/addon$ jpm xpi

Attribution

Charts are drawn using Chart.js

About

Firefox addon provides user with tab related stats and memory usage

Resources

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

No packages published