Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Package Functions | Package Attributes
bloatsoup.HistComparator Class Reference

Sorts the bins of a histogram by (count * typeSize) to show the most pressing leaks. More...

Inheritance diagram for bloatsoup.HistComparator:
Inheritance graph
[legend]
Collaboration diagram for bloatsoup.HistComparator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

int compare (Object obj1, Object obj2)

Package Functions

 HistComparator (Histogram hist)

Package Attributes

Histogram hist

Detailed Description

Sorts the bins of a histogram by (count * typeSize) to show the most pressing leaks.

Definition at line 111 of file bloatsoup.java.


Constructor & Destructor Documentation

Definition at line 114 of file bloatsoup.java.

                                       {
            this.hist = hist;
        }

Member Function Documentation

int bloatsoup.HistComparator.compare ( Object  obj1,
Object  obj2 
) [inline, virtual]

Implements QuickSort.Comparator.

Definition at line 118 of file bloatsoup.java.

                                                     {
            Type t1 = (Type) obj1, t2 = (Type) obj2;
            return (hist.count(t1) * t1.mSize - hist.count(t2) * t2.mSize);
        }

Here is the call graph for this function:


Member Data Documentation

Definition at line 112 of file bloatsoup.java.


The documentation for this class was generated from the following file: