Skip to content

Commit

Permalink
[GR-61539] Backport to 24.2: Fix tier_count values in CPU sampler JSO…
Browse files Browse the repository at this point in the history
…N output.

PullRequest: graal/19863
  • Loading branch information
FelixPSch authored and ansalond committed Jan 24, 2025
2 parents e7455e9 + 394e6d2 commit fc398a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ private static JSONArray getSamplesRec(Collection<ProfilerNode<CPUSampler.Payloa
sample.put("self_tier_count", selfTierCount);
int[] tierCount = new int[payload.getNumberOfTiers()];
for (int i = 0; i < tierCount.length; i++) {
tierCount[i] = payload.getTierSelfCount(i);
tierCount[i] = payload.getTierTotalCount(i);
}
sample.put("tier_count", tierCount);
sample.put("children", getSamplesRec(node.getChildren()));
Expand Down

0 comments on commit fc398a4

Please sign in to comment.