• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

bobbyrne01/tab-data-firefox: Firefox addon provides user with tab related stats ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

bobbyrne01/tab-data-firefox

开源软件地址:

https://github.com/bobbyrne01/tab-data-firefox

开源编程语言:

JavaScript 81.0%

开源软件介绍:

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




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
nedwidek/firefox-gmail-manager-ng发布时间:2022-05-13
下一篇:
nicoth-in/Dark-Space-Theme: Firefox Theme发布时间:2022-05-13
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap