@JsonProperty("callStack")
    public List<CallStack> getCallStack() {

        List<CallStack> list = new ArrayList<>();
        boolean first = true;
        long barRatio = 0;
        for (Record record : recordSet.getRecordList()) {
            if (first) {
                if (record.isMethod()) {
                    long begin = record.getBegin();
                    long end = record.getBegin() + record.getElapsed();
                    if (end - begin > 0) {
                        barRatio = 100 / (end - begin);
                    }
                }
                first = false;
            }

            list.add(new CallStack(record, barRatio));
        }

        return list;
    }
@author jaehong.kim
@author minwoo.jung
web/src/main/java/com/navercorp/pinpoint/web/view/TransactionInfoViewModel.java