Provides user with tab related stats/data
- 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
- 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
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/
.
- 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
npm install
bower install
grunt
rob@work:~/git/tab-data-firefox$ cd addon/
rob@work:~/git/tab-data-firefox/addon$ ~/apps/addon-sdk-1.17/bin/cfx run
rob@work:~/git/tab-data-firefox/addon$ ~/apps/addon-sdk-1.17/bin/cfx xpi
Charts are drawn using Chart.js