size += 8; // Object overhead
return size;
}
private long getTimelineMetricCacheValueSize(TimelineMetricsCacheValue value) {
long size = 16; // startTime + endTime
<BUG>Map<String, TimelineMetric> metrics = value.getTimelineMetrics();
</BUG>
size += 8; // Object reference
<BUG>if (metrics != null) {
for (Map.Entry<String, TimelineMetric> metricEntry : metrics.entrySet()) {
size += reflectionSizeOf.sizeOf(metricEntry.getKey());
TimelineMetric metric = metricEntry.getValue();</BUG>
if (timelineMetricPrimitivesApproximation == 0) {

size += 8; // Object overhead
return size;
}
private long getTimelineMetricCacheValueSize(TimelineMetricsCacheValue value) {
long size = 16; // startTime + endTime
TimelineMetrics metrics = value.getTimelineMetrics();
size += 8; // Object reference
if (metrics != null) {
for (TimelineMetric metric : metrics.getMetrics()) {
if (timelineMetricPrimitivesApproximation == 0) {
