On 11/06/2012 03:18 PM, Terrence Cole wrote:
> During the work week I threw together a script to count usages of
> unrooted types. I've frobulated the script now to give more accurate
> results and to be able to print unrooted matches in a directory. If
> anyone want to use it, to find things that need rooting, I've attached
> it here. The new counts are:
Boris was kind enough to point out that I totally forgot about jsval and
Value. I also noticed that I forgot the JS on Script, so here is a recount.
+------------+
| m-i/js/src |
+------------+
jsval : 1063
Value : 2734
JSObject : 3141
ObjectImpl: 40
JSString : 749
BaseShape : 73
Shape : 508
JSScript : 994
TypeObject: 300
IonCode : 293
XML : 633
=====
Total : 10528
+------------------+
| m-i/js/xpconnect |
+------------------+
jsval : 497
Value : 116
JSObject : 1084
ObjectImpl: 0
JSString : 103
BaseShape : 2
Shape : 2
JSScript : 26
TypeObject: 2
IonCode : 2
XML : 5
=====
Total : 1839
+------------------+
| m-i/js/xpconnect |
+------------------+
jsval : 497
Value : 116
JSObject : 1084
ObjectImpl: 0
JSString : 103
BaseShape : 2
Shape : 2
JSScript : 26
TypeObject: 2
IonCode : 2
XML : 5
=====
Total : 1839
+--------+
| m-i/js |
+--------+
jsval : 1662
Value : 2879
JSObject : 4303
ObjectImpl: 40
JSString : 907
BaseShape : 74
Shape : 509
JSScript : 1058
TypeObject: 301
IonCode : 294
XML : 637
=====
Total : 12664
+---------+
| m-i/dom |
+---------+
jsval : 1106
Value : 374
JSObject : 1314
ObjectImpl: 0
JSString : 156
BaseShape : 0
Shape : 22
JSScript : 23
TypeObject: 0
IonCode : 0
XML : 226
=====
Total : 3221
+------+
| m-i/ |
+------+
jsval : 3219
Value : 5286
JSObject : 6456
ObjectImpl: 51
JSString : 1147
BaseShape : 75
Shape : 579
JSScript : 1133
TypeObject: 306
IonCode : 306
XML : 2021
=====
Total : 20579
Which is about 2x worse than before:
>
> +------+
> | m-i/ |
> +------+
> JSObject : 6237
> ObjectImpl: 45
> JSString : 1133
> BaseShape : 67
> Shape : 496
> Script : 745
> TypeObject: 247
> IonCode : 269
> XML : 2018
> =====
> Total : 11257
>
>
>
>
> _______________________________________________
> dev-tech-js-engine-internals mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals
_______________________________________________
dev-tech-js-engine-internals mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals