Skip to content

Commit c8a32ac

Browse files
committed
[GR-61481] Fix tier_count values in CPU sampler JSON output.
PullRequest: graal/19839
2 parents 151401e + aa3f3d3 commit c8a32ac

File tree

1 file changed

+1
-1
lines changed
  • tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/impl

1 file changed

+1
-1
lines changed

tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/impl/CPUSamplerCLI.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ private static JSONArray getSamplesRec(Collection<ProfilerNode<CPUSampler.Payloa
369369
sample.put("self_tier_count", selfTierCount);
370370
int[] tierCount = new int[payload.getNumberOfTiers()];
371371
for (int i = 0; i < tierCount.length; i++) {
372-
tierCount[i] = payload.getTierSelfCount(i);
372+
tierCount[i] = payload.getTierTotalCount(i);
373373
}
374374
sample.put("tier_count", tierCount);
375375
sample.put("children", getSamplesRec(node.getChildren()));

0 commit comments

Comments
 (0)