Issue 129: Memory consumption hyperoscillations
http://code.google.com/p/v8/issues/detail?id=129

Comment #18 by victor.grishchenko:
Please find attached my class profiling patch.
The intended effect is to extend v8 with --collect-class-statistics option  
so heap statistics includes the numbers of
currently living instances for respective classes, e.g.

Old pointer space :   capacity: 2031616, waste: 20, available: 942680, %46
   rset-marked pointers 41, to-new-space 41 (%100)
   rset_marked arrays 0,   elements 0,   pointers to new space 0 (%0)
   total rset-marked bits 41
   total rset pointers 41, true cross generation ones 41 (%100)

   Object Histogram:
     FIXED_ARRAY_TYPE                        421 (     24492 bytes)
     PROXY_TYPE                                5 (        40 bytes)
     BYTE_ARRAY_TYPE                         141 (     75156 bytes)
     FILLER_TYPE                               3 (        20 bytes)
     SHARED_FUNCTION_INFO_TYPE               301 (     16856 bytes)
     CALL_HANDLER_INFO_TYPE                    4 (        48 bytes)
     FUNCTION_TEMPLATE_INFO_TYPE               6 (       384 bytes)
     OBJECT_TEMPLATE_INFO_TYPE                 2 (        56 bytes)
     SCRIPT_TYPE                              12 (       336 bytes)
     JS_VALUE_TYPE                             3 (        48 bytes)
     JS_OBJECT_TYPE                        32225 (   1030408 bytes)
     JS_GLOBAL_OBJECT_TYPE                     1 (        24 bytes)
     JS_BUILTINS_OBJECT_TYPE                   1 (       140 bytes)
     JS_GLOBAL_PROXY_TYPE                      1 (        16 bytes)
     JS_ARRAY_TYPE                             5 (        80 bytes)
     JS_REGEXP_TYPE                            1 (        16 bytes)
     JS_FUNCTION_TYPE                        568 (     15904 bytes)


   Class Histogram:
     Function                                568 (     15904 bytes)
     Object                                   35 (       420 bytes)
                                               4 (       192 bytes)
     Arguments                                 1 (        20 bytes)
     MathConstructor                           1 (        28 bytes)
     Array                                     5 (        80 bytes)
     RangeError                                1 (        24 bytes)
     Peer                                  32180 (   1029760 bytes)
     Error                                     6 (       144 bytes)
     RegExp                                    1 (        16 bytes)
     Boolean                                   1 (        16 bytes)
     Number                                    1 (        16 bytes)
     String                                    1 (        16 bytes)



Attachments:
        class-profiling.diff  3.9 KB



-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to