Skip to content

Commit cf6d271

Browse files
aalexandnolanmar511
authored andcommitted
Fix wrong unit type for contention count when parsing legacy Java profiles. (#404)
1 parent 763d9ee commit cf6d271

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

profile/legacy_java_profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func parseJavaHeader(pType string, b []byte, p *Profile) ([]byte, error) {
134134
}
135135
case "contention/resolution":
136136
p.SampleType = []*ValueType{
137-
{Type: "contentions", Unit: value},
137+
{Type: "contentions", Unit: "count"},
138138
{Type: "delay", Unit: value},
139139
}
140140
case "contention/sampling period":

profile/testdata/java.contention.string

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PeriodType: contentions count
22
Period: 100
33
Duration: 1h40
44
Samples:
5-
contentions/microseconds delay/microseconds
5+
contentions/count delay/microseconds
66
100 100: 1 2
77
100 1400: 3 4 5 6 7 8 9 10 11 12 13 14 15 16 10 17 18 19 20 21 22 23 24 25 26 27 28 29
88
200 200: 1 2

0 commit comments

Comments
 (0)