dataStoreInfo = (DataStoreCallStorageAttachment) storage
.getAttachment(DataStoreCallStorageAttachment.class);
memCacheInfo = (MemCacheStorageAttachment) storage
.getAttachment(MemCacheStorageAttachment.class);
final IdentityHashMap<CallEntry, AccumulatedMethod> ps = new IdentityHashMap<CallEntry, AccumulatedMethod>();
storage.iterate(new StorageIterator() {
public void accept(int from, int to, int index, int[] values) {
if (to == 0) {
CallEntry root = null;
if (from > Integer.MAX_VALUE / 2) {
root = jsp[Integer.MAX_VALUE - from];
} else {
if(from -1 > dictionary.length -1){
return;
}
root = dictionary[from - 1];
}
AccumulatedMethod accumulatedMethod = new AccumulatedMethod(
root);
accumulatedMethod.count = values[index];
accumulatedMethod.time = values[index + 1];
accumulatedMethod.apicpuTime = values[index + 2];
roots.add(accumulatedMethod);
} else {
CallEntry entry = null;
if (from > Integer.MAX_VALUE / 2) {
entry = jsp[Integer.MAX_VALUE - from];
} else {
if(from -1 > dictionary.length -1){
return;
}
entry = dictionary[from - 1];
}
AccumulatedMethod accumulatedMethod = ps.get(entry);
if (accumulatedMethod == null) {
AccumulatedMethod m = new AccumulatedMethod(entry);
accumulatedMethod = m;
methods.add(m);
ps.put(entry, m);
}
accumulatedMethod.count += values[index];
accumulatedMethod.time += values[index + 1];
accumulatedMethod.selftime += values[index + 1];
accumulatedMethod.apicpuTime = values[index + 2];
}
}
});
storage.iterate(new StorageIterator() {
public void accept(int from, int to, int index, int[] values) {
if (to == 0) {
} else {