Revision: 2950 Author: [email protected] Date: Tue Sep 22 03:02:42 2009 Log: Heap profiler: consider Function instances separately, similar to Arrays and Objects.
Review URL: http://codereview.chromium.org/209066 http://code.google.com/p/v8/source/detail?r=2950 Modified: /branches/bleeding_edge/src/heap-profiler.cc ======================================= --- /branches/bleeding_edge/src/heap-profiler.cc Fri Sep 18 05:05:18 2009 +++ /branches/bleeding_edge/src/heap-profiler.cc Tue Sep 22 03:02:42 2009 @@ -67,9 +67,10 @@ if (obj->IsJSObject()) { JSObject* js_obj = JSObject::cast(obj); String* constructor = JSObject::cast(js_obj)->constructor_name(); - // Differentiate Object and Array instances. + // Differentiate Array, Function, and Object instances. if (fine_grain && (constructor == Heap::Object_symbol() || - constructor == Heap::Array_symbol())) { + constructor == Heap::Array_symbol() || + constructor == Heap::function_class_symbol())) { return JSObjectsCluster(constructor, obj); } else { return JSObjectsCluster(constructor); --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
