Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.object/src/com/oracle/truffle/object/debug/ShapeProfiler.java @ 22143:af393429ae26
removed 7 Shape methods from the API
author | Andreas Woess <andreas.woess@oracle.com> |
---|---|
date | Sat, 12 Sep 2015 22:03:23 +0200 |
parents | 5bc7f7b867ab |
children | dc83cc1f94f2 |
comparison
equal
deleted
inserted
replaced
22142:cf604b9633c9 | 22143:af393429ae26 |
---|---|
114 this.label = label; | 114 this.label = label; |
115 } | 115 } |
116 | 116 |
117 public void profile(Shape shape) { | 117 public void profile(Shape shape) { |
118 jsObjects++; | 118 jsObjects++; |
119 oac += shape.getObjectArrayCapacity(); | 119 oac += ((ShapeImpl) shape).getObjectArrayCapacity(); |
120 oas += shape.getObjectArraySize(); | 120 oas += ((ShapeImpl) shape).getObjectArraySize(); |
121 ofs += shape.getObjectFieldSize(); | 121 ofs += ((ShapeImpl) shape).getObjectFieldSize(); |
122 pac += shape.getPrimitiveArrayCapacity(); | 122 pac += ((ShapeImpl) shape).getPrimitiveArrayCapacity(); |
123 pas += shape.getPrimitiveArraySize(); | 123 pas += ((ShapeImpl) shape).getPrimitiveArraySize(); |
124 pfs += shape.getPrimitiveFieldSize(); | 124 pfs += ((ShapeImpl) shape).getPrimitiveFieldSize(); |
125 } | 125 } |
126 | 126 |
127 public void add(ShapeStats stats) { | 127 public void add(ShapeStats stats) { |
128 jsObjects += stats.jsObjects; | 128 jsObjects += stats.jsObjects; |
129 oac += stats.oac; | 129 oac += stats.oac; |