Firefox’s New Memory Tool

Firefox’s New Memory Tool

Browsers are having a hard time differentiating themselves sufficiently to make it worth making a choice. Firefox 44 Dev Edition has something that might make you want to use it when debugging

.

Nikkhah198

Memory usage is usually a mysterious business, something you leave to the compiler or interpreter - until that is things get tough. If you are writing a mobile app for example how much memory everything is using suddenly becomes important.

Firefox has been adding debugging tools for some time and even issues a special development edition. The new memory tool in the developer edition 44 takes a snapshot of everything in memory and creates a tree/table categorizing use into: 

  • objects: JavaScript or general DOM/Web API objects, such as Function objects and DOM nodes
  • other: objects internal to the JavaScript engine
  • scripts: JavaScript sources loaded by the page
  • strings

Notice that the script use is specific to Firefox and its JavaScript engine but it should give you a reasonable idea of usage.  It specifically lists the contents of the heap usage of the currently open tab

Nikkhah199

There is also a facility to view exactly where heap allocations occur in your program. The Allocation Stack view lists your function in order of the amount of memory they allocate. This is hierarchical so you see the total memory used by the function including any functions it might call.

Nikkhah200

وجیهه نیکخواه

وجیهه نیکخواه

وجیهه ، کارشناسی ارشد کامپیوتر، گرایش نرم افزار و علاقمند به دنیای نرم افزارهای آزاد است. تمایل به یادگیری زبان های مختلف و نیز زبان های برنامه نویسی، او را به سمت نوشتن و ترجمه مباحث علمی و تکنولوژی کشانده. پیش از ورود به فیسیت به تدریس در حوزه های مختلف کامپیوتر مشغول بوده است. ترجمه،خوشنویسی و بدمینتون از جمله تفریحات مورد علاقه اوست.


0 نظر درباره‌ی این پست نوشته شده است.

ثبت نظر