[Webkit-unassigned] [Bug 96756] New: Web Inspector: automatically detect if class has reportMemoryUsage method

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 14 04:55:26 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=96756

           Summary: Web Inspector: automatically detect if class has
                    reportMemoryUsage method
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Web Inspector
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: yurys at chromium.org
                CC: timothy at apple.com, rik at webkit.org, keishi at webkit.org,
                    pmuellr at yahoo.com, joepeck at webkit.org,
                    pfeldman at chromium.org, yurys at chromium.org,
                    bweinstein at apple.com, apavlov at chromium.org,
                    loislo at chromium.org, alexeif at chromium.org


Classes that support memory usage reporting should provide
void reportMemoryUsage(MemoryObjectInfo*) const;
method. If such method is present we should invoke it to collect
memory usage data, otherwise we should just count sizeof the class.
The method detection can be automated at compile time using using
template trick called SFINAE(http://en.wikipedia.org/wiki/Substitution_failure_is_not_an_error).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list